From 9b22ac32148b40fb6e6c42afb81116e9102b7058 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 31 Oct 2024 19:56:10 +0000 Subject: [PATCH 1/2] docs: add response types for async magic methods PiperOrigin-RevId: 691866489 Source-Link: https://github.com/googleapis/googleapis/commit/cf0f35efca7e0d507af89e9ddc46cba2f41eb9f7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e556aaed2dc6f46b6ff8cc769fabadcfbe2504a4 Copy-Tag: eyJwIjoiQ2hhbm5lbC8uT3dsQm90LnlhbWwiLCJoIjoiZTU1NmFhZWQyZGM2ZjQ2YjZmZjhjYzc2OWZhYmFkY2ZiZTI1MDRhNCJ9 Copy-Tag: eyJwIjoiQ29tbWVyY2VDb25zdW1lclByb2N1cmVtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiQ29uZmlkZW50aWFsQ29tcHV0aW5nLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiQ29uZmlnLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiQ29udGFjdENlbnRlckluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiQ29udHJvbHNQYXJ0bmVyLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiRGF0YUNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiRGF0YUNhdGFsb2dMaW5lYWdlLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiRGF0YUZ1c2lvbi8uT3dsQm90LnlhbWwiLCJoIjoiZTU1NmFhZWQyZGM2ZjQ2YjZmZjhjYzc2OWZhYmFkY2ZiZTI1MDRhNCJ9 Copy-Tag: eyJwIjoiRGF0YUxhYmVsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiRGF0YWZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiRGF0YXBsZXgvLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiRGF0YXByb2MvLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiRGF0YXN0cmVhbS8uT3dsQm90LnlhbWwiLCJoIjoiZTU1NmFhZWQyZGM2ZjQ2YjZmZjhjYzc2OWZhYmFkY2ZiZTI1MDRhNCJ9 Copy-Tag: eyJwIjoiRGV2ZWxvcGVyQ29ubmVjdC8uT3dsQm90LnlhbWwiLCJoIjoiZTU1NmFhZWQyZGM2ZjQ2YjZmZjhjYzc2OWZhYmFkY2ZiZTI1MDRhNCJ9 Copy-Tag: eyJwIjoiRG1zLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiUXVvdGFzLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= Copy-Tag: eyJwIjoiU2VydmljZUNvbnRyb2wvLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiU2VydmljZU1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImU1NTZhYWVkMmRjNmY0NmI2ZmY4Y2M3NjlmYWJhZGNmYmUyNTA0YTQifQ== Copy-Tag: eyJwIjoiU2VydmljZVVzYWdlLy5Pd2xCb3QueWFtbCIsImgiOiJlNTU2YWFlZDJkYzZmNDZiNmZmOGNjNzY5ZmFiYWRjZmJlMjUwNGE0In0= --- .../Cloud/Channel/V1/BillingAccounts.php | 37 + .../Cloud/Channel/V1/ChannelPartnerLinks.php | Bin 0 -> 1824 bytes .../Google/Cloud/Channel/V1/Common.php | Bin 0 -> 1899 bytes .../Google/Cloud/Channel/V1/Customers.php | 56 + .../Cloud/Channel/V1/EntitlementChanges.php | Bin 0 -> 2713 bytes .../Google/Cloud/Channel/V1/Entitlements.php | Bin 0 -> 3676 bytes .../Google/Cloud/Channel/V1/Offers.php | Bin 0 -> 4022 bytes .../Google/Cloud/Channel/V1/Operations.php | Bin 0 -> 1169 bytes .../Google/Cloud/Channel/V1/Products.php | Bin 0 -> 1400 bytes .../Cloud/Channel/V1/ReportsService.php | Bin 0 -> 4958 bytes .../Google/Cloud/Channel/V1/Repricing.php | Bin 0 -> 3137 bytes .../Google/Cloud/Channel/V1/Service.php | Bin 0 -> 24345 bytes .../Cloud/Channel/V1/SubscriberEvent.php | Bin 0 -> 1639 bytes .../Channel/V1/ActivateEntitlementRequest.php | 146 + .../src/Google/Cloud/Channel/V1/AdminUser.php | 135 + .../Cloud/Channel/V1/AssociationInfo.php | 67 + .../Google/Cloud/Channel/V1/BillableSku.php | 193 + .../Cloud/Channel/V1/BillingAccount.php | 217 + .../Channel/V1/BillingAccountPurchaseInfo.php | 77 + .../Channel/V1/CancelEntitlementRequest.php | 146 + .../Cloud/Channel/V1/ChangeOfferRequest.php | 310 ++ .../Channel/V1/ChangeParametersRequest.php | 229 + .../V1/ChangeRenewalSettingsRequest.php | 190 + .../Cloud/Channel/V1/ChannelPartnerLink.php | 344 ++ .../Channel/V1/ChannelPartnerLinkState.php | 76 + .../Channel/V1/ChannelPartnerLinkView.php | 65 + .../V1/ChannelPartnerRepricingConfig.php | 180 + ...CheckCloudIdentityAccountsExistRequest.php | 152 + ...heckCloudIdentityAccountsExistResponse.php | 68 + .../V1/CloudIdentityCustomerAccount.php | 258 + .../Cloud/Channel/V1/CloudIdentityInfo.php | 331 ++ .../V1/CloudIdentityInfo/CustomerType.php | 64 + .../src/Google/Cloud/Channel/V1/Column.php | 153 + .../Cloud/Channel/V1/Column/DataType.php | 93 + .../Cloud/Channel/V1/CommitmentSettings.php | 165 + .../Cloud/Channel/V1/ConditionalOverride.php | 163 + .../Google/Cloud/Channel/V1/Constraints.php | 77 + .../Google/Cloud/Channel/V1/ContactInfo.php | 249 + .../V1/CreateChannelPartnerLinkRequest.php | 128 + ...teChannelPartnerRepricingConfigRequest.php | 138 + .../CreateCustomerRepricingConfigRequest.php | 138 + .../Channel/V1/CreateCustomerRequest.php | 116 + .../Channel/V1/CreateEntitlementRequest.php | 190 + .../src/Google/Cloud/Channel/V1/Customer.php | 585 +++ .../Cloud/Channel/V1/CustomerConstraints.php | 135 + .../Google/Cloud/Channel/V1/CustomerEvent.php | 105 + .../Cloud/Channel/V1/CustomerEvent/Type.php | 64 + .../Channel/V1/CustomerRepricingConfig.php | 179 + .../src/Google/Cloud/Channel/V1/DateRange.php | 258 + ...teChannelPartnerRepricingConfigRequest.php | 86 + .../DeleteCustomerRepricingConfigRequest.php | 92 + .../Channel/V1/DeleteCustomerRequest.php | 82 + .../src/Google/Cloud/Channel/V1/EduData.php | 135 + .../Channel/V1/EduData/InstituteSize.php | 99 + .../Channel/V1/EduData/InstituteType.php | 64 + .../Google/Cloud/Channel/V1/Entitlement.php | 615 +++ .../V1/Entitlement/ProvisioningState.php | 64 + .../V1/Entitlement/SuspensionReason.php | 88 + .../Cloud/Channel/V1/EntitlementChange.php | 494 ++ .../V1/EntitlementChange/ActivationReason.php | 81 + .../EntitlementChange/CancellationReason.php | 73 + .../V1/EntitlementChange/ChangeType.php | 151 + .../V1/EntitlementChange/OperatorType.php | 78 + .../Cloud/Channel/V1/EntitlementEvent.php | 105 + .../Channel/V1/EntitlementEvent/Type.php | 137 + .../Channel/V1/FetchReportResultsRequest.php | 240 + .../Channel/V1/FetchReportResultsResponse.php | 164 + .../V1/GetChannelPartnerLinkRequest.php | 110 + ...etChannelPartnerRepricingConfigRequest.php | 92 + .../V1/GetCustomerRepricingConfigRequest.php | 92 + .../Cloud/Channel/V1/GetCustomerRequest.php | 87 + .../Channel/V1/GetEntitlementRequest.php | 76 + .../Channel/V1/ImportCustomerRequest.php | 360 ++ .../V1/ListChannelPartnerLinksRequest.php | 202 + .../V1/ListChannelPartnerLinksResponse.php | 114 + ...tChannelPartnerRepricingConfigsRequest.php | 265 + ...ChannelPartnerRepricingConfigsResponse.php | 114 + .../ListCustomerRepricingConfigsRequest.php | 247 + .../ListCustomerRepricingConfigsResponse.php | 114 + .../Cloud/Channel/V1/ListCustomersRequest.php | 214 + .../Channel/V1/ListCustomersResponse.php | 114 + .../V1/ListEntitlementChangesRequest.php | 237 + .../V1/ListEntitlementChangesResponse.php | 102 + .../Channel/V1/ListEntitlementsRequest.php | 172 + .../Channel/V1/ListEntitlementsResponse.php | 114 + .../Cloud/Channel/V1/ListOffersRequest.php | 285 ++ .../Cloud/Channel/V1/ListOffersResponse.php | 101 + .../Cloud/Channel/V1/ListProductsRequest.php | 189 + .../Cloud/Channel/V1/ListProductsResponse.php | 101 + .../V1/ListPurchasableOffersRequest.php | 264 + .../ChangeOfferPurchase.php | 170 + .../CreateEntitlementPurchase.php | 112 + .../V1/ListPurchasableOffersResponse.php | 101 + .../Channel/V1/ListPurchasableSkusRequest.php | 264 + .../ChangeOfferPurchase.php | 114 + .../ChangeOfferPurchase/ChangeType.php | 64 + .../CreateEntitlementPurchase.php | 79 + .../V1/ListPurchasableSkusResponse.php | 101 + .../Cloud/Channel/V1/ListReportsRequest.php | 229 + .../Cloud/Channel/V1/ListReportsResponse.php | 111 + .../V1/ListSkuGroupBillableSkusRequest.php | 178 + .../V1/ListSkuGroupBillableSkusResponse.php | 109 + .../Cloud/Channel/V1/ListSkuGroupsRequest.php | 181 + .../Channel/V1/ListSkuGroupsResponse.php | 109 + .../Cloud/Channel/V1/ListSkusRequest.php | 235 + .../Cloud/Channel/V1/ListSkusResponse.php | 101 + .../Channel/V1/ListSubscribersRequest.php | 159 + .../Channel/V1/ListSubscribersResponse.php | 139 + .../V1/ListTransferableOffersRequest.php | 364 ++ .../V1/ListTransferableOffersResponse.php | 118 + .../V1/ListTransferableSkusRequest.php | 348 ++ .../V1/ListTransferableSkusResponse.php | 114 + .../Cloud/Channel/V1/LookupOfferRequest.php | 75 + .../Google/Cloud/Channel/V1/MarketingInfo.php | 145 + .../src/Google/Cloud/Channel/V1/Media.php | 135 + .../src/Google/Cloud/Channel/V1/MediaType.php | 54 + .../src/Google/Cloud/Channel/V1/Offer.php | 439 ++ .../Cloud/Channel/V1/OperationMetadata.php | 68 + .../V1/OperationMetadata/OperationType.php | 127 + .../src/Google/Cloud/Channel/V1/Parameter.php | 153 + .../Cloud/Channel/V1/ParameterDefinition.php | 286 ++ .../V1/ParameterDefinition/ParameterType.php | 78 + .../Google/Cloud/Channel/V1/PaymentPlan.php | 82 + .../Google/Cloud/Channel/V1/PaymentType.php | 61 + .../Cloud/Channel/V1/PercentageAdjustment.php | 93 + .../src/Google/Cloud/Channel/V1/Period.php | 101 + .../Google/Cloud/Channel/V1/PeriodType.php | 68 + .../src/Google/Cloud/Channel/V1/Plan.php | 251 + .../src/Google/Cloud/Channel/V1/Price.php | 193 + .../Cloud/Channel/V1/PriceByResource.php | 145 + .../Google/Cloud/Channel/V1/PricePhase.php | 215 + .../src/Google/Cloud/Channel/V1/PriceTier.php | 150 + .../src/Google/Cloud/Channel/V1/Product.php | 116 + .../Cloud/Channel/V1/PromotionalOrderType.php | 68 + .../V1/ProvisionCloudIdentityRequest.php | 194 + .../Cloud/Channel/V1/ProvisionedService.php | 151 + .../Cloud/Channel/V1/PurchasableOffer.php | 78 + .../Cloud/Channel/V1/PurchasableSku.php | 78 + .../QueryEligibleBillingAccountsRequest.php | 109 + .../QueryEligibleBillingAccountsResponse.php | 79 + .../Cloud/Channel/V1/RebillingBasis.php | 64 + .../Channel/V1/RegisterSubscriberRequest.php | 105 + .../Channel/V1/RegisterSubscriberResponse.php | 67 + .../Cloud/Channel/V1/RenewalSettings.php | 187 + .../src/Google/Cloud/Channel/V1/Report.php | 196 + .../src/Google/Cloud/Channel/V1/ReportJob.php | 122 + .../Channel/V1/ReportResultsMetadata.php | 219 + .../Google/Cloud/Channel/V1/ReportStatus.php | 156 + .../Cloud/Channel/V1/ReportStatus/State.php | 78 + .../Google/Cloud/Channel/V1/ReportValue.php | 250 + .../Cloud/Channel/V1/RepricingAdjustment.php | 75 + .../Cloud/Channel/V1/RepricingCondition.php | 76 + .../Cloud/Channel/V1/RepricingConfig.php | 340 ++ .../ChannelPartnerGranularity.php | 42 + .../EntitlementGranularity.php | 78 + .../Google/Cloud/Channel/V1/ResourceType.php | 101 + .../proto/src/Google/Cloud/Channel/V1/Row.php | 106 + .../Cloud/Channel/V1/RunReportJobRequest.php | 237 + .../Cloud/Channel/V1/RunReportJobResponse.php | 139 + .../proto/src/Google/Cloud/Channel/V1/Sku.php | 162 + .../src/Google/Cloud/Channel/V1/SkuGroup.php | 113 + .../Cloud/Channel/V1/SkuGroupCondition.php | 84 + .../Cloud/Channel/V1/SkuPurchaseGroup.php | 106 + .../Channel/V1/StartPaidServiceRequest.php | 146 + .../Cloud/Channel/V1/SubscriberEvent.php | 109 + .../Channel/V1/SuspendEntitlementRequest.php | 146 + .../Cloud/Channel/V1/TransferEligibility.php | 135 + .../Channel/V1/TransferEligibility/Reason.php | 79 + .../V1/TransferEntitlementsRequest.php | 226 + .../V1/TransferEntitlementsResponse.php | 69 + .../TransferEntitlementsToGoogleRequest.php | 180 + .../Cloud/Channel/V1/TransferableOffer.php | 78 + .../Cloud/Channel/V1/TransferableSku.php | 171 + .../Google/Cloud/Channel/V1/TrialSettings.php | 127 + .../V1/UnregisterSubscriberRequest.php | 105 + .../V1/UnregisterSubscriberResponse.php | 67 + .../V1/UpdateChannelPartnerLinkRequest.php | 176 + ...teChannelPartnerRepricingConfigRequest.php | 91 + .../UpdateCustomerRepricingConfigRequest.php | 91 + .../Channel/V1/UpdateCustomerRequest.php | 126 + .../src/Google/Cloud/Channel/V1/Value.php | 207 + .../fetch_report_results.php | 84 + .../list_reports.php | 81 + .../run_report_job.php | 115 + .../activate_entitlement.php | 110 + .../cancel_entitlement.php | 106 + .../change_offer.php | 109 + .../change_parameters.php | 109 + .../change_renewal_settings.php | 109 + .../check_cloud_identity_accounts_exist.php | 94 + .../create_channel_partner_link.php | 110 + ...reate_channel_partner_repricing_config.php | 140 + .../create_customer.php | 101 + .../create_customer_repricing_config.php | 136 + .../create_entitlement.php | 132 + ...elete_channel_partner_repricing_config.php | 90 + .../delete_customer.php | 78 + .../delete_customer_repricing_config.php | 91 + .../get_channel_partner_link.php | 86 + .../get_channel_partner_repricing_config.php | 93 + .../get_customer.php | 84 + .../get_customer_repricing_config.php | 93 + .../get_entitlement.php | 87 + .../import_customer.php | 99 + .../list_channel_partner_links.php | 87 + ...list_channel_partner_repricing_configs.php | 107 + .../list_customer_repricing_configs.php | 103 + .../list_customers.php | 86 + .../list_entitlement_changes.php | 100 + .../list_entitlements.php | 88 + .../CloudChannelServiceClient/list_offers.php | 80 + .../list_products.php | 80 + .../list_purchasable_offers.php | 88 + .../list_purchasable_skus.php | 85 + .../list_sku_group_billable_skus.php | 95 + .../list_sku_groups.php | 94 + .../CloudChannelServiceClient/list_skus.php | 86 + .../list_subscribers.php | 90 + .../list_transferable_offers.php | 99 + .../list_transferable_skus.php | 94 + .../lookup_offer.php | 86 + .../provision_cloud_identity.php | 107 + .../query_eligible_billing_accounts.php | 90 + .../register_subscriber.php | 91 + .../start_paid_service.php | 107 + .../suspend_entitlement.php | 104 + .../transfer_entitlements.php | 124 + .../transfer_entitlements_to_google.php | 120 + .../unregister_subscriber.php | 94 + .../update_channel_partner_link.php | 112 + ...pdate_channel_partner_repricing_config.php | 118 + .../update_customer.php | 91 + .../update_customer_repricing_config.php | 116 + .../CloudChannelReportsServiceClient.php | 423 ++ .../V1/Client/CloudChannelServiceClient.php | 2733 ++++++++++ .../Channel/v1/src/V1/gapic_metadata.json | 287 ++ ...channel_reports_service_client_config.json | 37 + ...nnel_reports_service_descriptor_config.php | 91 + ...nel_reports_service_rest_client_config.php | 111 + .../cloud_channel_service_client_config.json | 289 ++ ...loud_channel_service_descriptor_config.php | 826 +++ ...oud_channel_service_rest_client_config.php | 681 +++ .../CloudChannelReportsServiceClientTest.php | 374 ++ .../Client/CloudChannelServiceClientTest.php | 4492 ++++++++++++++++ .../V1/LicenseManagementService.php | Bin 0 -> 4558 bytes .../Consumer/Procurement/V1/Order.php | Bin 0 -> 4226 bytes .../Procurement/V1/ProcurementService.php | Bin 0 -> 4255 bytes .../Consumer/Procurement/V1/AssignRequest.php | 122 + .../Procurement/V1/AssignResponse.php | 34 + .../Procurement/V1/AssignmentProtocol.php | 108 + .../AssignmentProtocol/AutoAssignmentType.php | 88 + .../ManualAssignmentType.php | 36 + .../Procurement/V1/AutoRenewalBehavior.php | 61 + .../Procurement/V1/CancelOrderMetadata.php | 34 + .../Procurement/V1/CancelOrderRequest.php | 144 + .../CancelOrderRequest/CancellationPolicy.php | 70 + .../V1/EnumerateLicensedUsersRequest.php | 157 + .../V1/EnumerateLicensedUsersResponse.php | 106 + .../Procurement/V1/GetLicensePoolRequest.php | 85 + .../Procurement/V1/GetOrderRequest.php | 81 + .../Consumer/Procurement/V1/LicensePool.php | 183 + .../Consumer/Procurement/V1/LicensedUser.php | 167 + .../Consumer/Procurement/V1/LineItem.php | 213 + .../Procurement/V1/LineItemChange.php | 463 ++ .../Procurement/V1/LineItemChangeState.php | 99 + .../V1/LineItemChangeStateReasonType.php | 69 + .../Procurement/V1/LineItemChangeType.php | 75 + .../Consumer/Procurement/V1/LineItemInfo.php | 153 + .../Procurement/V1/ListOrdersRequest.php | 236 + .../Procurement/V1/ListOrdersResponse.php | 102 + .../Procurement/V1/ModifyOrderMetadata.php | 34 + .../Procurement/V1/ModifyOrderRequest.php | 190 + .../V1/ModifyOrderRequest/Modification.php | 218 + .../Consumer/Procurement/V1/Order.php | 306 ++ .../Consumer/Procurement/V1/Parameter.php | 111 + .../Procurement/V1/Parameter/Value.php | 142 + .../Procurement/V1/PlaceOrderMetadata.php | 34 + .../Procurement/V1/PlaceOrderRequest.php | 194 + .../Consumer/Procurement/V1/Subscription.php | 163 + .../Procurement/V1/UnassignRequest.php | 122 + .../Procurement/V1/UnassignResponse.php | 34 + .../V1/UpdateLicensePoolRequest.php | 152 + .../cancel_order.php | 84 + .../get_order.php | 71 + .../list_orders.php | 78 + .../modify_order.php | 83 + .../place_order.php | 96 + .../LicenseManagementServiceClient/assign.php | 75 + .../enumerate_licensed_users.php | 75 + .../get_license_pool.php | 71 + .../unassign.php | 75 + .../update_license_pool.php | 65 + .../ConsumerProcurementServiceClient.php | 485 ++ .../Client/LicenseManagementServiceClient.php | 356 ++ .../v1/src/V1/gapic_metadata.json | 77 + ...mer_procurement_service_client_config.json | 69 + ..._procurement_service_descriptor_config.php | 123 + ...procurement_service_rest_client_config.php | 100 + ...ense_management_service_client_config.json | 47 + ...e_management_service_descriptor_config.php | 100 + ..._management_service_rest_client_config.php | 104 + .../ConsumerProcurementServiceClientTest.php | 668 +++ .../LicenseManagementServiceClientTest.php | 457 ++ .../Confidentialcomputing/V1/Service.php | Bin 0 -> 4655 bytes .../ConfidentialComputing/V1/Challenge.php | 231 + .../V1/ConfidentialSpaceInfo.php | 72 + .../V1/ContainerImageSignature.php | 202 + .../V1/CreateChallengeRequest.php | 137 + .../V1/GcpCredentials.php | 68 + .../V1/SevSnpAttestation.php | 127 + .../ConfidentialComputing/V1/SignedEntity.php | 72 + .../V1/SigningAlgorithm.php | 68 + .../V1/TdxCcelAttestation.php | 181 + .../ConfidentialComputing/V1/TokenOptions.php | 147 + .../ConfidentialComputing/V1/TokenType.php | 69 + .../V1/TpmAttestation.php | 228 + .../V1/TpmAttestation/Quote.php | 173 + .../V1/VerifyAttestationRequest.php | 339 ++ .../V1/VerifyAttestationResponse.php | 106 + .../create_challenge.php | 74 + .../get_location.php | 57 + .../list_locations.php | 62 + .../verify_attestation.php | 80 + .../V1/Client/ConfidentialComputingClient.php | 346 ++ .../v1/src/V1/gapic_metadata.json | 38 + .../confidential_computing_client_config.json | 64 + ...nfidential_computing_descriptor_config.php | 90 + ...fidential_computing_rest_client_config.php | 77 + .../ConfidentialComputingClientTest.php | 374 ++ .../Google/Cloud/Config/V1/Config.php | Bin 0 -> 19463 bytes .../Google/Cloud/Config/V1/ApplyResults.php | 143 + .../Config/V1/CreateDeploymentRequest.php | 245 + .../Cloud/Config/V1/CreatePreviewRequest.php | 240 + .../Config/V1/DeleteDeploymentRequest.php | 242 + .../DeleteDeploymentRequest/DeletePolicy.php | 64 + .../Cloud/Config/V1/DeletePreviewRequest.php | 160 + .../Config/V1/DeleteStatefileRequest.php | 124 + .../src/Google/Cloud/Config/V1/Deployment.php | 1039 ++++ .../Cloud/Config/V1/Deployment/ErrorCode.php | 95 + .../Cloud/Config/V1/Deployment/LockState.php | 92 + .../Cloud/Config/V1/Deployment/State.php | 100 + .../Config/V1/DeploymentOperationMetadata.php | 183 + .../DeploymentStep.php | 135 + .../V1/ExportDeploymentStatefileRequest.php | 118 + .../Cloud/Config/V1/ExportLockInfoRequest.php | 86 + .../Config/V1/ExportPreviewResultRequest.php | 75 + .../Config/V1/ExportPreviewResultResponse.php | 77 + .../V1/ExportRevisionStatefileRequest.php | 76 + .../Cloud/Config/V1/GetDeploymentRequest.php | 84 + .../Cloud/Config/V1/GetPreviewRequest.php | 86 + .../Cloud/Config/V1/GetResourceRequest.php | 86 + .../Cloud/Config/V1/GetRevisionRequest.php | 86 + .../Config/V1/GetTerraformVersionRequest.php | 86 + .../src/Google/Cloud/Config/V1/GitSource.php | 173 + .../Config/V1/ImportStatefileRequest.php | 166 + .../Config/V1/ListDeploymentsRequest.php | 305 ++ .../Config/V1/ListDeploymentsResponse.php | 137 + .../Cloud/Config/V1/ListPreviewsRequest.php | 306 ++ .../Cloud/Config/V1/ListPreviewsResponse.php | 139 + .../Cloud/Config/V1/ListResourcesRequest.php | 283 ++ .../Cloud/Config/V1/ListResourcesResponse.php | 143 + .../Cloud/Config/V1/ListRevisionsRequest.php | 307 ++ .../Cloud/Config/V1/ListRevisionsResponse.php | 143 + .../V1/ListTerraformVersionsRequest.php | 271 + .../V1/ListTerraformVersionsResponse.php | 139 + .../Cloud/Config/V1/LockDeploymentRequest.php | 86 + .../src/Google/Cloud/Config/V1/LockInfo.php | 247 + .../Cloud/Config/V1/OperationMetadata.php | 382 ++ .../src/Google/Cloud/Config/V1/Preview.php | 853 ++++ .../Cloud/Config/V1/Preview/ErrorCode.php | 92 + .../Cloud/Config/V1/Preview/PreviewMode.php | 69 + .../Google/Cloud/Config/V1/Preview/State.php | 100 + .../Cloud/Config/V1/PreviewArtifacts.php | 109 + .../Config/V1/PreviewOperationMetadata.php | 179 + .../PreviewOperationMetadata/PreviewStep.php | 121 + .../Google/Cloud/Config/V1/PreviewResult.php | 101 + .../Cloud/Config/V1/QuotaValidation.php | 66 + .../src/Google/Cloud/Config/V1/Resource.php | 234 + .../Cloud/Config/V1/Resource/Intent.php | 85 + .../Google/Cloud/Config/V1/Resource/State.php | 78 + .../Cloud/Config/V1/ResourceCAIInfo.php | 71 + .../Cloud/Config/V1/ResourceTerraformInfo.php | 139 + .../src/Google/Cloud/Config/V1/Revision.php | 848 ++++ .../Cloud/Config/V1/Revision/Action.php | 71 + .../Cloud/Config/V1/Revision/ErrorCode.php | 81 + .../Google/Cloud/Config/V1/Revision/State.php | 71 + .../src/Google/Cloud/Config/V1/Statefile.php | 71 + .../Cloud/Config/V1/TerraformBlueprint.php | 152 + .../Google/Cloud/Config/V1/TerraformError.php | 191 + .../Cloud/Config/V1/TerraformOutput.php | 115 + .../Cloud/Config/V1/TerraformVariable.php | 77 + .../Cloud/Config/V1/TerraformVersion.php | 238 + .../Config/V1/TerraformVersion/State.php | 71 + .../Config/V1/UnlockDeploymentRequest.php | 122 + .../Config/V1/UpdateDeploymentRequest.php | 245 + .../V1/ConfigClient/create_deployment.php | 89 + .../V1/ConfigClient/create_preview.php | 86 + .../V1/ConfigClient/delete_deployment.php | 84 + .../V1/ConfigClient/delete_preview.php | 84 + .../V1/ConfigClient/delete_statefile.php | 74 + .../export_deployment_statefile.php | 73 + .../V1/ConfigClient/export_lock_info.php | 72 + .../V1/ConfigClient/export_preview_result.php | 73 + .../export_revision_statefile.php | 78 + .../V1/ConfigClient/get_deployment.php | 72 + .../V1/ConfigClient/get_iam_policy.php | 72 + .../samples/V1/ConfigClient/get_location.php | 57 + .../samples/V1/ConfigClient/get_preview.php | 72 + .../samples/V1/ConfigClient/get_resource.php | 79 + .../samples/V1/ConfigClient/get_revision.php | 77 + .../V1/ConfigClient/get_terraform_version.php | 77 + .../V1/ConfigClient/import_statefile.php | 78 + .../V1/ConfigClient/list_deployments.php | 79 + .../V1/ConfigClient/list_locations.php | 62 + .../samples/V1/ConfigClient/list_previews.php | 78 + .../V1/ConfigClient/list_resources.php | 83 + .../V1/ConfigClient/list_revisions.php | 78 + .../ConfigClient/list_terraform_versions.php | 79 + .../V1/ConfigClient/lock_deployment.php | 84 + .../V1/ConfigClient/set_iam_policy.php | 77 + .../V1/ConfigClient/test_iam_permissions.php | 84 + .../V1/ConfigClient/unlock_deployment.php | 87 + .../V1/ConfigClient/update_deployment.php | 71 + .../Config/v1/src/V1/Client/ConfigClient.php | 1218 +++++ .../Config/v1/src/V1/gapic_metadata.json | 158 + .../V1/resources/config_client_config.json | 166 + .../V1/resources/config_descriptor_config.php | 477 ++ .../resources/config_rest_client_config.php | 404 ++ .../tests/Unit/V1/Client/ConfigClientTest.php | 2706 ++++++++++ .../V1/ContactCenterInsights.php | Bin 0 -> 25609 bytes .../Contactcenterinsights/V1/Resources.php | Bin 0 -> 18494 bytes .../ContactCenterInsights/V1/Analysis.php | 263 + .../V1/AnalysisResult.php | 119 + .../AnalysisResult/CallAnalysisMetadata.php | 294 ++ .../V1/AnnotationBoundary.php | 116 + .../V1/AnnotatorSelector.php | 453 ++ .../AnnotatorSelector/SummarizationConfig.php | 117 + .../SummarizationModel.php | 64 + .../V1/AnswerFeedback.php | 140 + .../V1/AnswerFeedback/CorrectnessLevel.php | 71 + .../V1/ArticleSuggestionData.php | 265 + .../V1/BulkAnalyzeConversationsMetadata.php | 309 ++ .../V1/BulkAnalyzeConversationsRequest.php | 206 + .../V1/BulkAnalyzeConversationsResponse.php | 101 + .../V1/BulkDeleteConversationsMetadata.php | 203 + .../V1/BulkDeleteConversationsRequest.php | 203 + .../V1/BulkDeleteConversationsResponse.php | 33 + .../V1/CalculateIssueModelStatsRequest.php | 81 + .../V1/CalculateIssueModelStatsResponse.php | 81 + .../V1/CalculateStatsRequest.php | 119 + .../V1/CalculateStatsResponse.php | 366 ++ .../V1/CalculateStatsResponse/TimeSeries.php | 122 + .../TimeSeries/Interval.php | 114 + .../V1/CallAnnotation.php | 432 ++ .../ContactCenterInsights/V1/Conversation.php | 932 ++++ .../V1/Conversation/CallMetadata.php | 104 + .../V1/Conversation/Medium.php | 64 + .../V1/Conversation/QualityMetadata.php | 182 + .../QualityMetadata/AgentInfo.php | 176 + .../V1/Conversation/Transcript.php | 70 + .../Transcript/TranscriptSegment.php | 406 ++ .../DialogflowSegmentMetadata.php | 74 + .../Transcript/TranscriptSegment/WordInfo.php | 204 + .../V1/ConversationDataSource.php | 108 + .../V1/ConversationLevelSentiment.php | 111 + .../V1/ConversationLevelSilence.php | 111 + .../V1/ConversationParticipant.php | 226 + .../V1/ConversationParticipant/Role.php | 78 + ...onversationSummarizationSuggestionData.php | 265 + .../V1/ConversationView.php | 63 + .../V1/CreateAnalysisOperationMetadata.php | 199 + .../V1/CreateAnalysisRequest.php | 127 + .../V1/CreateConversationRequest.php | 184 + .../V1/CreateIssueModelMetadata.php | 165 + .../V1/CreateIssueModelRequest.php | 127 + .../V1/CreatePhraseMatcherRequest.php | 142 + .../V1/CreateViewRequest.php | 142 + .../V1/DeleteAnalysisRequest.php | 81 + .../V1/DeleteConversationRequest.php | 123 + .../V1/DeleteIssueModelMetadata.php | 165 + .../V1/DeleteIssueModelRequest.php | 81 + .../V1/DeleteIssueRequest.php | 81 + .../V1/DeletePhraseMatcherRequest.php | 81 + .../V1/DeleteViewRequest.php | 81 + .../V1/DeployIssueModelMetadata.php | 165 + .../V1/DeployIssueModelRequest.php | 81 + .../V1/DeployIssueModelResponse.php | 33 + .../V1/DialogflowIntent.php | 68 + .../V1/DialogflowInteractionData.php | 109 + .../V1/DialogflowSource.php | 113 + .../V1/EncryptionSpec.php | 126 + .../Cloud/ContactCenterInsights/V1/Entity.php | 243 + .../ContactCenterInsights/V1/Entity/Type.php | 163 + .../V1/EntityMentionData.php | 150 + .../V1/EntityMentionData/MentionType.php | 64 + .../V1/ExactMatchConfig.php | 67 + .../V1/ExportInsightsDataMetadata.php | 203 + .../V1/ExportInsightsDataRequest.php | 237 + .../BigQueryDestination.php | 162 + .../WriteDisposition.php | 65 + .../V1/ExportInsightsDataResponse.php | 33 + .../V1/ExportIssueModelMetadata.php | 165 + .../V1/ExportIssueModelRequest.php | 123 + .../GcsDestination.php | 70 + .../V1/ExportIssueModelResponse.php | 33 + .../V1/FaqAnswerData.php | 265 + .../ContactCenterInsights/V1/GcsSource.php | 109 + .../V1/GetAnalysisRequest.php | 81 + .../V1/GetConversationRequest.php | 115 + .../V1/GetEncryptionSpecRequest.php | 81 + .../V1/GetIssueModelRequest.php | 81 + .../V1/GetIssueRequest.php | 81 + .../V1/GetPhraseMatcherRequest.php | 81 + .../V1/GetSettingsRequest.php | 81 + .../V1/GetViewRequest.php | 81 + .../ContactCenterInsights/V1/HoldData.php | 33 + .../V1/ImportIssueModelMetadata.php | 165 + .../V1/ImportIssueModelRequest.php | 165 + .../V1/ImportIssueModelRequest/GcsSource.php | 70 + .../V1/ImportIssueModelResponse.php | 33 + .../V1/IngestConversationsMetadata.php | 247 + .../IngestConversationsStats.php | 184 + .../V1/IngestConversationsRequest.php | 364 ++ .../ConversationConfig.php | 166 + .../IngestConversationsRequest/GcsSource.php | 218 + .../GcsSource/BucketObjectType.php | 62 + .../TranscriptObjectConfig.php | 70 + .../V1/IngestConversationsResponse.php | 33 + .../V1/InitializeEncryptionSpecMetadata.php | 203 + .../V1/InitializeEncryptionSpecRequest.php | 105 + .../V1/InitializeEncryptionSpecResponse.php | 33 + .../Cloud/ContactCenterInsights/V1/Intent.php | 102 + .../V1/IntentMatchData.php | 74 + .../V1/InterruptionData.php | 33 + .../Cloud/ContactCenterInsights/V1/Issue.php | 269 + .../V1/IssueAssignment.php | 143 + .../V1/IssueMatchData.php | 77 + .../ContactCenterInsights/V1/IssueModel.php | 425 ++ .../V1/IssueModel/InputDataConfig.php | 155 + .../V1/IssueModel/ModelType.php | 64 + .../V1/IssueModel/State.php | 86 + .../V1/IssueModelLabelStats.php | 139 + .../V1/IssueModelLabelStats/IssueStats.php | 146 + .../V1/IssueModelResult.php | 105 + .../V1/ListAnalysesRequest.php | 207 + .../V1/ListAnalysesResponse.php | 105 + .../V1/ListConversationsRequest.php | 323 ++ .../V1/ListConversationsResponse.php | 109 + .../V1/ListIssueModelsRequest.php | 81 + .../V1/ListIssueModelsResponse.php | 67 + .../V1/ListIssuesRequest.php | 81 + .../V1/ListIssuesResponse.php | 67 + .../V1/ListPhraseMatchersRequest.php | 207 + .../V1/ListPhraseMatchersResponse.php | 105 + .../V1/ListViewsRequest.php | 169 + .../V1/ListViewsResponse.php | 105 + .../V1/PhraseMatchData.php | 102 + .../V1/PhraseMatchRule.php | 153 + .../V1/PhraseMatchRuleConfig.php | 75 + .../V1/PhraseMatchRuleGroup.php | 101 + .../PhraseMatchRuleGroupType.php | 65 + .../V1/PhraseMatcher.php | 477 ++ .../V1/PhraseMatcher/PhraseMatcherType.php | 65 + .../V1/RedactionConfig.php | 123 + .../V1/RuntimeAnnotation.php | 502 ++ .../V1/RuntimeAnnotation/UserInput.php | 146 + .../UserInput/QuerySource.php | 65 + .../V1/SentimentData.php | 105 + .../ContactCenterInsights/V1/Settings.php | 516 ++ .../V1/Settings/AnalysisConfig.php | 160 + .../ContactCenterInsights/V1/SilenceData.php | 33 + .../V1/SmartComposeSuggestionData.php | 189 + .../V1/SmartReplyData.php | 189 + .../ContactCenterInsights/V1/SpeechConfig.php | 79 + .../V1/UndeployIssueModelMetadata.php | 165 + .../V1/UndeployIssueModelRequest.php | 81 + .../V1/UndeployIssueModelResponse.php | 33 + .../V1/UpdateConversationRequest.php | 197 + .../V1/UpdateIssueModelRequest.php | 136 + .../V1/UpdateIssueRequest.php | 136 + .../V1/UpdatePhraseMatcherRequest.php | 136 + .../V1/UpdateSettingsRequest.php | 136 + .../V1/UpdateViewRequest.php | 136 + .../V1/UploadConversationMetadata.php | 247 + .../V1/UploadConversationRequest.php | 257 + .../Cloud/ContactCenterInsights/V1/View.php | 231 + .../bulk_analyze_conversations.php | 93 + .../bulk_delete_conversations.php | 85 + .../calculate_issue_model_stats.php | 75 + .../calculate_stats.php | 71 + .../create_analysis.php | 90 + .../create_conversation.php | 75 + .../create_issue_model.php | 85 + .../create_phrase_matcher.php | 80 + .../create_view.php | 76 + .../delete_analysis.php | 74 + .../delete_conversation.php | 73 + .../delete_issue.php | 74 + .../delete_issue_model.php | 84 + .../delete_phrase_matcher.php | 73 + .../delete_view.php | 69 + .../deploy_issue_model.php | 88 + .../export_insights_data.php | 83 + .../export_issue_model.php | 87 + .../get_analysis.php | 76 + .../get_conversation.php | 75 + .../get_encryption_spec.php | 71 + .../ContactCenterInsightsClient/get_issue.php | 76 + .../get_issue_model.php | 75 + .../get_phrase_matcher.php | 75 + .../get_settings.php | 71 + .../ContactCenterInsightsClient/get_view.php | 71 + .../import_issue_model.php | 83 + .../ingest_conversations.php | 84 + .../initialize_encryption_spec.php | 93 + .../list_analyses.php | 80 + .../list_conversations.php | 76 + .../list_issue_models.php | 71 + .../list_issues.php | 75 + .../list_phrase_matchers.php | 76 + .../list_views.php | 76 + .../undeploy_issue_model.php | 88 + .../update_conversation.php | 59 + .../update_issue.php | 59 + .../update_issue_model.php | 59 + .../update_phrase_matcher.php | 73 + .../update_settings.php | 62 + .../update_view.php | 59 + .../upload_conversation.php | 87 + .../V1/Client/ContactCenterInsightsClient.php | 1769 +++++++ .../v1/src/V1/gapic_metadata.json | 233 + ...contact_center_insights_client_config.json | 249 + ...tact_center_insights_descriptor_config.php | 690 +++ ...act_center_insights_rest_client_config.php | 568 +++ .../ContactCenterInsightsClientTest.php | 3901 ++++++++++++++ .../V1Beta/AccessApprovalRequests.php | Bin 0 -> 2501 bytes .../V1Beta/CompletionState.php | Bin 0 -> 1127 bytes .../Cloudcontrolspartner/V1Beta/Core.php | 57 + .../V1Beta/CustomerWorkloads.php | Bin 0 -> 3181 bytes .../Cloudcontrolspartner/V1Beta/Customers.php | Bin 0 -> 2625 bytes .../V1Beta/EkmConnections.php | Bin 0 -> 1970 bytes .../V1Beta/Monitoring.php | 33 + .../V1Beta/PartnerPermissions.php | Bin 0 -> 1849 bytes .../Cloudcontrolspartner/V1Beta/Partners.php | Bin 0 -> 2030 bytes .../V1Beta/Violations.php | Bin 0 -> 3506 bytes .../V1beta/AccessApprovalRequest.php | 207 + .../V1beta/AccessReason.php | 101 + .../V1beta/AccessReason/Type.php | 109 + .../V1beta/CompletionState.php | 75 + .../CloudControlsPartner/V1beta/Customer.php | 183 + .../V1beta/CustomerOnboardingState.php | 67 + .../V1beta/CustomerOnboardingStep.php | 189 + .../V1beta/CustomerOnboardingStep/Step.php | 64 + .../V1beta/EkmConnection.php | 149 + .../V1beta/EkmConnection/ConnectionError.php | 105 + .../V1beta/EkmConnection/ConnectionState.php | 78 + .../V1beta/EkmConnections.php | 105 + .../V1beta/EkmMetadata.php | 105 + .../V1beta/EkmMetadata/EkmSolution.php | 80 + .../V1beta/GetCustomerRequest.php | 86 + .../V1beta/GetEkmConnectionsRequest.php | 86 + .../V1beta/GetPartnerPermissionsRequest.php | 86 + .../V1beta/GetPartnerRequest.php | 86 + .../V1beta/GetViolationRequest.php | 86 + .../V1beta/GetWorkloadRequest.php | 86 + .../ListAccessApprovalRequestsRequest.php | 243 + .../ListAccessApprovalRequestsResponse.php | 139 + .../V1beta/ListCustomersRequest.php | 230 + .../V1beta/ListCustomersResponse.php | 139 + .../V1beta/ListViolationsRequest.php | 287 ++ .../V1beta/ListViolationsResponse.php | 143 + .../V1beta/ListWorkloadsRequest.php | 235 + .../V1beta/ListWorkloadsResponse.php | 139 + .../V1beta/OperationMetadata.php | 307 ++ .../CloudControlsPartner/V1beta/Partner.php | 311 ++ .../V1beta/PartnerPermissions.php | 105 + .../V1beta/PartnerPermissions/Permission.php | 83 + .../Cloud/CloudControlsPartner/V1beta/Sku.php | 117 + .../CloudControlsPartner/V1beta/Violation.php | 445 ++ .../V1beta/Violation/Remediation.php | 161 + .../Violation/Remediation/Instructions.php | 124 + .../Remediation/Instructions/Console.php | 138 + .../Remediation/Instructions/Gcloud.php | 138 + .../Violation/Remediation/RemediationType.php | 90 + .../V1beta/Violation/State.php | 71 + .../CloudControlsPartner/V1beta/Workload.php | 365 ++ .../V1beta/Workload/Partner.php | 93 + .../V1beta/WorkloadOnboardingState.php | 67 + .../V1beta/WorkloadOnboardingStep.php | 189 + .../V1beta/WorkloadOnboardingStep/Step.php | 64 + .../get_customer.php | 76 + .../get_ekm_connections.php | 77 + .../get_partner.php | 72 + .../get_partner_permissions.php | 77 + .../get_workload.php | 77 + .../list_access_approval_requests.php | 84 + .../list_customers.php | 80 + .../list_workloads.php | 82 + .../get_violation.php | 78 + .../list_violations.php | 89 + .../Client/CloudControlsPartnerCoreClient.php | 586 +++ .../CloudControlsPartnerMonitoringClient.php | 318 ++ .../v1beta/src/V1beta/gapic_metadata.json | 77 + ...d_controls_partner_core_client_config.json | 74 + ...ontrols_partner_core_descriptor_config.php | 156 + ...ntrols_partner_core_rest_client_config.php | 117 + ...rols_partner_monitoring_client_config.json | 44 + ...s_partner_monitoring_descriptor_config.php | 64 + ..._partner_monitoring_rest_client_config.php | 51 + .../CloudControlsPartnerCoreClientTest.php | 662 +++ ...oudControlsPartnerMonitoringClientTest.php | 245 + .../Google/Cloud/Datacatalog/V1/Bigquery.php | Bin 0 -> 1507 bytes .../Google/Cloud/Datacatalog/V1/Common.php | Bin 0 -> 1289 bytes .../Cloud/Datacatalog/V1/DataSource.php | Bin 0 -> 1270 bytes .../Cloud/Datacatalog/V1/Datacatalog.php | Bin 0 -> 22858 bytes .../Cloud/Datacatalog/V1/DataplexSpec.php | 46 + .../Cloud/Datacatalog/V1/DumpContent.php | Bin 0 -> 1441 bytes .../Cloud/Datacatalog/V1/GcsFilesetSpec.php | 37 + .../Cloud/Datacatalog/V1/PhysicalSchema.php | Bin 0 -> 1486 bytes .../Cloud/Datacatalog/V1/Policytagmanager.php | Bin 0 -> 6804 bytes .../V1/Policytagmanagerserialization.php | Bin 0 -> 3430 bytes .../Google/Cloud/Datacatalog/V1/Schema.php | Bin 0 -> 1944 bytes .../Google/Cloud/Datacatalog/V1/Search.php | Bin 0 -> 1629 bytes .../Google/Cloud/Datacatalog/V1/TableSpec.php | Bin 0 -> 1633 bytes .../Google/Cloud/Datacatalog/V1/Tags.php | Bin 0 -> 2882 bytes .../Cloud/Datacatalog/V1/Timestamps.php | 33 + .../Google/Cloud/Datacatalog/V1/Usage.php | Bin 0 -> 1739 bytes .../DataCatalog/V1/BigQueryConnectionSpec.php | 147 + .../BigQueryConnectionSpec/ConnectionType.php | 57 + .../V1/BigQueryDateShardedSpec.php | 192 + .../DataCatalog/V1/BigQueryRoutineSpec.php | 67 + .../DataCatalog/V1/BigQueryTableSpec.php | 148 + .../Cloud/DataCatalog/V1/BusinessContext.php | 121 + .../V1/CloudBigtableInstanceSpec.php | 69 + .../CloudBigtableClusterSpec.php | 172 + .../V1/CloudBigtableSystemSpec.php | 73 + .../V1/CloudSqlBigQueryConnectionSpec.php | 135 + .../DatabaseType.php | 64 + .../Cloud/DataCatalog/V1/ColumnSchema.php | 486 ++ .../V1/ColumnSchema/FieldElementType.php | 74 + .../V1/ColumnSchema/IndexingType.php | 78 + .../V1/ColumnSchema/LookerColumnSpec.php | 70 + .../LookerColumnSpec/LookerColumnType.php | 85 + .../Cloud/DataCatalog/V1/CommonUsageStats.php | 78 + .../Google/Cloud/DataCatalog/V1/Contacts.php | 67 + .../Cloud/DataCatalog/V1/Contacts/Person.php | 108 + .../V1/CreateEntryGroupRequest.php | 196 + .../DataCatalog/V1/CreateEntryRequest.php | 191 + .../DataCatalog/V1/CreatePolicyTagRequest.php | 128 + .../Cloud/DataCatalog/V1/CreateTagRequest.php | 150 + .../V1/CreateTagTemplateFieldRequest.php | 196 + .../V1/CreateTagTemplateRequest.php | 185 + .../DataCatalog/V1/CreateTaxonomyRequest.php | 128 + .../DataCatalog/V1/CrossRegionalSource.php | 68 + .../Cloud/DataCatalog/V1/DataSource.php | 181 + .../DataCatalog/V1/DataSource/Service.php | 64 + .../V1/DataSourceConnectionSpec.php | 80 + .../DataCatalog/V1/DatabaseTableSpec.php | 164 + .../V1/DatabaseTableSpec/DatabaseViewSpec.php | 145 + .../DatabaseViewSpec/ViewType.php | 64 + .../V1/DatabaseTableSpec/TableType.php | 64 + .../DataCatalog/V1/DataplexExternalTable.php | 175 + .../DataCatalog/V1/DataplexFilesetSpec.php | 77 + .../Cloud/DataCatalog/V1/DataplexSpec.php | 195 + .../DataCatalog/V1/DataplexTableSpec.php | 153 + .../Cloud/DataCatalog/V1/DatasetSpec.php | 76 + .../V1/DeleteEntryGroupRequest.php | 116 + .../DataCatalog/V1/DeleteEntryRequest.php | 82 + .../DataCatalog/V1/DeletePolicyTagRequest.php | 88 + .../Cloud/DataCatalog/V1/DeleteTagRequest.php | 82 + .../V1/DeleteTagTemplateFieldRequest.php | 124 + .../V1/DeleteTagTemplateRequest.php | 124 + .../DataCatalog/V1/DeleteTaxonomyRequest.php | 88 + .../Google/Cloud/DataCatalog/V1/DumpItem.php | 75 + .../src/Google/Cloud/DataCatalog/V1/Entry.php | 1338 +++++ .../Cloud/DataCatalog/V1/EntryGroup.php | 201 + .../Cloud/DataCatalog/V1/EntryOverview.php | 87 + .../Google/Cloud/DataCatalog/V1/EntryType.php | 171 + .../V1/ExportTaxonomiesRequest.php | 151 + .../V1/ExportTaxonomiesResponse.php | 68 + .../Google/Cloud/DataCatalog/V1/FieldType.php | 106 + .../DataCatalog/V1/FieldType/EnumType.php | 92 + .../V1/FieldType/EnumType/EnumValue.php | 84 + .../V1/FieldType/PrimitiveType.php | 83 + .../Cloud/DataCatalog/V1/FilesetSpec.php | 82 + .../Cloud/DataCatalog/V1/GcsFileSpec.php | 149 + .../Cloud/DataCatalog/V1/GcsFilesetSpec.php | 193 + .../DataCatalog/V1/GetEntryGroupRequest.php | 142 + .../Cloud/DataCatalog/V1/GetEntryRequest.php | 82 + .../DataCatalog/V1/GetPolicyTagRequest.php | 82 + .../DataCatalog/V1/GetTagTemplateRequest.php | 82 + .../DataCatalog/V1/GetTaxonomyRequest.php | 82 + .../DataCatalog/V1/ImportEntriesMetadata.php | 115 + .../V1/ImportEntriesMetadata/ImportState.php | 78 + .../DataCatalog/V1/ImportEntriesRequest.php | 149 + .../DataCatalog/V1/ImportEntriesResponse.php | 127 + .../V1/ImportTaxonomiesRequest.php | 147 + .../V1/ImportTaxonomiesResponse.php | 68 + .../Cloud/DataCatalog/V1/InlineSource.php | 67 + .../Cloud/DataCatalog/V1/IntegratedSystem.php | 110 + .../DataCatalog/V1/ListEntriesRequest.php | 220 + .../DataCatalog/V1/ListEntriesResponse.php | 106 + .../DataCatalog/V1/ListEntryGroupsRequest.php | 168 + .../V1/ListEntryGroupsResponse.php | 106 + .../DataCatalog/V1/ListPolicyTagsRequest.php | 166 + .../DataCatalog/V1/ListPolicyTagsResponse.php | 106 + .../Cloud/DataCatalog/V1/ListTagsRequest.php | 170 + .../Cloud/DataCatalog/V1/ListTagsResponse.php | 106 + .../DataCatalog/V1/ListTaxonomiesRequest.php | 200 + .../DataCatalog/V1/ListTaxonomiesResponse.php | 106 + .../Cloud/DataCatalog/V1/LookerSystemSpec.php | 243 + .../DataCatalog/V1/LookupEntryRequest.php | 295 ++ .../Cloud/DataCatalog/V1/ManagingSystem.php | 62 + .../Google/Cloud/DataCatalog/V1/ModelSpec.php | 76 + .../V1/ModifyEntryContactsRequest.php | 112 + .../V1/ModifyEntryOverviewRequest.php | 112 + .../Cloud/DataCatalog/V1/PersonalDetails.php | 111 + .../Cloud/DataCatalog/V1/PhysicalSchema.php | 241 + .../V1/PhysicalSchema/AvroSchema.php | 70 + .../V1/PhysicalSchema/CsvSchema.php | 36 + .../V1/PhysicalSchema/OrcSchema.php | 36 + .../V1/PhysicalSchema/ParquetSchema.php | 36 + .../V1/PhysicalSchema/ProtobufSchema.php | 70 + .../V1/PhysicalSchema/ThriftSchema.php | 70 + .../Google/Cloud/DataCatalog/V1/PolicyTag.php | 255 + .../DataCatalog/V1/ReconcileTagsMetadata.php | 107 + .../ReconciliationState.php | 71 + .../DataCatalog/V1/ReconcileTagsRequest.php | 190 + .../DataCatalog/V1/ReconcileTagsResponse.php | 137 + ...RenameTagTemplateFieldEnumValueRequest.php | 123 + .../V1/RenameTagTemplateFieldRequest.php | 123 + .../DataCatalog/V1/ReplaceTaxonomyRequest.php | 112 + .../Cloud/DataCatalog/V1/RoutineSpec.php | 262 + .../DataCatalog/V1/RoutineSpec/Argument.php | 146 + .../V1/RoutineSpec/Argument/Mode.php | 71 + .../V1/RoutineSpec/RoutineType.php | 64 + .../Google/Cloud/DataCatalog/V1/Schema.php | 75 + .../DataCatalog/V1/SearchCatalogRequest.php | 418 ++ .../V1/SearchCatalogRequest/Scope.php | 313 ++ .../DataCatalog/V1/SearchCatalogResponse.php | 190 + .../DataCatalog/V1/SearchCatalogResult.php | 474 ++ .../Cloud/DataCatalog/V1/SearchResultType.php | 68 + .../DataCatalog/V1/SerializedPolicyTag.php | 186 + .../DataCatalog/V1/SerializedTaxonomy.php | 179 + .../Cloud/DataCatalog/V1/ServiceSpec.php | 79 + .../DataCatalog/V1/SqlDatabaseSystemSpec.php | 197 + .../Cloud/DataCatalog/V1/StarEntryRequest.php | 82 + .../DataCatalog/V1/StarEntryResponse.php | 35 + .../DataCatalog/V1/StorageProperties.php | 169 + .../Cloud/DataCatalog/V1/SystemTimestamps.php | 189 + .../Cloud/DataCatalog/V1/TableSourceType.php | 68 + .../Google/Cloud/DataCatalog/V1/TableSpec.php | 83 + .../src/Google/Cloud/DataCatalog/V1/Tag.php | 256 + .../Google/Cloud/DataCatalog/V1/TagField.php | 344 ++ .../DataCatalog/V1/TagField/EnumValue.php | 70 + .../Cloud/DataCatalog/V1/TagTemplate.php | 244 + .../Cloud/DataCatalog/V1/TagTemplateField.php | 303 ++ .../Cloud/DataCatalog/V1/TaggedEntry.php | 152 + .../Google/Cloud/DataCatalog/V1/Taxonomy.php | 354 ++ .../DataCatalog/V1/Taxonomy/PolicyType.php | 58 + .../Cloud/DataCatalog/V1/Taxonomy/Service.php | 104 + .../DataCatalog/V1/UnstarEntryRequest.php | 82 + .../DataCatalog/V1/UnstarEntryResponse.php | 35 + .../V1/UpdateEntryGroupRequest.php | 166 + .../DataCatalog/V1/UpdateEntryRequest.php | 258 + .../DataCatalog/V1/UpdatePolicyTagRequest.php | 156 + .../Cloud/DataCatalog/V1/UpdateTagRequest.php | 171 + .../V1/UpdateTagTemplateFieldRequest.php | 253 + .../V1/UpdateTagTemplateRequest.php | 182 + .../DataCatalog/V1/UpdateTaxonomyRequest.php | 152 + .../Cloud/DataCatalog/V1/UsageSignal.php | 203 + .../Cloud/DataCatalog/V1/UsageStats.php | 176 + .../DataCatalog/V1/VertexDatasetSpec.php | 105 + .../V1/VertexDatasetSpec/DataType.php | 138 + .../DataCatalog/V1/VertexModelSourceInfo.php | 109 + .../VertexModelSourceInfo/ModelSourceType.php | 78 + .../Cloud/DataCatalog/V1/VertexModelSpec.php | 221 + .../Google/Cloud/DataCatalog/V1/ViewSpec.php | 67 + .../V1/DataCatalogClient/create_entry.php | 93 + .../DataCatalogClient/create_entry_group.php | 108 + .../V1/DataCatalogClient/create_tag.php | 104 + .../DataCatalogClient/create_tag_template.php | 88 + .../create_tag_template_field.php | 93 + .../V1/DataCatalogClient/delete_entry.php | 83 + .../DataCatalogClient/delete_entry_group.php | 74 + .../V1/DataCatalogClient/delete_tag.php | 74 + .../DataCatalogClient/delete_tag_template.php | 78 + .../delete_tag_template_field.php | 84 + .../V1/DataCatalogClient/get_entry.php | 76 + .../V1/DataCatalogClient/get_entry_group.php | 71 + .../V1/DataCatalogClient/get_iam_policy.php | 91 + .../V1/DataCatalogClient/get_tag_template.php | 71 + .../V1/DataCatalogClient/import_entries.php | 100 + .../V1/DataCatalogClient/list_entries.php | 82 + .../DataCatalogClient/list_entry_groups.php | 78 + .../V1/DataCatalogClient/list_tags.php | 87 + .../V1/DataCatalogClient/lookup_entry.php | 59 + .../modify_entry_contacts.php | 82 + .../modify_entry_overview.php | 82 + .../V1/DataCatalogClient/reconcile_tags.php | 108 + .../rename_tag_template_field.php | 86 + .../rename_tag_template_field_enum_value.php | 85 + .../V1/DataCatalogClient/search_catalog.php | 103 + .../V1/DataCatalogClient/set_iam_policy.php | 89 + .../V1/DataCatalogClient/star_entry.php | 77 + .../test_iam_permissions.php | 91 + .../V1/DataCatalogClient/unstar_entry.php | 77 + .../V1/DataCatalogClient/update_entry.php | 64 + .../DataCatalogClient/update_entry_group.php | 64 + .../V1/DataCatalogClient/update_tag.php | 78 + .../DataCatalogClient/update_tag_template.php | 69 + .../update_tag_template_field.php | 88 + .../create_policy_tag.php | 71 + .../create_taxonomy.php | 73 + .../delete_policy_tag.php | 81 + .../delete_taxonomy.php | 73 + .../PolicyTagManagerClient/get_iam_policy.php | 71 + .../PolicyTagManagerClient/get_policy_tag.php | 76 + .../PolicyTagManagerClient/get_taxonomy.php | 71 + .../list_policy_tags.php | 76 + .../list_taxonomies.php | 77 + .../PolicyTagManagerClient/set_iam_policy.php | 73 + .../test_iam_permissions.php | 79 + .../update_policy_tag.php | 58 + .../update_taxonomy.php | 58 + .../export_taxonomies.php | 88 + .../import_taxonomies.php | 79 + .../replace_taxonomy.php | 96 + .../v1/src/V1/Client/DataCatalogClient.php | 1574 ++++++ .../src/V1/Client/PolicyTagManagerClient.php | 633 +++ .../PolicyTagManagerSerializationClient.php | 345 ++ .../DataCatalog/v1/src/V1/gapic_metadata.json | 286 ++ .../resources/data_catalog_client_config.json | 206 + .../data_catalog_descriptor_config.php | 479 ++ .../data_catalog_rest_client_config.php | 535 ++ .../policy_tag_manager_client_config.json | 107 + .../policy_tag_manager_descriptor_config.php | 207 + .../policy_tag_manager_rest_client_config.php | 247 + ...g_manager_serialization_client_config.json | 47 + ...anager_serialization_descriptor_config.php | 68 + ...nager_serialization_rest_client_config.php | 109 + .../Unit/V1/Client/DataCatalogClientTest.php | 2770 ++++++++++ .../V1/Client/PolicyTagManagerClientTest.php | 991 ++++ ...olicyTagManagerSerializationClientTest.php | 314 ++ .../Cloud/Datacatalog/Lineage/V1/Lineage.php | Bin 0 -> 11416 bytes .../V1/BatchSearchLinkProcessesRequest.php | 206 + .../V1/BatchSearchLinkProcessesResponse.php | 106 + .../Lineage/V1/CreateLineageEventRequest.php | 170 + .../Lineage/V1/CreateProcessRequest.php | 175 + .../Lineage/V1/CreateRunRequest.php | 170 + .../Lineage/V1/DeleteLineageEventRequest.php | 120 + .../Lineage/V1/DeleteProcessRequest.php | 120 + .../Lineage/V1/DeleteRunRequest.php | 120 + .../Lineage/V1/EntityReference.php | 75 + .../DataCatalog/Lineage/V1/EventLink.php | 121 + .../Lineage/V1/GetLineageEventRequest.php | 82 + .../Lineage/V1/GetProcessRequest.php | 82 + .../DataCatalog/Lineage/V1/GetRunRequest.php | 82 + .../DataCatalog/Lineage/V1/LineageEvent.php | 226 + .../Cloud/DataCatalog/Lineage/V1/Link.php | 250 + .../Lineage/V1/ListLineageEventsRequest.php | 178 + .../Lineage/V1/ListLineageEventsResponse.php | 106 + .../Lineage/V1/ListProcessesRequest.php | 179 + .../Lineage/V1/ListProcessesResponse.php | 106 + .../Lineage/V1/ListRunsRequest.php | 174 + .../Lineage/V1/ListRunsResponse.php | 106 + .../Lineage/V1/OperationMetadata.php | 269 + .../Lineage/V1/OperationMetadata/State.php | 78 + .../Lineage/V1/OperationMetadata/Type.php | 64 + .../Cloud/DataCatalog/Lineage/V1/Origin.php | 141 + .../Lineage/V1/Origin/SourceType.php | 92 + .../Cloud/DataCatalog/Lineage/V1/Process.php | 215 + .../Lineage/V1/ProcessLinkInfo.php | 159 + .../DataCatalog/Lineage/V1/ProcessLinks.php | 121 + .../V1/ProcessOpenLineageRunEventRequest.php | 179 + .../V1/ProcessOpenLineageRunEventResponse.php | 156 + .../Cloud/DataCatalog/Lineage/V1/Run.php | 290 ++ .../DataCatalog/Lineage/V1/Run/State.php | 79 + .../Lineage/V1/SearchLinksRequest.php | 245 + .../Lineage/V1/SearchLinksResponse.php | 110 + .../Lineage/V1/UpdateProcessRequest.php | 182 + .../Lineage/V1/UpdateRunRequest.php | 193 + .../batch_search_link_processes.php | 99 + .../V1/LineageClient/create_lineage_event.php | 76 + .../V1/LineageClient/create_process.php | 74 + .../samples/V1/LineageClient/create_run.php | 80 + .../V1/LineageClient/delete_lineage_event.php | 75 + .../V1/LineageClient/delete_process.php | 80 + .../samples/V1/LineageClient/delete_run.php | 80 + .../V1/LineageClient/get_lineage_event.php | 77 + .../samples/V1/LineageClient/get_process.php | 71 + .../v1/samples/V1/LineageClient/get_run.php | 71 + .../V1/LineageClient/list_lineage_events.php | 77 + .../V1/LineageClient/list_processes.php | 78 + .../v1/samples/V1/LineageClient/list_runs.php | 77 + .../process_open_lineage_run_event.php | 77 + .../samples/V1/LineageClient/search_links.php | 84 + .../V1/LineageClient/update_process.php | 59 + .../samples/V1/LineageClient/update_run.php | 76 + .../v1/src/V1/Client/LineageClient.php | 837 +++ .../v1/src/V1/gapic_metadata.json | 103 + .../V1/resources/lineage_client_config.json | 119 + .../resources/lineage_descriptor_config.php | 294 ++ .../resources/lineage_rest_client_config.php | 272 + .../Unit/V1/Client/LineageClientTest.php | 1440 ++++++ .../Google/Cloud/Datafusion/V1/Datafusion.php | Bin 0 -> 6980 bytes .../Cloud/DataFusion/V1/Accelerator.php | 101 + .../V1/Accelerator/AcceleratorType.php | 75 + .../Cloud/DataFusion/V1/Accelerator/State.php | 72 + .../DataFusion/V1/CreateInstanceRequest.php | 168 + .../Cloud/DataFusion/V1/CryptoKeyConfig.php | 76 + .../DataFusion/V1/DeleteInstanceRequest.php | 86 + .../DataFusion/V1/GetInstanceRequest.php | 71 + .../Google/Cloud/DataFusion/V1/Instance.php | 1086 ++++ .../DataFusion/V1/Instance/DisabledReason.php | 57 + .../Cloud/DataFusion/V1/Instance/State.php | 121 + .../Cloud/DataFusion/V1/Instance/Type.php | 80 + .../V1/ListAvailableVersionsRequest.php | 200 + .../V1/ListAvailableVersionsResponse.php | 105 + .../DataFusion/V1/ListInstancesRequest.php | 219 + .../DataFusion/V1/ListInstancesResponse.php | 139 + .../Cloud/DataFusion/V1/NetworkConfig.php | 126 + .../Cloud/DataFusion/V1/OperationMetadata.php | 349 ++ .../DataFusion/V1/RestartInstanceRequest.php | 71 + .../DataFusion/V1/UpdateInstanceRequest.php | 173 + .../Google/Cloud/DataFusion/V1/Version.php | 170 + .../Cloud/DataFusion/V1/Version/Type.php | 64 + .../V1/DataFusionClient/create_instance.php | 87 + .../V1/DataFusionClient/delete_instance.php | 81 + .../V1/DataFusionClient/get_instance.php | 72 + .../list_available_versions.php | 78 + .../V1/DataFusionClient/list_instances.php | 79 + .../V1/DataFusionClient/restart_instance.php | 85 + .../V1/DataFusionClient/update_instance.php | 85 + .../v1/src/V1/Client/DataFusionClient.php | 506 ++ .../DataFusion/v1/src/V1/gapic_metadata.json | 53 + .../resources/data_fusion_client_config.json | 67 + .../data_fusion_descriptor_config.php | 162 + .../data_fusion_rest_client_config.php | 221 + .../Unit/V1/Client/DataFusionClientTest.php | 1015 ++++ .../Cloud/Datalabeling/V1Beta1/Annotation.php | Bin 0 -> 6038 bytes .../V1Beta1/AnnotationSpecSet.php | 38 + .../V1Beta1/DataLabelingService.php | Bin 0 -> 17166 bytes .../Datalabeling/V1Beta1/DataPayloads.php | 47 + .../Cloud/Datalabeling/V1Beta1/Dataset.php | Bin 0 -> 5687 bytes .../Cloud/Datalabeling/V1Beta1/Evaluation.php | Bin 0 -> 3375 bytes .../Datalabeling/V1Beta1/EvaluationJob.php | Bin 0 -> 3264 bytes .../V1Beta1/HumanAnnotationConfig.php | Bin 0 -> 2797 bytes .../Datalabeling/V1Beta1/Instruction.php | 46 + .../Cloud/Datalabeling/V1Beta1/Operations.php | Bin 0 -> 5092 bytes .../DataLabeling/V1beta1/AnnotatedDataset.php | 475 ++ .../V1beta1/AnnotatedDatasetMetadata.php | 420 ++ .../Cloud/DataLabeling/V1beta1/Annotation.php | 237 + .../V1beta1/AnnotationMetadata.php | 77 + .../V1beta1/AnnotationSentiment.php | 57 + .../DataLabeling/V1beta1/AnnotationSource.php | 53 + .../DataLabeling/V1beta1/AnnotationSpec.php | 108 + .../V1beta1/AnnotationSpecSet.php | 225 + .../DataLabeling/V1beta1/AnnotationType.php | 136 + .../DataLabeling/V1beta1/AnnotationValue.php | 351 ++ .../Cloud/DataLabeling/V1beta1/Attempt.php | 104 + .../DataLabeling/V1beta1/BigQuerySource.php | 109 + .../V1beta1/BoundingBoxEvaluationOptions.php | 83 + .../DataLabeling/V1beta1/BoundingPoly.php | 67 + .../V1beta1/BoundingPolyConfig.php | 101 + .../V1beta1/ClassificationMetadata.php | 67 + .../V1beta1/ClassificationMetrics.php | 125 + .../DataLabeling/V1beta1/ConfusionMatrix.php | 62 + .../ConfusionMatrix/ConfusionMatrixEntry.php | 116 + .../V1beta1/ConfusionMatrix/Row.php | 119 + .../CreateAnnotationSpecSetRequest.php | 142 + .../V1beta1/CreateDatasetRequest.php | 132 + .../V1beta1/CreateEvaluationJobRequest.php | 132 + .../V1beta1/CreateInstructionMetadata.php | 157 + .../V1beta1/CreateInstructionRequest.php | 132 + .../DataLabeling/V1beta1/CsvInstruction.php | 68 + .../Cloud/DataLabeling/V1beta1/DataItem.php | 179 + .../Cloud/DataLabeling/V1beta1/DataType.php | 69 + .../Cloud/DataLabeling/V1beta1/Dataset.php | 302 ++ .../V1beta1/DeleteAnnotatedDatasetRequest.php | 75 + .../DeleteAnnotationSpecSetRequest.php | 86 + .../V1beta1/DeleteDatasetRequest.php | 86 + .../V1beta1/DeleteEvaluationJobRequest.php | 87 + .../V1beta1/DeleteInstructionRequest.php | 86 + .../Cloud/DataLabeling/V1beta1/Evaluation.php | 348 ++ .../DataLabeling/V1beta1/EvaluationConfig.php | 82 + .../DataLabeling/V1beta1/EvaluationJob.php | 496 ++ .../V1beta1/EvaluationJob/State.php | 104 + .../V1beta1/EvaluationJobAlertConfig.php | 118 + .../V1beta1/EvaluationJobConfig.php | 620 +++ .../V1beta1/EvaluationMetrics.php | 96 + .../DataLabeling/V1beta1/EventConfig.php | 75 + .../Cloud/DataLabeling/V1beta1/Example.php | 222 + .../V1beta1/ExportDataOperationMetadata.php | 157 + .../V1beta1/ExportDataOperationResponse.php | 227 + .../V1beta1/ExportDataRequest.php | 263 + .../DataLabeling/V1beta1/GcsDestination.php | 110 + .../V1beta1/GcsFolderDestination.php | 67 + .../Cloud/DataLabeling/V1beta1/GcsSource.php | 105 + .../V1beta1/GetAnnotatedDatasetRequest.php | 91 + .../V1beta1/GetAnnotationSpecSetRequest.php | 86 + .../V1beta1/GetDataItemRequest.php | 86 + .../V1beta1/GetDatasetRequest.php | 86 + .../V1beta1/GetEvaluationJobRequest.php | 87 + .../V1beta1/GetEvaluationRequest.php | 87 + .../V1beta1/GetExampleRequest.php | 137 + .../V1beta1/GetInstructionRequest.php | 86 + .../V1beta1/HumanAnnotationConfig.php | 417 ++ .../V1beta1/ImageBoundingPolyAnnotation.php | 143 + .../V1beta1/ImageClassificationAnnotation.php | 77 + .../V1beta1/ImageClassificationConfig.php | 139 + .../DataLabeling/V1beta1/ImagePayload.php | 169 + .../V1beta1/ImagePolylineAnnotation.php | 142 + .../V1beta1/ImageSegmentationAnnotation.php | 143 + .../V1beta1/ImportDataOperationMetadata.php | 157 + .../V1beta1/ImportDataOperationResponse.php | 135 + .../V1beta1/ImportDataRequest.php | 170 + .../DataLabeling/V1beta1/InputConfig.php | 281 + .../DataLabeling/V1beta1/Instruction.php | 419 ++ ...LabelImageBoundingBoxOperationMetadata.php | 77 + ...abelImageBoundingPolyOperationMetadata.php | 77 + ...elImageClassificationOperationMetadata.php | 77 + ...geOrientedBoundingBoxOperationMetadata.php | 77 + .../LabelImagePolylineOperationMetadata.php | 77 + .../V1beta1/LabelImageRequest.php | 334 ++ .../V1beta1/LabelImageRequest/Feature.php | 94 + ...abelImageSegmentationOperationMetadata.php | 77 + .../V1beta1/LabelOperationMetadata.php | 559 ++ .../Cloud/DataLabeling/V1beta1/LabelStats.php | 83 + ...belTextClassificationOperationMetadata.php | 77 + ...lTextEntityExtractionOperationMetadata.php | 77 + .../DataLabeling/V1beta1/LabelTextRequest.php | 256 + .../V1beta1/LabelTextRequest/Feature.php | 62 + ...elVideoClassificationOperationMetadata.php | 77 + .../LabelVideoEventOperationMetadata.php | 77 + ...lVideoObjectDetectionOperationMetadata.php | 77 + ...elVideoObjectTrackingOperationMetadata.php | 77 + .../V1beta1/LabelVideoRequest.php | 334 ++ .../V1beta1/LabelVideoRequest/Feature.php | 76 + .../V1beta1/ListAnnotatedDatasetsRequest.php | 210 + .../V1beta1/ListAnnotatedDatasetsResponse.php | 101 + .../V1beta1/ListAnnotationSpecSetsRequest.php | 210 + .../ListAnnotationSpecSetsResponse.php | 101 + .../V1beta1/ListDataItemsRequest.php | 210 + .../V1beta1/ListDataItemsResponse.php | 101 + .../V1beta1/ListDatasetsRequest.php | 210 + .../V1beta1/ListDatasetsResponse.php | 101 + .../V1beta1/ListEvaluationJobsRequest.php | 245 + .../V1beta1/ListEvaluationJobsResponse.php | 101 + .../V1beta1/ListExamplesRequest.php | 220 + .../V1beta1/ListExamplesResponse.php | 101 + .../V1beta1/ListInstructionsRequest.php | 210 + .../V1beta1/ListInstructionsResponse.php | 101 + .../V1beta1/NormalizedBoundingPoly.php | 67 + .../V1beta1/NormalizedPolyline.php | 67 + .../DataLabeling/V1beta1/NormalizedVertex.php | 103 + .../V1beta1/ObjectDetectionConfig.php | 105 + .../V1beta1/ObjectDetectionMetrics.php | 77 + .../V1beta1/ObjectTrackingConfig.php | 67 + .../V1beta1/ObjectTrackingFrame.php | 142 + .../DataLabeling/V1beta1/OperatorMetadata.php | 177 + .../DataLabeling/V1beta1/OutputConfig.php | 114 + .../V1beta1/PauseEvaluationJobRequest.php | 87 + .../DataLabeling/V1beta1/PdfInstruction.php | 67 + .../Cloud/DataLabeling/V1beta1/Polyline.php | 67 + .../DataLabeling/V1beta1/PolylineConfig.php | 101 + .../Cloud/DataLabeling/V1beta1/PrCurve.php | 193 + .../PrCurve/ConfidenceMetricsEntry.php | 406 ++ .../V1beta1/ResumeEvaluationJobRequest.php | 87 + .../V1beta1/SearchEvaluationsRequest.php | 352 ++ .../V1beta1/SearchEvaluationsResponse.php | 101 + .../SearchExampleComparisonsRequest.php | 184 + .../SearchExampleComparisonsResponse.php | 101 + .../ExampleComparison.php | 115 + .../V1beta1/SegmentationConfig.php | 105 + .../DataLabeling/V1beta1/SentimentConfig.php | 75 + .../V1beta1/SequentialSegment.php | 101 + .../V1beta1/StringAggregationType.php | 64 + .../V1beta1/TextClassificationAnnotation.php | 77 + .../V1beta1/TextClassificationConfig.php | 149 + .../TextEntityExtractionAnnotation.php | 121 + .../V1beta1/TextEntityExtractionConfig.php | 67 + .../DataLabeling/V1beta1/TextMetadata.php | 75 + .../DataLabeling/V1beta1/TextPayload.php | 67 + .../DataLabeling/V1beta1/TimeSegment.php | 129 + .../V1beta1/UpdateEvaluationJobRequest.php | 168 + .../Cloud/DataLabeling/V1beta1/Vertex.php | 102 + .../V1beta1/VideoClassificationAnnotation.php | 121 + .../V1beta1/VideoClassificationConfig.php | 125 + .../AnnotationSpecSetConfig.php | 108 + .../V1beta1/VideoEventAnnotation.php | 121 + .../V1beta1/VideoObjectTrackingAnnotation.php | 155 + .../DataLabeling/V1beta1/VideoPayload.php | 203 + .../DataLabeling/V1beta1/VideoThumbnail.php | 115 + .../create_annotation_spec_set.php | 74 + .../create_dataset.php | 74 + .../create_evaluation_job.php | 74 + .../create_instruction.php | 86 + .../delete_annotated_dataset.php | 75 + .../delete_annotation_spec_set.php | 73 + .../delete_dataset.php | 70 + .../delete_evaluation_job.php | 71 + .../delete_instruction.php | 70 + .../DataLabelingServiceClient/export_data.php | 99 + .../get_annotated_dataset.php | 77 + .../get_annotation_spec_set.php | 75 + .../get_data_item.php | 73 + .../DataLabelingServiceClient/get_dataset.php | 72 + .../get_evaluation.php | 78 + .../get_evaluation_job.php | 73 + .../DataLabelingServiceClient/get_example.php | 78 + .../get_instruction.php | 72 + .../DataLabelingServiceClient/import_data.php | 91 + .../DataLabelingServiceClient/label_image.php | 109 + .../DataLabelingServiceClient/label_text.php | 109 + .../DataLabelingServiceClient/label_video.php | 109 + .../list_annotated_datasets.php | 77 + .../list_annotation_spec_sets.php | 77 + .../list_data_items.php | 78 + .../list_datasets.php | 77 + .../list_evaluation_jobs.php | 78 + .../list_examples.php | 80 + .../list_instructions.php | 77 + .../pause_evaluation_job.php | 72 + .../resume_evaluation_job.php | 72 + .../search_evaluations.php | 81 + .../search_example_comparisons.php | 85 + .../update_evaluation_job.php | 64 + .../Client/DataLabelingServiceClient.php | 1477 ++++++ .../src/V1beta1/DataLabelingServiceClient.php | 36 + .../Gapic/DataLabelingServiceGapicClient.php | 2740 ++++++++++ .../v1beta1/src/V1beta1/gapic_metadata.json | 188 + .../data_labeling_service_client_config.json | 215 + ...ata_labeling_service_descriptor_config.php | 562 ++ ...ta_labeling_service_rest_client_config.php | 463 ++ .../Client/DataLabelingServiceClientTest.php | 2943 +++++++++++ .../V1beta1/DataLabelingServiceClientTest.php | 2710 ++++++++++ .../Cloud/Dataform/V1Beta1/Dataform.php | Bin 0 -> 32183 bytes .../CancelWorkflowInvocationRequest.php | 67 + .../V1beta1/CodeCompilationConfig.php | 325 ++ .../Cloud/Dataform/V1beta1/CommitAuthor.php | 101 + .../Cloud/Dataform/V1beta1/CommitLogEntry.php | 189 + .../Cloud/Dataform/V1beta1/CommitMetadata.php | 111 + .../CommitRepositoryChangesRequest.php | 191 + .../FileOperation.php | 111 + .../FileOperation/DeleteFile.php | 36 + .../FileOperation/WriteFile.php | 70 + .../V1beta1/CommitWorkspaceChangesRequest.php | 183 + .../Dataform/V1beta1/CompilationResult.php | 353 ++ .../CompilationResult/CompilationError.php | 190 + .../V1beta1/CompilationResultAction.php | 304 ++ .../CompilationResultAction/Assertion.php | 273 + .../CompilationResultAction/Declaration.php | 85 + .../CompilationResultAction/Operations.php | 258 + .../CompilationResultAction/Relation.php | 552 ++ .../Relation/IncrementalTableConfig.php | 272 + .../Relation/RelationType.php | 78 + ...puteRepositoryAccessTokenStatusRequest.php | 67 + ...uteRepositoryAccessTokenStatusResponse.php | 67 + .../TokenStatus.php | 72 + .../CreateCompilationResultRequest.php | 132 + .../V1beta1/CreateReleaseConfigRequest.php | 173 + .../V1beta1/CreateRepositoryRequest.php | 173 + .../V1beta1/CreateWorkflowConfigRequest.php | 173 + .../CreateWorkflowInvocationRequest.php | 132 + .../V1beta1/CreateWorkspaceRequest.php | 173 + .../V1beta1/DeleteReleaseConfigRequest.php | 81 + .../V1beta1/DeleteRepositoryRequest.php | 123 + .../V1beta1/DeleteWorkflowConfigRequest.php | 81 + .../DeleteWorkflowInvocationRequest.php | 81 + .../V1beta1/DeleteWorkspaceRequest.php | 81 + .../Cloud/Dataform/V1beta1/DirectoryEntry.php | 108 + .../Dataform/V1beta1/FetchFileDiffRequest.php | 105 + .../V1beta1/FetchFileDiffResponse.php | 67 + .../V1beta1/FetchFileGitStatusesRequest.php | 67 + .../V1beta1/FetchFileGitStatusesResponse.php | 71 + .../UncommittedFileChange.php | 104 + .../UncommittedFileChange/State.php | 78 + .../V1beta1/FetchGitAheadBehindRequest.php | 109 + .../V1beta1/FetchGitAheadBehindResponse.php | 101 + .../V1beta1/FetchRemoteBranchesRequest.php | 67 + .../V1beta1/FetchRemoteBranchesResponse.php | 67 + .../V1beta1/FetchRepositoryHistoryRequest.php | 155 + .../FetchRepositoryHistoryResponse.php | 105 + .../V1beta1/GetCompilationResultRequest.php | 81 + .../V1beta1/GetReleaseConfigRequest.php | 81 + .../Dataform/V1beta1/GetRepositoryRequest.php | 81 + .../V1beta1/GetWorkflowConfigRequest.php | 81 + .../V1beta1/GetWorkflowInvocationRequest.php | 81 + .../Dataform/V1beta1/GetWorkspaceRequest.php | 81 + .../V1beta1/InstallNpmPackagesRequest.php | 67 + .../V1beta1/InstallNpmPackagesResponse.php | 33 + .../Dataform/V1beta1/InvocationConfig.php | 247 + .../V1beta1/ListCompilationResultsRequest.php | 174 + .../ListCompilationResultsResponse.php | 139 + .../V1beta1/ListReleaseConfigsRequest.php | 174 + .../V1beta1/ListReleaseConfigsResponse.php | 139 + .../V1beta1/ListRepositoriesRequest.php | 250 + .../V1beta1/ListRepositoriesResponse.php | 139 + .../V1beta1/ListWorkflowConfigsRequest.php | 174 + .../V1beta1/ListWorkflowConfigsResponse.php | 139 + .../ListWorkflowInvocationsRequest.php | 250 + .../ListWorkflowInvocationsResponse.php | 139 + .../V1beta1/ListWorkspacesRequest.php | 250 + .../V1beta1/ListWorkspacesResponse.php | 139 + .../Dataform/V1beta1/MakeDirectoryRequest.php | 105 + .../V1beta1/MakeDirectoryResponse.php | 33 + .../Dataform/V1beta1/MoveDirectoryRequest.php | 143 + .../V1beta1/MoveDirectoryResponse.php | 33 + .../Dataform/V1beta1/MoveFileRequest.php | 143 + .../Dataform/V1beta1/MoveFileResponse.php | 33 + .../V1beta1/PullGitCommitsRequest.php | 153 + .../V1beta1/PushGitCommitsRequest.php | 109 + .../QueryCompilationResultActionsRequest.php | 201 + .../QueryCompilationResultActionsResponse.php | 105 + .../V1beta1/QueryDirectoryContentsRequest.php | 197 + .../QueryDirectoryContentsResponse.php | 105 + ...ueryRepositoryDirectoryContentsRequest.php | 239 + ...eryRepositoryDirectoryContentsResponse.php | 105 + .../QueryWorkflowInvocationActionsRequest.php | 163 + ...QueryWorkflowInvocationActionsResponse.php | 105 + .../Dataform/V1beta1/ReadFileRequest.php | 105 + .../Dataform/V1beta1/ReadFileResponse.php | 67 + .../V1beta1/ReadRepositoryFileRequest.php | 139 + .../V1beta1/ReadRepositoryFileResponse.php | 67 + .../Dataform/V1beta1/RelationDescriptor.php | 135 + .../RelationDescriptor/ColumnDescriptor.php | 142 + .../Cloud/Dataform/V1beta1/ReleaseConfig.php | 345 ++ .../ReleaseConfig/ScheduledReleaseRecord.php | 165 + .../V1beta1/RemoveDirectoryRequest.php | 105 + .../Dataform/V1beta1/RemoveFileRequest.php | 105 + .../Cloud/Dataform/V1beta1/Repository.php | 361 ++ .../V1beta1/Repository/GitRemoteSettings.php | 237 + .../SshAuthenticationConfig.php | 116 + .../GitRemoteSettings/TokenStatus.php | 70 + .../WorkspaceCompilationOverrides.php | 150 + .../V1beta1/ResetWorkspaceChangesRequest.php | 139 + .../Google/Cloud/Dataform/V1beta1/Target.php | 136 + .../V1beta1/UpdateReleaseConfigRequest.php | 141 + .../V1beta1/UpdateRepositoryRequest.php | 141 + .../V1beta1/UpdateWorkflowConfigRequest.php | 141 + .../Cloud/Dataform/V1beta1/WorkflowConfig.php | 279 + .../ScheduledExecutionRecord.php | 165 + .../Dataform/V1beta1/WorkflowInvocation.php | 273 + .../V1beta1/WorkflowInvocation/State.php | 86 + .../V1beta1/WorkflowInvocationAction.php | 305 ++ .../BigQueryAction.php | 70 + .../WorkflowInvocationAction/State.php | 94 + .../Cloud/Dataform/V1beta1/Workspace.php | 67 + .../Dataform/V1beta1/WriteFileRequest.php | 135 + .../Dataform/V1beta1/WriteFileResponse.php | 33 + .../cancel_workflow_invocation.php | 74 + .../commit_repository_changes.php | 89 + .../commit_workspace_changes.php | 86 + ...compute_repository_access_token_status.php | 71 + .../create_compilation_result.php | 74 + .../DataformClient/create_release_config.php | 88 + .../DataformClient/create_repository.php | 78 + .../DataformClient/create_workflow_config.php | 96 + .../create_workflow_invocation.php | 74 + .../DataformClient/create_workspace.php | 78 + .../DataformClient/delete_release_config.php | 74 + .../DataformClient/delete_repository.php | 69 + .../DataformClient/delete_workflow_config.php | 74 + .../delete_workflow_invocation.php | 74 + .../DataformClient/delete_workspace.php | 74 + .../DataformClient/fetch_file_diff.php | 80 + .../fetch_file_git_statuses.php | 76 + .../DataformClient/fetch_git_ahead_behind.php | 76 + .../DataformClient/fetch_remote_branches.php | 71 + .../fetch_repository_history.php | 77 + .../DataformClient/get_compilation_result.php | 76 + .../V1beta1/DataformClient/get_iam_policy.php | 72 + .../V1beta1/DataformClient/get_location.php | 57 + .../DataformClient/get_release_config.php | 76 + .../V1beta1/DataformClient/get_repository.php | 71 + .../DataformClient/get_workflow_config.php | 76 + .../get_workflow_invocation.php | 76 + .../V1beta1/DataformClient/get_workspace.php | 76 + .../DataformClient/install_npm_packages.php | 76 + .../list_compilation_results.php | 77 + .../V1beta1/DataformClient/list_locations.php | 62 + .../DataformClient/list_release_configs.php | 77 + .../DataformClient/list_repositories.php | 77 + .../DataformClient/list_workflow_configs.php | 77 + .../list_workflow_invocations.php | 77 + .../DataformClient/list_workspaces.php | 77 + .../V1beta1/DataformClient/make_directory.php | 80 + .../V1beta1/DataformClient/move_directory.php | 85 + .../V1beta1/DataformClient/move_file.php | 84 + .../DataformClient/pull_git_commits.php | 86 + .../DataformClient/push_git_commits.php | 74 + .../query_compilation_result_actions.php | 81 + .../query_directory_contents.php | 81 + .../query_repository_directory_contents.php | 77 + .../query_workflow_invocation_actions.php | 81 + .../V1beta1/DataformClient/read_file.php | 80 + .../DataformClient/read_repository_file.php | 75 + .../DataformClient/remove_directory.php | 78 + .../V1beta1/DataformClient/remove_file.php | 78 + .../reset_workspace_changes.php | 74 + .../V1beta1/DataformClient/set_iam_policy.php | 77 + .../DataformClient/test_iam_permissions.php | 84 + .../DataformClient/update_release_config.php | 76 + .../DataformClient/update_repository.php | 59 + .../DataformClient/update_workflow_config.php | 80 + .../V1beta1/DataformClient/write_file.php | 82 + .../src/V1beta1/Client/DataformClient.php | 2079 ++++++++ .../v1beta1/src/V1beta1/DataformClient.php | 36 + .../src/V1beta1/Gapic/DataformGapicClient.php | 3551 +++++++++++++ .../v1beta1/src/V1beta1/gapic_metadata.json | 298 ++ .../resources/dataform_client_config.json | 314 ++ .../resources/dataform_descriptor_config.php | 814 +++ .../resources/dataform_rest_client_config.php | 722 +++ .../V1beta1/Client/DataformClientTest.php | 4087 +++++++++++++++ .../tests/Unit/V1beta1/DataformClientTest.php | 3731 ++++++++++++++ .../Google/Cloud/Dataplex/V1/Analyze.php | Bin 0 -> 4126 bytes .../Google/Cloud/Dataplex/V1/Catalog.php | 370 ++ .../Google/Cloud/Dataplex/V1/Content.php | Bin 0 -> 4464 bytes .../Google/Cloud/Dataplex/V1/DataProfile.php | Bin 0 -> 3237 bytes .../Google/Cloud/Dataplex/V1/DataQuality.php | Bin 0 -> 5337 bytes .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | Bin 0 -> 10492 bytes .../Google/Cloud/Dataplex/V1/Datascans.php | Bin 0 -> 8101 bytes .../Google/Cloud/Dataplex/V1/Logs.php | Bin 0 -> 7943 bytes .../Google/Cloud/Dataplex/V1/Metadata.php | Bin 0 -> 8224 bytes .../Google/Cloud/Dataplex/V1/Processing.php | Bin 0 -> 1353 bytes .../Google/Cloud/Dataplex/V1/Resources.php | Bin 0 -> 8775 bytes .../Google/Cloud/Dataplex/V1/Security.php | 34 + .../Google/Cloud/Dataplex/V1/Service.php | 301 ++ .../Google/Cloud/Dataplex/V1/Tasks.php | Bin 0 -> 4969 bytes .../src/Google/Cloud/Dataplex/V1/Action.php | 634 +++ .../Cloud/Dataplex/V1/Action/Category.php | 71 + .../V1/Action/FailedSecurityPolicyApply.php | 77 + .../V1/Action/IncompatibleDataSchema.php | 218 + .../IncompatibleDataSchema/SchemaChange.php | 65 + .../Dataplex/V1/Action/InvalidDataFormat.php | 142 + .../V1/Action/InvalidDataOrganization.php | 36 + .../V1/Action/InvalidDataPartition.php | 70 + .../PartitionStructure.php | 64 + .../Cloud/Dataplex/V1/Action/MissingData.php | 36 + .../Dataplex/V1/Action/MissingResource.php | 36 + .../V1/Action/UnauthorizedResource.php | 38 + .../src/Google/Cloud/Dataplex/V1/Aspect.php | 278 + .../Google/Cloud/Dataplex/V1/AspectSource.php | 122 + .../Google/Cloud/Dataplex/V1/AspectType.php | 472 ++ .../Dataplex/V1/AspectType/Authorization.php | 78 + .../V1/AspectType/MetadataTemplate.php | 546 ++ .../MetadataTemplate/Annotations.php | 264 + .../MetadataTemplate/Constraints.php | 70 + .../AspectType/MetadataTemplate/EnumValue.php | 146 + .../src/Google/Cloud/Dataplex/V1/Asset.php | 574 +++ .../Cloud/Dataplex/V1/Asset/DiscoverySpec.php | 317 ++ .../V1/Asset/DiscoverySpec/CsvOptions.php | 184 + .../V1/Asset/DiscoverySpec/JsonOptions.php | 112 + .../Dataplex/V1/Asset/DiscoveryStatus.php | 280 + .../V1/Asset/DiscoveryStatus/State.php | 79 + .../V1/Asset/DiscoveryStatus/Stats.php | 172 + .../Cloud/Dataplex/V1/Asset/ResourceSpec.php | 154 + .../V1/Asset/ResourceSpec/AccessMode.php | 65 + .../Dataplex/V1/Asset/ResourceSpec/Type.php | 64 + .../Dataplex/V1/Asset/ResourceStatus.php | 182 + .../V1/Asset/ResourceStatus/State.php | 64 + .../Dataplex/V1/Asset/SecurityStatus.php | 153 + .../V1/Asset/SecurityStatus/State.php | 73 + .../Google/Cloud/Dataplex/V1/AssetStatus.php | 149 + .../Cloud/Dataplex/V1/CancelJobRequest.php | 86 + .../src/Google/Cloud/Dataplex/V1/Content.php | 428 ++ .../Cloud/Dataplex/V1/Content/Notebook.php | 70 + .../V1/Content/Notebook/KernelType.php | 57 + .../Cloud/Dataplex/V1/Content/SqlScript.php | 70 + .../V1/Content/SqlScript/QueryEngine.php | 57 + .../Dataplex/V1/CreateAspectTypeRequest.php | 211 + .../Cloud/Dataplex/V1/CreateAssetRequest.php | 241 + .../Dataplex/V1/CreateContentRequest.php | 170 + .../V1/CreateDataAttributeBindingRequest.php | 231 + .../V1/CreateDataAttributeRequest.php | 231 + .../Dataplex/V1/CreateDataScanRequest.php | 242 + .../Dataplex/V1/CreateDataTaxonomyRequest.php | 236 + .../Cloud/Dataplex/V1/CreateEntityRequest.php | 170 + .../Dataplex/V1/CreateEntryGroupRequest.php | 211 + .../Cloud/Dataplex/V1/CreateEntryRequest.php | 240 + .../Dataplex/V1/CreateEntryTypeRequest.php | 211 + .../Dataplex/V1/CreateEnvironmentRequest.php | 231 + .../Cloud/Dataplex/V1/CreateLakeRequest.php | 246 + .../Dataplex/V1/CreatePartitionRequest.php | 170 + .../Cloud/Dataplex/V1/CreateTaskRequest.php | 206 + .../Cloud/Dataplex/V1/CreateZoneRequest.php | 246 + .../Cloud/Dataplex/V1/DataAccessSpec.php | 83 + .../Cloud/Dataplex/V1/DataAttribute.php | 530 ++ .../Dataplex/V1/DataAttributeBinding.php | 492 ++ .../Dataplex/V1/DataAttributeBinding/Path.php | 118 + .../Cloud/Dataplex/V1/DataProfileResult.php | 200 + .../PostScanActionsResult.php | 80 + .../BigQueryExportResult.php | 104 + .../BigQueryExportResult/State.php | 72 + .../Dataplex/V1/DataProfileResult/Profile.php | 70 + .../V1/DataProfileResult/Profile/Field.php | 210 + .../Profile/Field/ProfileInfo.php | 270 + .../Field/ProfileInfo/DoubleFieldInfo.php | 262 + .../Field/ProfileInfo/IntegerFieldInfo.php | 266 + .../Field/ProfileInfo/StringFieldInfo.php | 138 + .../Profile/Field/ProfileInfo/TopNValue.php | 142 + .../Cloud/Dataplex/V1/DataProfileSpec.php | 281 + .../V1/DataProfileSpec/PostScanActions.php | 84 + .../PostScanActions/BigQueryExport.php | 78 + .../V1/DataProfileSpec/SelectedFields.php | 90 + .../Dataplex/V1/DataQualityColumnResult.php | 124 + .../Dataplex/V1/DataQualityDimension.php | 76 + .../V1/DataQualityDimensionResult.php | 168 + .../Cloud/Dataplex/V1/DataQualityResult.php | 355 ++ .../PostScanActionsResult.php | 80 + .../BigQueryExportResult.php | 104 + .../BigQueryExportResult/State.php | 72 + .../Cloud/Dataplex/V1/DataQualityRule.php | 636 +++ .../V1/DataQualityRule/NonNullExpectation.php | 36 + .../V1/DataQualityRule/RangeExpectation.php | 204 + .../V1/DataQualityRule/RegexExpectation.php | 70 + .../RowConditionExpectation.php | 73 + .../V1/DataQualityRule/SetExpectation.php | 70 + .../V1/DataQualityRule/SqlAssertion.php | 79 + .../StatisticRangeExpectation.php | 239 + .../ColumnStatistic.php | 71 + .../TableConditionExpectation.php | 73 + .../DataQualityRule/UniquenessExpectation.php | 36 + .../Dataplex/V1/DataQualityRuleResult.php | 359 ++ .../Dataplex/V1/DataQualityScanRuleResult.php | 488 ++ .../EvaluationType.php | 64 + .../V1/DataQualityScanRuleResult/Result.php | 64 + .../V1/DataQualityScanRuleResult/RuleType.php | 122 + .../Cloud/Dataplex/V1/DataQualitySpec.php | 215 + .../V1/DataQualitySpec/PostScanActions.php | 132 + .../PostScanActions/BigQueryExport.php | 78 + .../PostScanActions/JobEndTrigger.php | 37 + .../PostScanActions/JobFailureTrigger.php | 37 + .../PostScanActions/NotificationReport.php | 212 + .../PostScanActions/Recipients.php | 75 + .../PostScanActions/ScoreThresholdTrigger.php | 71 + .../src/Google/Cloud/Dataplex/V1/DataScan.php | 676 +++ .../Dataplex/V1/DataScan/ExecutionSpec.php | 136 + .../Dataplex/V1/DataScan/ExecutionStatus.php | 168 + .../Cloud/Dataplex/V1/DataScanEvent.php | 633 +++ .../DataProfileAppliedConfigs.php | 150 + .../V1/DataScanEvent/DataProfileResult.php | 70 + .../DataQualityAppliedConfigs.php | 112 + .../V1/DataScanEvent/DataQualityResult.php | 292 ++ .../DataScanEvent/PostScanActionsResult.php | 80 + .../BigQueryExportResult.php | 104 + .../BigQueryExportResult/State.php | 72 + .../Dataplex/V1/DataScanEvent/ScanType.php | 64 + .../Cloud/Dataplex/V1/DataScanEvent/Scope.php | 64 + .../Cloud/Dataplex/V1/DataScanEvent/State.php | 85 + .../Dataplex/V1/DataScanEvent/Trigger.php | 64 + .../Google/Cloud/Dataplex/V1/DataScanJob.php | 453 ++ .../Cloud/Dataplex/V1/DataScanJob/State.php | 92 + .../Google/Cloud/Dataplex/V1/DataScanType.php | 61 + .../Google/Cloud/Dataplex/V1/DataSource.php | 123 + .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | 415 ++ .../Dataplex/V1/DeleteAspectTypeRequest.php | 124 + .../Cloud/Dataplex/V1/DeleteAssetRequest.php | 86 + .../Dataplex/V1/DeleteContentRequest.php | 86 + .../V1/DeleteDataAttributeBindingRequest.php | 132 + .../V1/DeleteDataAttributeRequest.php | 124 + .../Dataplex/V1/DeleteDataScanRequest.php | 96 + .../Dataplex/V1/DeleteDataTaxonomyRequest.php | 124 + .../Cloud/Dataplex/V1/DeleteEntityRequest.php | 124 + .../Dataplex/V1/DeleteEntryGroupRequest.php | 124 + .../Cloud/Dataplex/V1/DeleteEntryRequest.php | 84 + .../Dataplex/V1/DeleteEntryTypeRequest.php | 124 + .../Dataplex/V1/DeleteEnvironmentRequest.php | 86 + .../Cloud/Dataplex/V1/DeleteLakeRequest.php | 86 + .../Dataplex/V1/DeletePartitionRequest.php | 140 + .../Cloud/Dataplex/V1/DeleteTaskRequest.php | 86 + .../Cloud/Dataplex/V1/DeleteZoneRequest.php | 86 + .../Cloud/Dataplex/V1/DiscoveryEvent.php | 378 ++ .../V1/DiscoveryEvent/ActionDetails.php | 74 + .../V1/DiscoveryEvent/ConfigDetails.php | 82 + .../V1/DiscoveryEvent/EntityDetails.php | 108 + .../Dataplex/V1/DiscoveryEvent/EntityType.php | 64 + .../Dataplex/V1/DiscoveryEvent/EventType.php | 99 + .../V1/DiscoveryEvent/PartitionDetails.php | 184 + .../src/Google/Cloud/Dataplex/V1/Entity.php | 785 +++ .../V1/Entity/CompatibilityStatus.php | 124 + .../CompatibilityStatus/Compatibility.php | 112 + .../Google/Cloud/Dataplex/V1/Entity/Type.php | 64 + .../src/Google/Cloud/Dataplex/V1/Entry.php | 368 ++ .../Google/Cloud/Dataplex/V1/EntryGroup.php | 383 ++ .../Google/Cloud/Dataplex/V1/EntrySource.php | 430 ++ .../Dataplex/V1/EntrySource/Ancestor.php | 105 + .../Google/Cloud/Dataplex/V1/EntryType.php | 533 ++ .../Dataplex/V1/EntryType/AspectInfo.php | 68 + .../Dataplex/V1/EntryType/Authorization.php | 78 + .../Google/Cloud/Dataplex/V1/EntryView.php | 78 + .../Google/Cloud/Dataplex/V1/Environment.php | 518 ++ .../Dataplex/V1/Environment/Endpoints.php | 104 + .../V1/Environment/InfrastructureSpec.php | 123 + .../InfrastructureSpec/ComputeResources.php | 146 + .../InfrastructureSpec/OsImageRuntime.php | 200 + .../Dataplex/V1/Environment/SessionSpec.php | 134 + .../Dataplex/V1/Environment/SessionStatus.php | 74 + .../V1/GenerateDataQualityRulesRequest.php | 101 + .../V1/GenerateDataQualityRulesResponse.php | 71 + .../Dataplex/V1/GetAspectTypeRequest.php | 86 + .../Cloud/Dataplex/V1/GetAssetRequest.php | 86 + .../Cloud/Dataplex/V1/GetContentRequest.php | 120 + .../V1/GetContentRequest/ContentView.php | 66 + .../V1/GetDataAttributeBindingRequest.php | 86 + .../Dataplex/V1/GetDataAttributeRequest.php | 86 + .../Dataplex/V1/GetDataScanJobRequest.php | 130 + .../GetDataScanJobRequest/DataScanJobView.php | 64 + .../Cloud/Dataplex/V1/GetDataScanRequest.php | 130 + .../V1/GetDataScanRequest/DataScanView.php | 64 + .../Dataplex/V1/GetDataTaxonomyRequest.php | 86 + .../Cloud/Dataplex/V1/GetEntityRequest.php | 124 + .../V1/GetEntityRequest/EntityView.php | 71 + .../Dataplex/V1/GetEntryGroupRequest.php | 86 + .../Cloud/Dataplex/V1/GetEntryRequest.php | 194 + .../Cloud/Dataplex/V1/GetEntryTypeRequest.php | 86 + .../Dataplex/V1/GetEnvironmentRequest.php | 86 + .../Cloud/Dataplex/V1/GetJobRequest.php | 86 + .../Cloud/Dataplex/V1/GetLakeRequest.php | 86 + .../Cloud/Dataplex/V1/GetPartitionRequest.php | 96 + .../Cloud/Dataplex/V1/GetTaskRequest.php | 86 + .../Cloud/Dataplex/V1/GetZoneRequest.php | 86 + .../Cloud/Dataplex/V1/GovernanceEvent.php | 149 + .../Dataplex/V1/GovernanceEvent/Entity.php | 112 + .../V1/GovernanceEvent/Entity/EntityType.php | 64 + .../Dataplex/V1/GovernanceEvent/EventType.php | 162 + .../src/Google/Cloud/Dataplex/V1/Job.php | 483 ++ .../Google/Cloud/Dataplex/V1/Job/Service.php | 55 + .../Google/Cloud/Dataplex/V1/Job/State.php | 90 + .../Google/Cloud/Dataplex/V1/Job/Trigger.php | 65 + .../src/Google/Cloud/Dataplex/V1/JobEvent.php | 394 ++ .../Dataplex/V1/JobEvent/ExecutionTrigger.php | 65 + .../Cloud/Dataplex/V1/JobEvent/Service.php | 57 + .../Cloud/Dataplex/V1/JobEvent/State.php | 78 + .../Cloud/Dataplex/V1/JobEvent/Type.php | 64 + .../src/Google/Cloud/Dataplex/V1/Lake.php | 518 ++ .../Cloud/Dataplex/V1/Lake/Metastore.php | 82 + .../Dataplex/V1/Lake/MetastoreStatus.php | 182 + .../V1/Lake/MetastoreStatus/State.php | 78 + .../Cloud/Dataplex/V1/ListActionsResponse.php | 105 + .../Dataplex/V1/ListAspectTypesRequest.php | 275 + .../Dataplex/V1/ListAspectTypesResponse.php | 139 + .../Dataplex/V1/ListAssetActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListAssetsRequest.php | 242 + .../Cloud/Dataplex/V1/ListAssetsResponse.php | 105 + .../Cloud/Dataplex/V1/ListContentRequest.php | 232 + .../Cloud/Dataplex/V1/ListContentResponse.php | 105 + .../V1/ListDataAttributeBindingsRequest.php | 262 + .../V1/ListDataAttributeBindingsResponse.php | 139 + .../Dataplex/V1/ListDataAttributesRequest.php | 246 + .../V1/ListDataAttributesResponse.php | 139 + .../Dataplex/V1/ListDataScanJobsRequest.php | 266 + .../Dataplex/V1/ListDataScanJobsResponse.php | 105 + .../Dataplex/V1/ListDataScansRequest.php | 256 + .../Dataplex/V1/ListDataScansResponse.php | 139 + .../Dataplex/V1/ListDataTaxonomiesRequest.php | 251 + .../V1/ListDataTaxonomiesResponse.php | 139 + .../Cloud/Dataplex/V1/ListEntitiesRequest.php | 270 + .../V1/ListEntitiesRequest/EntityView.php | 65 + .../Dataplex/V1/ListEntitiesResponse.php | 105 + .../Cloud/Dataplex/V1/ListEntriesRequest.php | 231 + .../Cloud/Dataplex/V1/ListEntriesResponse.php | 99 + .../Dataplex/V1/ListEntryGroupsRequest.php | 251 + .../Dataplex/V1/ListEntryGroupsResponse.php | 139 + .../Dataplex/V1/ListEntryTypesRequest.php | 275 + .../Dataplex/V1/ListEntryTypesResponse.php | 139 + .../Dataplex/V1/ListEnvironmentsRequest.php | 246 + .../Dataplex/V1/ListEnvironmentsResponse.php | 105 + .../Cloud/Dataplex/V1/ListJobsRequest.php | 174 + .../Cloud/Dataplex/V1/ListJobsResponse.php | 105 + .../Dataplex/V1/ListLakeActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListLakesRequest.php | 243 + .../Cloud/Dataplex/V1/ListLakesResponse.php | 139 + .../Dataplex/V1/ListPartitionsRequest.php | 268 + .../Dataplex/V1/ListPartitionsResponse.php | 105 + .../Cloud/Dataplex/V1/ListSessionsRequest.php | 236 + .../Dataplex/V1/ListSessionsResponse.php | 105 + .../Cloud/Dataplex/V1/ListTasksRequest.php | 238 + .../Cloud/Dataplex/V1/ListTasksResponse.php | 139 + .../Dataplex/V1/ListZoneActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListZonesRequest.php | 238 + .../Cloud/Dataplex/V1/ListZonesResponse.php | 105 + .../Cloud/Dataplex/V1/LookupEntryRequest.php | 217 + .../Cloud/Dataplex/V1/OperationMetadata.php | 307 ++ .../Google/Cloud/Dataplex/V1/Partition.php | 202 + .../Cloud/Dataplex/V1/ResourceAccessSpec.php | 145 + .../Cloud/Dataplex/V1/RunDataScanRequest.php | 102 + .../Cloud/Dataplex/V1/RunDataScanResponse.php | 77 + .../Cloud/Dataplex/V1/RunTaskRequest.php | 200 + .../Cloud/Dataplex/V1/RunTaskResponse.php | 75 + .../Google/Cloud/Dataplex/V1/ScannedData.php | 75 + .../V1/ScannedData/IncrementalField.php | 142 + .../src/Google/Cloud/Dataplex/V1/Schema.php | 221 + .../Google/Cloud/Dataplex/V1/Schema/Mode.php | 71 + .../Dataplex/V1/Schema/PartitionField.php | 115 + .../Dataplex/V1/Schema/PartitionStyle.php | 59 + .../Cloud/Dataplex/V1/Schema/SchemaField.php | 218 + .../Google/Cloud/Dataplex/V1/Schema/Type.php | 156 + .../Dataplex/V1/SearchEntriesRequest.php | 260 + .../Dataplex/V1/SearchEntriesResponse.php | 175 + .../Cloud/Dataplex/V1/SearchEntriesResult.php | 160 + .../V1/SearchEntriesResult/Snippets.php | 89 + .../src/Google/Cloud/Dataplex/V1/Session.php | 183 + .../Google/Cloud/Dataplex/V1/SessionEvent.php | 332 ++ .../Dataplex/V1/SessionEvent/EventType.php | 79 + .../Dataplex/V1/SessionEvent/QueryDetail.php | 250 + .../V1/SessionEvent/QueryDetail/Engine.php | 64 + .../src/Google/Cloud/Dataplex/V1/State.php | 75 + .../Cloud/Dataplex/V1/StorageAccess.php | 71 + .../Dataplex/V1/StorageAccess/AccessMode.php | 64 + .../Cloud/Dataplex/V1/StorageFormat.php | 311 ++ .../V1/StorageFormat/CompressionFormat.php | 64 + .../Dataplex/V1/StorageFormat/CsvOptions.php | 188 + .../Dataplex/V1/StorageFormat/Format.php | 134 + .../V1/StorageFormat/IcebergOptions.php | 74 + .../Dataplex/V1/StorageFormat/JsonOptions.php | 74 + .../Cloud/Dataplex/V1/StorageSystem.php | 61 + .../src/Google/Cloud/Dataplex/V1/Task.php | 544 ++ .../Cloud/Dataplex/V1/Task/ExecutionSpec.php | 284 ++ .../Dataplex/V1/Task/ExecutionStatus.php | 124 + .../Dataplex/V1/Task/InfrastructureSpec.php | 162 + .../BatchComputeResources.php | 116 + .../ContainerImageRuntime.php | 204 + .../V1/Task/InfrastructureSpec/VpcNetwork.php | 148 + .../Dataplex/V1/Task/NotebookTaskConfig.php | 206 + .../Dataplex/V1/Task/SparkTaskConfig.php | 373 ++ .../Cloud/Dataplex/V1/Task/TriggerSpec.php | 262 + .../Dataplex/V1/Task/TriggerSpec/Type.php | 64 + .../Cloud/Dataplex/V1/TransferStatus.php | 66 + .../src/Google/Cloud/Dataplex/V1/Trigger.php | 108 + .../Cloud/Dataplex/V1/Trigger/OnDemand.php | 36 + .../Cloud/Dataplex/V1/Trigger/Schedule.php | 106 + .../Dataplex/V1/UpdateAspectTypeRequest.php | 174 + .../Cloud/Dataplex/V1/UpdateAssetRequest.php | 179 + .../Dataplex/V1/UpdateContentRequest.php | 179 + .../V1/UpdateDataAttributeBindingRequest.php | 174 + .../V1/UpdateDataAttributeRequest.php | 174 + .../Dataplex/V1/UpdateDataScanRequest.php | 180 + .../Dataplex/V1/UpdateDataTaxonomyRequest.php | 174 + .../Cloud/Dataplex/V1/UpdateEntityRequest.php | 118 + .../Dataplex/V1/UpdateEntryGroupRequest.php | 174 + .../Cloud/Dataplex/V1/UpdateEntryRequest.php | 300 ++ .../Dataplex/V1/UpdateEntryTypeRequest.php | 174 + .../Dataplex/V1/UpdateEnvironmentRequest.php | 179 + .../Cloud/Dataplex/V1/UpdateLakeRequest.php | 179 + .../Cloud/Dataplex/V1/UpdateTaskRequest.php | 179 + .../Cloud/Dataplex/V1/UpdateZoneRequest.php | 179 + .../src/Google/Cloud/Dataplex/V1/Zone.php | 510 ++ .../Cloud/Dataplex/V1/Zone/DiscoverySpec.php | 317 ++ .../V1/Zone/DiscoverySpec/CsvOptions.php | 184 + .../V1/Zone/DiscoverySpec/JsonOptions.php | 112 + .../Cloud/Dataplex/V1/Zone/ResourceSpec.php | 74 + .../V1/Zone/ResourceSpec/LocationType.php | 64 + .../Google/Cloud/Dataplex/V1/Zone/Type.php | 68 + .../create_aspect_type.php | 112 + .../V1/CatalogServiceClient/create_entry.php | 102 + .../create_entry_group.php | 90 + .../create_entry_type.php | 90 + .../delete_aspect_type.php | 81 + .../V1/CatalogServiceClient/delete_entry.php | 77 + .../delete_entry_group.php | 81 + .../delete_entry_type.php | 81 + .../CatalogServiceClient/get_aspect_type.php | 72 + .../V1/CatalogServiceClient/get_entry.php | 77 + .../CatalogServiceClient/get_entry_group.php | 72 + .../CatalogServiceClient/get_entry_type.php | 72 + .../CatalogServiceClient/get_iam_policy.php | 72 + .../V1/CatalogServiceClient/get_location.php | 57 + .../list_aspect_types.php | 78 + .../V1/CatalogServiceClient/list_entries.php | 77 + .../list_entry_groups.php | 78 + .../CatalogServiceClient/list_entry_types.php | 78 + .../CatalogServiceClient/list_locations.php | 62 + .../V1/CatalogServiceClient/lookup_entry.php | 81 + .../CatalogServiceClient/search_entries.php | 79 + .../CatalogServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_aspect_type.php | 99 + .../V1/CatalogServiceClient/update_entry.php | 73 + .../update_entry_group.php | 74 + .../update_entry_type.php | 74 + .../ContentServiceClient/create_content.php | 85 + .../ContentServiceClient/delete_content.php | 75 + .../V1/ContentServiceClient/get_content.php | 77 + .../ContentServiceClient/get_iam_policy.php | 76 + .../V1/ContentServiceClient/get_location.php | 57 + .../V1/ContentServiceClient/list_content.php | 77 + .../ContentServiceClient/list_locations.php | 62 + .../ContentServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 87 + .../ContentServiceClient/update_content.php | 80 + .../create_data_scan.php | 100 + .../delete_data_scan.php | 83 + .../generate_data_quality_rules.php | 78 + .../DataScanServiceClient/get_data_scan.php | 74 + .../get_data_scan_job.php | 79 + .../DataScanServiceClient/get_iam_policy.php | 72 + .../V1/DataScanServiceClient/get_location.php | 57 + .../list_data_scan_jobs.php | 79 + .../DataScanServiceClient/list_data_scans.php | 79 + .../DataScanServiceClient/list_locations.php | 62 + .../DataScanServiceClient/run_data_scan.php | 76 + .../DataScanServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_data_scan.php | 77 + .../create_data_attribute.php | 98 + .../create_data_attribute_binding.php | 96 + .../create_data_taxonomy.php | 95 + .../delete_data_attribute.php | 86 + .../delete_data_attribute_binding.php | 93 + .../delete_data_taxonomy.php | 86 + .../get_data_attribute.php | 77 + .../get_data_attribute_binding.php | 76 + .../get_data_taxonomy.php | 76 + .../get_iam_policy.php | 72 + .../get_location.php | 57 + .../list_data_attribute_bindings.php | 77 + .../list_data_attributes.php | 81 + .../list_data_taxonomies.php | 78 + .../list_locations.php | 62 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_data_attribute.php | 74 + .../update_data_attribute_binding.php | 74 + .../update_data_taxonomy.php | 74 + .../V1/DataplexServiceClient/cancel_job.php | 76 + .../V1/DataplexServiceClient/create_asset.php | 106 + .../create_environment.php | 110 + .../V1/DataplexServiceClient/create_lake.php | 97 + .../V1/DataplexServiceClient/create_task.php | 113 + .../V1/DataplexServiceClient/create_zone.php | 113 + .../V1/DataplexServiceClient/delete_asset.php | 88 + .../delete_environment.php | 87 + .../V1/DataplexServiceClient/delete_lake.php | 82 + .../V1/DataplexServiceClient/delete_task.php | 81 + .../V1/DataplexServiceClient/delete_zone.php | 82 + .../V1/DataplexServiceClient/get_asset.php | 78 + .../DataplexServiceClient/get_environment.php | 77 + .../DataplexServiceClient/get_iam_policy.php | 72 + .../V1/DataplexServiceClient/get_job.php | 78 + .../V1/DataplexServiceClient/get_lake.php | 72 + .../V1/DataplexServiceClient/get_location.php | 57 + .../V1/DataplexServiceClient/get_task.php | 72 + .../V1/DataplexServiceClient/get_zone.php | 72 + .../list_asset_actions.php | 83 + .../V1/DataplexServiceClient/list_assets.php | 77 + .../list_environments.php | 77 + .../V1/DataplexServiceClient/list_jobs.php | 77 + .../list_lake_actions.php | 77 + .../V1/DataplexServiceClient/list_lakes.php | 78 + .../DataplexServiceClient/list_locations.php | 62 + .../DataplexServiceClient/list_sessions.php | 82 + .../V1/DataplexServiceClient/list_tasks.php | 77 + .../list_zone_actions.php | 77 + .../V1/DataplexServiceClient/list_zones.php | 77 + .../V1/DataplexServiceClient/run_task.php | 72 + .../DataplexServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../V1/DataplexServiceClient/update_asset.php | 91 + .../update_environment.php | 93 + .../V1/DataplexServiceClient/update_lake.php | 74 + .../V1/DataplexServiceClient/update_task.php | 101 + .../V1/DataplexServiceClient/update_zone.php | 96 + .../MetadataServiceClient/create_entity.php | 158 + .../create_partition.php | 93 + .../MetadataServiceClient/delete_entity.php | 80 + .../delete_partition.php | 80 + .../V1/MetadataServiceClient/get_entity.php | 78 + .../MetadataServiceClient/get_iam_policy.php | 72 + .../V1/MetadataServiceClient/get_location.php | 57 + .../MetadataServiceClient/get_partition.php | 81 + .../MetadataServiceClient/list_entities.php | 81 + .../MetadataServiceClient/list_locations.php | 62 + .../MetadataServiceClient/list_partitions.php | 83 + .../MetadataServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../MetadataServiceClient/update_entity.php | 151 + .../v1/src/V1/Client/CatalogServiceClient.php | 1123 ++++ .../v1/src/V1/Client/ContentServiceClient.php | 533 ++ .../src/V1/Client/DataScanServiceClient.php | 745 +++ .../V1/Client/DataTaxonomyServiceClient.php | 920 ++++ .../src/V1/Client/DataplexServiceClient.php | 1488 ++++++ .../src/V1/Client/MetadataServiceClient.php | 668 +++ .../Dataplex/v1/src/V1/gapic_metadata.json | 678 +++ .../catalog_service_client_config.json | 216 + .../catalog_service_descriptor_config.php | 479 ++ .../catalog_service_rest_client_config.php | 586 +++ .../content_service_client_config.json | 106 + .../content_service_descriptor_config.php | 171 + .../content_service_rest_client_config.php | 462 ++ .../data_scan_service_client_config.json | 92 + .../data_scan_service_descriptor_config.php | 253 + .../data_scan_service_rest_client_config.php | 428 ++ .../data_taxonomy_service_client_config.json | 122 + ...ata_taxonomy_service_descriptor_config.php | 377 ++ ...ta_taxonomy_service_rest_client_config.php | 506 ++ .../dataplex_service_client_config.json | 246 + .../dataplex_service_descriptor_config.php | 696 +++ .../dataplex_service_rest_client_config.php | 721 +++ .../metadata_service_client_config.json | 126 + .../metadata_service_descriptor_config.php | 231 + .../metadata_service_rest_client_config.php | 420 ++ .../V1/Client/CatalogServiceClientTest.php | 2725 ++++++++++ .../V1/Client/ContentServiceClientTest.php | 830 +++ .../V1/Client/DataScanServiceClientTest.php | 1314 +++++ .../Client/DataTaxonomyServiceClientTest.php | 2183 ++++++++ .../V1/Client/DataplexServiceClientTest.php | 3840 ++++++++++++++ .../V1/Client/MetadataServiceClientTest.php | 1239 +++++ .../Cloud/Dataproc/V1/AutoscalingPolicies.php | Bin 0 -> 4769 bytes .../Google/Cloud/Dataproc/V1/Batches.php | Bin 0 -> 4900 bytes .../Google/Cloud/Dataproc/V1/Clusters.php | Bin 0 -> 15663 bytes .../Google/Cloud/Dataproc/V1/Jobs.php | Bin 0 -> 10877 bytes .../Google/Cloud/Dataproc/V1/NodeGroups.php | 58 + .../Google/Cloud/Dataproc/V1/Operations.php | Bin 0 -> 3289 bytes .../Cloud/Dataproc/V1/SessionTemplates.php | Bin 0 -> 4164 bytes .../Google/Cloud/Dataproc/V1/Sessions.php | Bin 0 -> 4741 bytes .../Google/Cloud/Dataproc/V1/Shared.php | Bin 0 -> 5596 bytes .../Cloud/Dataproc/V1/WorkflowTemplates.php | Bin 0 -> 9293 bytes .../Cloud/Dataproc/V1/AcceleratorConfig.php | 151 + .../Cloud/Dataproc/V1/AutoscalingConfig.php | 87 + .../Cloud/Dataproc/V1/AutoscalingPolicy.php | 324 ++ .../Cloud/Dataproc/V1/AutotuningConfig.php | 67 + .../Dataproc/V1/AutotuningConfig/Scenario.php | 72 + .../Cloud/Dataproc/V1/AuxiliaryNodeGroup.php | 123 + .../Dataproc/V1/AuxiliaryServicesConfig.php | 121 + .../Dataproc/V1/BasicAutoscalingAlgorithm.php | 127 + .../V1/BasicYarnAutoscalingConfig.php | 333 ++ .../src/Google/Cloud/Dataproc/V1/Batch.php | 698 +++ .../Google/Cloud/Dataproc/V1/Batch/State.php | 92 + .../Cloud/Dataproc/V1/Batch/StateHistory.php | 148 + .../Dataproc/V1/BatchOperationMetadata.php | 325 ++ .../BatchOperationType.php | 57 + .../Cloud/Dataproc/V1/CancelJobRequest.php | 157 + .../src/Google/Cloud/Dataproc/V1/Cluster.php | 472 ++ .../Cloud/Dataproc/V1/ClusterConfig.php | 841 +++ .../Cloud/Dataproc/V1/ClusterMetrics.php | 103 + .../Cloud/Dataproc/V1/ClusterOperation.php | 135 + .../Dataproc/V1/ClusterOperationMetadata.php | 349 ++ .../Dataproc/V1/ClusterOperationStatus.php | 179 + .../V1/ClusterOperationStatus/State.php | 71 + .../Cloud/Dataproc/V1/ClusterSelector.php | 117 + .../Cloud/Dataproc/V1/ClusterStatus.php | 187 + .../Cloud/Dataproc/V1/ClusterStatus/State.php | 124 + .../Dataproc/V1/ClusterStatus/Substate.php | 69 + .../Google/Cloud/Dataproc/V1/Component.php | 149 + .../V1/ConfidentialInstanceConfig.php | 72 + .../V1/CreateAutoscalingPolicyRequest.php | 164 + .../Cloud/Dataproc/V1/CreateBatchRequest.php | 244 + .../Dataproc/V1/CreateClusterRequest.php | 271 + .../Dataproc/V1/CreateNodeGroupRequest.php | 254 + .../Dataproc/V1/CreateSessionRequest.php | 249 + .../V1/CreateSessionTemplateRequest.php | 127 + .../V1/CreateWorkflowTemplateRequest.php | 164 + .../Dataproc/V1/DataprocMetricConfig.php | 67 + .../V1/DataprocMetricConfig/Metric.php | 208 + .../V1/DataprocMetricConfig/MetricSource.php | 111 + .../V1/DeleteAutoscalingPolicyRequest.php | 119 + .../Cloud/Dataproc/V1/DeleteBatchRequest.php | 91 + .../Dataproc/V1/DeleteClusterRequest.php | 265 + .../Cloud/Dataproc/V1/DeleteJobRequest.php | 157 + .../Dataproc/V1/DeleteSessionRequest.php | 143 + .../V1/DeleteSessionTemplateRequest.php | 81 + .../V1/DeleteWorkflowTemplateRequest.php | 161 + .../Dataproc/V1/DiagnoseClusterRequest.php | 361 ++ .../DiagnoseClusterRequest/TarballAccess.php | 66 + .../Dataproc/V1/DiagnoseClusterResults.php | 75 + .../Google/Cloud/Dataproc/V1/DiskConfig.php | 337 ++ .../Dataproc/V1/DriverSchedulingConfig.php | 101 + .../Cloud/Dataproc/V1/EncryptionConfig.php | 209 + .../Cloud/Dataproc/V1/EndpointConfig.php | 109 + .../Cloud/Dataproc/V1/EnvironmentConfig.php | 121 + .../Cloud/Dataproc/V1/ExecutionConfig.php | 448 ++ .../Cloud/Dataproc/V1/FailureAction.php | 62 + .../src/Google/Cloud/Dataproc/V1/FlinkJob.php | 322 ++ .../Cloud/Dataproc/V1/GceClusterConfig.php | 750 +++ .../PrivateIpv6GoogleAccess.php | 81 + .../V1/GetAutoscalingPolicyRequest.php | 118 + .../Cloud/Dataproc/V1/GetBatchRequest.php | 91 + .../Cloud/Dataproc/V1/GetClusterRequest.php | 157 + .../Cloud/Dataproc/V1/GetJobRequest.php | 157 + .../Cloud/Dataproc/V1/GetNodeGroupRequest.php | 91 + .../Cloud/Dataproc/V1/GetSessionRequest.php | 81 + .../Dataproc/V1/GetSessionTemplateRequest.php | 81 + .../V1/GetWorkflowTemplateRequest.php | 160 + .../Cloud/Dataproc/V1/GkeClusterConfig.php | 133 + .../Cloud/Dataproc/V1/GkeNodePoolConfig.php | 192 + .../V1/GkeNodePoolConfig/GkeNodeConfig.php | 398 ++ .../GkeNodePoolAcceleratorConfig.php | 147 + .../GkeNodePoolAutoscalingConfig.php | 117 + .../Cloud/Dataproc/V1/GkeNodePoolTarget.php | 185 + .../Dataproc/V1/GkeNodePoolTarget/Role.php | 91 + .../Google/Cloud/Dataproc/V1/HadoopJob.php | 385 ++ .../src/Google/Cloud/Dataproc/V1/HiveJob.php | 277 + .../Cloud/Dataproc/V1/IdentityConfig.php | 68 + .../Dataproc/V1/InstanceFlexibilityPolicy.php | 154 + .../InstanceSelection.php | 120 + .../InstanceSelectionResult.php | 125 + .../ProvisioningModelMix.php | 173 + .../InstanceGroupAutoscalingPolicyConfig.php | 220 + .../Cloud/Dataproc/V1/InstanceGroupConfig.php | 746 +++ .../V1/InstanceGroupConfig/Preemptibility.php | 84 + .../Cloud/Dataproc/V1/InstanceReference.php | 169 + ...stantiateInlineWorkflowTemplateRequest.php | 222 + .../V1/InstantiateWorkflowTemplateRequest.php | 290 ++ .../src/Google/Cloud/Dataproc/V1/Job.php | 918 ++++ .../Google/Cloud/Dataproc/V1/JobMetadata.php | 189 + .../Google/Cloud/Dataproc/V1/JobPlacement.php | 143 + .../Google/Cloud/Dataproc/V1/JobReference.php | 117 + .../Cloud/Dataproc/V1/JobScheduling.php | 161 + .../Google/Cloud/Dataproc/V1/JobStatus.php | 187 + .../Cloud/Dataproc/V1/JobStatus/State.php | 117 + .../Cloud/Dataproc/V1/JobStatus/Substate.php | 78 + .../Cloud/Dataproc/V1/JupyterConfig.php | 101 + .../Dataproc/V1/JupyterConfig/Kernel.php | 64 + .../Cloud/Dataproc/V1/KerberosConfig.php | 631 +++ .../Dataproc/V1/KubernetesClusterConfig.php | 169 + .../Dataproc/V1/KubernetesSoftwareConfig.php | 137 + .../Cloud/Dataproc/V1/LifecycleConfig.php | 239 + .../V1/ListAutoscalingPoliciesRequest.php | 194 + .../V1/ListAutoscalingPoliciesResponse.php | 105 + .../Cloud/Dataproc/V1/ListBatchesRequest.php | 273 + .../Cloud/Dataproc/V1/ListBatchesResponse.php | 147 + .../Cloud/Dataproc/V1/ListClustersRequest.php | 315 ++ .../Dataproc/V1/ListClustersResponse.php | 109 + .../Cloud/Dataproc/V1/ListJobsRequest.php | 374 ++ .../V1/ListJobsRequest/JobStateMatcher.php | 65 + .../Cloud/Dataproc/V1/ListJobsResponse.php | 155 + .../V1/ListSessionTemplatesRequest.php | 199 + .../V1/ListSessionTemplatesResponse.php | 105 + .../Cloud/Dataproc/V1/ListSessionsRequest.php | 235 + .../Dataproc/V1/ListSessionsResponse.php | 105 + .../V1/ListWorkflowTemplatesRequest.php | 190 + .../V1/ListWorkflowTemplatesResponse.php | 151 + .../Cloud/Dataproc/V1/LoggingConfig.php | 87 + .../Cloud/Dataproc/V1/LoggingConfig/Level.php | 108 + .../Cloud/Dataproc/V1/ManagedCluster.php | 185 + .../Cloud/Dataproc/V1/ManagedGroupConfig.php | 143 + .../Cloud/Dataproc/V1/MetastoreConfig.php | 75 + .../Google/Cloud/Dataproc/V1/NodeGroup.php | 206 + .../Cloud/Dataproc/V1/NodeGroup/Role.php | 57 + .../Cloud/Dataproc/V1/NodeGroupAffinity.php | 97 + .../V1/NodeGroupOperationMetadata.php | 315 ++ .../NodeGroupOperationType.php | 78 + .../Dataproc/V1/NodeInitializationAction.php | 132 + .../Google/Cloud/Dataproc/V1/OrderedJob.php | 578 +++ .../Cloud/Dataproc/V1/ParameterValidation.php | 108 + .../Cloud/Dataproc/V1/PeripheralsConfig.php | 119 + .../src/Google/Cloud/Dataproc/V1/PigJob.php | 317 ++ .../Google/Cloud/Dataproc/V1/PrestoJob.php | 312 ++ .../Dataproc/V1/PyPiRepositoryConfig.php | 67 + .../Google/Cloud/Dataproc/V1/PySparkBatch.php | 272 + .../Google/Cloud/Dataproc/V1/PySparkJob.php | 362 ++ .../Google/Cloud/Dataproc/V1/QueryList.php | 115 + .../Cloud/Dataproc/V1/RegexValidation.php | 75 + .../Cloud/Dataproc/V1/RepositoryConfig.php | 77 + .../Cloud/Dataproc/V1/ReservationAffinity.php | 135 + .../Dataproc/V1/ReservationAffinity/Type.php | 70 + .../Dataproc/V1/ResizeNodeGroupRequest.php | 290 ++ .../Cloud/Dataproc/V1/RuntimeConfig.php | 269 + .../Google/Cloud/Dataproc/V1/RuntimeInfo.php | 267 + .../Cloud/Dataproc/V1/SecurityConfig.php | 125 + .../src/Google/Cloud/Dataproc/V1/Session.php | 690 +++ .../V1/Session/SessionStateHistory.php | 156 + .../Cloud/Dataproc/V1/Session/State.php | 85 + .../Dataproc/V1/SessionOperationMetadata.php | 325 ++ .../SessionOperationType.php | 71 + .../Cloud/Dataproc/V1/SessionTemplate.php | 482 ++ .../Dataproc/V1/ShieldedInstanceConfig.php | 166 + .../Cloud/Dataproc/V1/SoftwareConfig.php | 215 + .../Google/Cloud/Dataproc/V1/SparkBatch.php | 272 + .../Cloud/Dataproc/V1/SparkConnectConfig.php | 33 + .../Dataproc/V1/SparkHistoryServerConfig.php | 79 + .../src/Google/Cloud/Dataproc/V1/SparkJob.php | 365 ++ .../Google/Cloud/Dataproc/V1/SparkRBatch.php | 195 + .../Google/Cloud/Dataproc/V1/SparkRJob.php | 285 ++ .../Cloud/Dataproc/V1/SparkSqlBatch.php | 145 + .../Google/Cloud/Dataproc/V1/SparkSqlJob.php | 267 + .../Cloud/Dataproc/V1/StartClusterRequest.php | 247 + .../Cloud/Dataproc/V1/StartupConfig.php | 98 + .../Cloud/Dataproc/V1/StopClusterRequest.php | 247 + .../Cloud/Dataproc/V1/SubmitJobRequest.php | 237 + .../Cloud/Dataproc/V1/TemplateParameter.php | 355 ++ .../Dataproc/V1/TerminateSessionRequest.php | 143 + .../src/Google/Cloud/Dataproc/V1/TrinoJob.php | 312 ++ .../V1/UpdateAutoscalingPolicyRequest.php | 90 + .../Dataproc/V1/UpdateClusterRequest.php | 629 +++ .../Cloud/Dataproc/V1/UpdateJobRequest.php | 247 + .../V1/UpdateSessionTemplateRequest.php | 90 + .../V1/UpdateWorkflowTemplateRequest.php | 96 + .../Google/Cloud/Dataproc/V1/UsageMetrics.php | 193 + .../Cloud/Dataproc/V1/UsageSnapshot.php | 314 ++ .../Cloud/Dataproc/V1/ValueValidation.php | 67 + .../Dataproc/V1/VirtualClusterConfig.php | 198 + .../Cloud/Dataproc/V1/WorkflowGraph.php | 67 + .../Cloud/Dataproc/V1/WorkflowMetadata.php | 645 +++ .../Dataproc/V1/WorkflowMetadata/State.php | 71 + .../Google/Cloud/Dataproc/V1/WorkflowNode.php | 203 + .../Dataproc/V1/WorkflowNode/NodeState.php | 86 + .../Cloud/Dataproc/V1/WorkflowTemplate.php | 586 +++ .../V1/WorkflowTemplate/EncryptionConfig.php | 170 + .../Dataproc/V1/WorkflowTemplatePlacement.php | 115 + .../Cloud/Dataproc/V1/YarnApplication.php | 184 + .../Dataproc/V1/YarnApplication/State.php | 111 + .../create_autoscaling_policy.php | 135 + .../delete_autoscaling_policy.php | 83 + .../get_autoscaling_policy.php | 84 + .../get_iam_policy.php | 72 + .../list_autoscaling_policies.php | 85 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_autoscaling_policy.php | 123 + .../V1/BatchControllerClient/create_batch.php | 85 + .../V1/BatchControllerClient/delete_batch.php | 72 + .../V1/BatchControllerClient/get_batch.php | 73 + .../BatchControllerClient/get_iam_policy.php | 72 + .../V1/BatchControllerClient/list_batches.php | 76 + .../BatchControllerClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../create_cluster.php | 103 + .../delete_cluster.php | 88 + .../diagnose_cluster.php | 95 + .../ClusterControllerClient/get_cluster.php | 77 + .../get_iam_policy.php | 72 + .../ClusterControllerClient/list_clusters.php | 79 + .../set_iam_policy.php | 77 + .../ClusterControllerClient/start_cluster.php | 89 + .../ClusterControllerClient/stop_cluster.php | 89 + .../test_iam_permissions.php | 84 + .../update_cluster.php | 113 + .../V1/JobControllerClient/cancel_job.php | 81 + .../V1/JobControllerClient/delete_job.php | 76 + .../V1/JobControllerClient/get_iam_policy.php | 72 + .../V1/JobControllerClient/get_job.php | 77 + .../V1/JobControllerClient/list_jobs.php | 79 + .../V1/JobControllerClient/set_iam_policy.php | 77 + .../V1/JobControllerClient/submit_job.php | 85 + .../submit_job_as_operation.php | 97 + .../test_iam_permissions.php | 84 + .../V1/JobControllerClient/update_job.php | 92 + .../create_node_group.php | 97 + .../get_iam_policy.php | 72 + .../get_node_group.php | 79 + .../resize_node_group.php | 91 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../create_session.php | 98 + .../delete_session.php | 84 + .../get_iam_policy.php | 72 + .../SessionControllerClient/get_session.php | 71 + .../SessionControllerClient/list_sessions.php | 76 + .../set_iam_policy.php | 77 + .../terminate_session.php | 83 + .../test_iam_permissions.php | 84 + .../create_session_template.php | 78 + .../delete_session_template.php | 73 + .../get_iam_policy.php | 72 + .../get_session_template.php | 75 + .../list_session_templates.php | 76 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_session_template.php | 72 + .../create_workflow_template.php | 108 + .../delete_workflow_template.php | 82 + .../get_iam_policy.php | 72 + .../get_workflow_template.php | 87 + .../instantiate_inline_workflow_template.php | 142 + .../instantiate_workflow_template.php | 112 + .../list_workflow_templates.php | 85 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_workflow_template.php | 93 + .../Client/AutoscalingPolicyServiceClient.php | 536 ++ .../src/V1/Client/BatchControllerClient.php | 512 ++ .../src/V1/Client/ClusterControllerClient.php | 689 +++ .../v1/src/V1/Client/JobControllerClient.php | 511 ++ .../V1/Client/NodeGroupControllerClient.php | 476 ++ .../src/V1/Client/SessionControllerClient.php | 562 ++ .../SessionTemplateControllerClient.php | 493 ++ .../Client/WorkflowTemplateServiceClient.php | 774 +++ .../Dataproc/v1/src/V1/gapic_metadata.json | 421 ++ ...oscaling_policy_service_client_config.json | 85 + ...aling_policy_service_descriptor_config.php | 143 + ...ling_policy_service_rest_client_config.php | 323 ++ .../batch_controller_client_config.json | 57 + .../batch_controller_descriptor_config.php | 135 + .../batch_controller_rest_client_config.php | 278 + .../cluster_controller_client_config.json | 103 + .../cluster_controller_descriptor_config.php | 304 ++ .../cluster_controller_rest_client_config.php | 399 ++ .../job_controller_client_config.json | 98 + .../job_controller_descriptor_config.php | 232 + .../job_controller_rest_client_config.php | 372 ++ .../node_group_controller_client_config.json | 52 + ...ode_group_controller_descriptor_config.php | 121 + ...de_group_controller_rest_client_config.php | 268 + .../session_controller_client_config.json | 62 + .../session_controller_descriptor_config.php | 162 + .../session_controller_rest_client_config.php | 293 ++ ...ion_template_controller_client_config.json | 62 + ..._template_controller_descriptor_config.php | 141 + ...template_controller_rest_client_config.php | 291 ++ ...rkflow_template_service_client_config.json | 98 + ...low_template_service_descriptor_config.php | 185 + ...ow_template_service_rest_client_config.php | 361 ++ .../AutoscalingPolicyServiceClientTest.php | 725 +++ .../V1/Client/BatchControllerClientTest.php | 702 +++ .../V1/Client/ClusterControllerClientTest.php | 1380 +++++ .../V1/Client/JobControllerClientTest.php | 985 ++++ .../Client/NodeGroupControllerClientTest.php | 677 +++ .../V1/Client/SessionControllerClientTest.php | 929 ++++ .../SessionTemplateControllerClientTest.php | 677 +++ .../WorkflowTemplateServiceClientTest.php | 956 ++++ .../Google/Cloud/Datastream/V1/Datastream.php | Bin 0 -> 12807 bytes .../Datastream/V1/DatastreamResources.php | Bin 0 -> 12999 bytes .../Cloud/Datastream/V1/AvroFileFormat.php | 33 + .../Cloud/Datastream/V1/BackfillJob.php | 223 + .../Cloud/Datastream/V1/BackfillJob/State.php | 102 + .../Datastream/V1/BackfillJob/Trigger.php | 65 + .../V1/BigQueryDestinationConfig.php | 164 + .../SingleTargetDataset.php | 70 + .../SourceHierarchyDatasets.php | 81 + .../DatasetTemplate.php | 178 + .../Cloud/Datastream/V1/BigQueryProfile.php | 33 + .../Cloud/Datastream/V1/ConnectionProfile.php | 506 ++ .../V1/CreateConnectionProfileRequest.php | 309 ++ .../V1/CreatePrivateConnectionRequest.php | 271 + .../Datastream/V1/CreateRouteRequest.php | 237 + .../Datastream/V1/CreateStreamRequest.php | 309 ++ .../V1/DeleteConnectionProfileRequest.php | 155 + .../V1/DeletePrivateConnectionRequest.php | 193 + .../Datastream/V1/DeleteRouteRequest.php | 155 + .../Datastream/V1/DeleteStreamRequest.php | 155 + .../Cloud/Datastream/V1/DestinationConfig.php | 146 + .../V1/DiscoverConnectionProfileRequest.php | 332 ++ .../V1/DiscoverConnectionProfileResponse.php | 141 + .../src/Google/Cloud/Datastream/V1/Error.php | 217 + .../Datastream/V1/FetchStaticIpsRequest.php | 158 + .../Datastream/V1/FetchStaticIpsResponse.php | 105 + .../V1/ForwardSshTunnelConnectivity.php | 210 + .../Datastream/V1/GcsDestinationConfig.php | 228 + .../Google/Cloud/Datastream/V1/GcsProfile.php | 101 + .../V1/GetConnectionProfileRequest.php | 81 + .../V1/GetPrivateConnectionRequest.php | 81 + .../Cloud/Datastream/V1/GetRouteRequest.php | 81 + .../Datastream/V1/GetStreamObjectRequest.php | 81 + .../Cloud/Datastream/V1/GetStreamRequest.php | 81 + .../Cloud/Datastream/V1/JsonFileFormat.php | 101 + .../V1/JsonFileFormat/JsonCompression.php | 64 + .../V1/JsonFileFormat/SchemaFileFormat.php | 64 + .../V1/ListConnectionProfilesRequest.php | 237 + .../V1/ListConnectionProfilesResponse.php | 139 + .../V1/ListPrivateConnectionsRequest.php | 250 + .../V1/ListPrivateConnectionsResponse.php | 139 + .../Cloud/Datastream/V1/ListRoutesRequest.php | 245 + .../Datastream/V1/ListRoutesResponse.php | 139 + .../V1/ListStreamObjectsRequest.php | 169 + .../V1/ListStreamObjectsResponse.php | 101 + .../Datastream/V1/ListStreamsRequest.php | 237 + .../Datastream/V1/ListStreamsResponse.php | 139 + .../V1/LookupStreamObjectRequest.php | 112 + .../Cloud/Datastream/V1/MysqlColumn.php | 343 ++ .../Cloud/Datastream/V1/MysqlDatabase.php | 101 + .../Cloud/Datastream/V1/MysqlProfile.php | 213 + .../Google/Cloud/Datastream/V1/MysqlRdbms.php | 67 + .../Cloud/Datastream/V1/MysqlSourceConfig.php | 201 + .../Cloud/Datastream/V1/MysqlSslConfig.php | 257 + .../Google/Cloud/Datastream/V1/MysqlTable.php | 109 + .../Cloud/Datastream/V1/OperationMetadata.php | 351 ++ .../Cloud/Datastream/V1/OracleColumn.php | 339 ++ .../Cloud/Datastream/V1/OracleProfile.php | 237 + .../Cloud/Datastream/V1/OracleRdbms.php | 67 + .../Cloud/Datastream/V1/OracleSchema.php | 101 + .../Datastream/V1/OracleSourceConfig.php | 272 + .../OracleSourceConfig/DropLargeObjects.php | 36 + .../OracleSourceConfig/StreamLargeObjects.php | 36 + .../Cloud/Datastream/V1/OracleTable.php | 109 + .../Cloud/Datastream/V1/PostgresqlColumn.php | 305 ++ .../Cloud/Datastream/V1/PostgresqlProfile.php | 203 + .../Cloud/Datastream/V1/PostgresqlRdbms.php | 67 + .../Cloud/Datastream/V1/PostgresqlSchema.php | 101 + .../Datastream/V1/PostgresqlSourceConfig.php | 239 + .../Cloud/Datastream/V1/PostgresqlTable.php | 109 + .../Cloud/Datastream/V1/PrivateConnection.php | 350 ++ .../Datastream/V1/PrivateConnection/State.php | 85 + .../Datastream/V1/PrivateConnectivity.php | 71 + .../src/Google/Cloud/Datastream/V1/Route.php | 292 ++ .../Cloud/Datastream/V1/SourceConfig.php | 179 + .../Datastream/V1/SourceObjectIdentifier.php | 141 + .../MysqlObjectIdentifier.php | 104 + .../OracleObjectIdentifier.php | 104 + .../PostgresqlObjectIdentifier.php | 104 + .../Datastream/V1/StartBackfillJobRequest.php | 86 + .../V1/StartBackfillJobResponse.php | 77 + .../V1/StaticServiceIpConnectivity.php | 35 + .../Datastream/V1/StopBackfillJobRequest.php | 87 + .../Datastream/V1/StopBackfillJobResponse.php | 77 + .../src/Google/Cloud/Datastream/V1/Stream.php | 513 ++ .../V1/Stream/BackfillAllStrategy.php | 145 + .../V1/Stream/BackfillNoneStrategy.php | 36 + .../Cloud/Datastream/V1/Stream/State.php | 109 + .../Cloud/Datastream/V1/StreamObject.php | 311 ++ .../V1/UpdateConnectionProfileRequest.php | 302 ++ .../Datastream/V1/UpdateStreamRequest.php | 302 ++ .../Google/Cloud/Datastream/V1/Validation.php | 169 + .../Cloud/Datastream/V1/Validation/State.php | 71 + .../Cloud/Datastream/V1/ValidationMessage.php | 169 + .../Datastream/V1/ValidationMessage/Level.php | 64 + .../Cloud/Datastream/V1/ValidationResult.php | 71 + .../Cloud/Datastream/V1/VpcPeeringConfig.php | 106 + .../create_connection_profile.php | 98 + .../create_private_connection.php | 98 + .../V1/DatastreamClient/create_route.php | 103 + .../V1/DatastreamClient/create_stream.php | 126 + .../delete_connection_profile.php | 84 + .../delete_private_connection.php | 84 + .../V1/DatastreamClient/delete_route.php | 85 + .../V1/DatastreamClient/delete_stream.php | 80 + .../discover_connection_profile.php | 75 + .../V1/DatastreamClient/fetch_static_ips.php | 77 + .../get_connection_profile.php | 75 + .../V1/DatastreamClient/get_location.php | 57 + .../get_private_connection.php | 75 + .../samples/V1/DatastreamClient/get_route.php | 76 + .../V1/DatastreamClient/get_stream.php | 71 + .../V1/DatastreamClient/get_stream_object.php | 76 + .../list_connection_profiles.php | 77 + .../V1/DatastreamClient/list_locations.php | 62 + .../list_private_connections.php | 78 + .../V1/DatastreamClient/list_routes.php | 81 + .../DatastreamClient/list_stream_objects.php | 76 + .../V1/DatastreamClient/list_streams.php | 76 + .../DatastreamClient/lookup_stream_object.php | 74 + .../DatastreamClient/start_backfill_job.php | 77 + .../V1/DatastreamClient/stop_backfill_job.php | 77 + .../update_connection_profile.php | 84 + .../V1/DatastreamClient/update_stream.php | 115 + .../v1/src/V1/Client/DatastreamClient.php | 1158 +++++ .../Datastream/v1/src/V1/gapic_metadata.json | 153 + .../resources/datastream_client_config.json | 179 + .../datastream_descriptor_config.php | 491 ++ .../datastream_rest_client_config.php | 399 ++ .../Unit/V1/Client/DatastreamClientTest.php | 2689 ++++++++++ .../Developerconnect/V1/DeveloperConnect.php | Bin 0 -> 11671 bytes .../Cloud/DeveloperConnect/V1/Connection.php | 517 ++ .../V1/CreateConnectionRequest.php | 281 + .../V1/CreateGitRepositoryLinkRequest.php | 286 ++ .../V1/DeleteConnectionRequest.php | 231 + .../V1/DeleteGitRepositoryLinkRequest.php | 231 + .../V1/FetchGitHubInstallationsRequest.php | 86 + .../V1/FetchGitHubInstallationsResponse.php | 71 + .../Installation.php | 138 + .../V1/FetchGitRefsRequest.php | 191 + .../V1/FetchGitRefsRequest/RefType.php | 64 + .../V1/FetchGitRefsResponse.php | 101 + .../FetchLinkableGitRepositoriesRequest.php | 154 + .../FetchLinkableGitRepositoriesResponse.php | 101 + .../V1/FetchReadTokenRequest.php | 86 + .../V1/FetchReadTokenResponse.php | 153 + .../V1/FetchReadWriteTokenRequest.php | 86 + .../V1/FetchReadWriteTokenResponse.php | 153 + .../V1/GetConnectionRequest.php | 81 + .../V1/GetGitRepositoryLinkRequest.php | 81 + .../DeveloperConnect/V1/GitHubConfig.php | 195 + .../V1/GitHubConfig/GitHubApp.php | 65 + .../DeveloperConnect/V1/GitRepositoryLink.php | 423 ++ .../DeveloperConnect/V1/InstallationState.php | 145 + .../V1/InstallationState/Stage.php | 79 + .../V1/LinkableGitRepository.php | 68 + .../V1/ListConnectionsRequest.php | 221 + .../V1/ListConnectionsResponse.php | 135 + .../V1/ListGitRepositoryLinksRequest.php | 221 + .../V1/ListGitRepositoryLinksResponse.php | 135 + .../DeveloperConnect/V1/OAuthCredential.php | 106 + .../DeveloperConnect/V1/OperationMetadata.php | 307 ++ .../V1/UpdateConnectionRequest.php | 314 ++ .../create_connection.php | 90 + .../create_git_repository_link.php | 109 + .../delete_connection.php | 80 + .../delete_git_repository_link.php | 85 + .../fetch_git_hub_installations.php | 79 + .../DeveloperConnectClient/fetch_git_refs.php | 85 + .../fetch_linkable_git_repositories.php | 82 + .../fetch_read_token.php | 77 + .../fetch_read_write_token.php | 77 + .../DeveloperConnectClient/get_connection.php | 71 + .../get_git_repository_link.php | 76 + .../DeveloperConnectClient/get_location.php | 57 + .../list_connections.php | 76 + .../list_git_repository_links.php | 80 + .../DeveloperConnectClient/list_locations.php | 62 + .../update_connection.php | 74 + .../src/V1/Client/DeveloperConnectClient.php | 793 +++ .../v1/src/V1/gapic_metadata.json | 98 + .../developer_connect_client_config.json | 114 + .../developer_connect_descriptor_config.php | 304 ++ .../developer_connect_rest_client_config.php | 269 + .../V1/Client/DeveloperConnectClientTest.php | 1602 ++++++ .../Google/Cloud/Clouddms/V1/Clouddms.php | Bin 0 -> 20513 bytes .../Cloud/Clouddms/V1/ClouddmsResources.php | Bin 0 -> 12731 bytes .../V1/ConversionworkspaceResources.php | Bin 0 -> 15141 bytes .../CloudDms/V1/AlloyDbConnectionProfile.php | 116 + .../Cloud/CloudDms/V1/AlloyDbSettings.php | 266 + .../V1/AlloyDbSettings/EncryptionConfig.php | 79 + .../PrimaryInstanceSettings.php | 240 + .../PrimaryInstanceSettings/MachineConfig.php | 70 + .../V1/AlloyDbSettings/UserPassword.php | 139 + .../V1/ApplyConversionWorkspaceRequest.php | 238 + .../Google/Cloud/CloudDms/V1/ApplyHash.php | 75 + .../Cloud/CloudDms/V1/AssignSpecificValue.php | 67 + .../CloudDms/V1/BackgroundJobLogEntry.php | 444 ++ .../BackgroundJobLogEntry/ApplyJobDetails.php | 104 + .../ConvertJobDetails.php | 70 + .../ImportRulesJobDetails.php | 104 + .../JobCompletionState.php | 65 + .../BackgroundJobLogEntry/SeedJobDetails.php | 70 + .../Cloud/CloudDms/V1/BackgroundJobType.php | 77 + .../CloudDms/V1/CloudSqlConnectionProfile.php | 226 + .../Cloud/CloudDms/V1/CloudSqlSettings.php | 940 ++++ .../CloudDms/V1/CloudSqlSettings/Edition.php | 65 + .../CloudSqlSettings/SqlActivationPolicy.php | 64 + .../CloudSqlSettings/SqlAvailabilityType.php | 64 + .../V1/CloudSqlSettings/SqlDataDiskType.php | 64 + .../CloudSqlSettings/SqlDatabaseVersion.php | 120 + .../Google/Cloud/CloudDms/V1/ColumnEntity.php | 660 +++ .../V1/CommitConversionWorkspaceRequest.php | 101 + .../CloudDms/V1/ConditionalColumnSetValue.php | 205 + .../Cloud/CloudDms/V1/ConnectionProfile.php | 541 ++ .../CloudDms/V1/ConnectionProfile/State.php | 99 + .../Cloud/CloudDms/V1/ConstraintEntity.php | 318 ++ .../Cloud/CloudDms/V1/ConversionWorkspace.php | 447 ++ .../CloudDms/V1/ConversionWorkspaceInfo.php | 101 + .../V1/ConvertConversionWorkspaceRequest.php | 189 + .../CloudDms/V1/ConvertRowIdToColumn.php | 74 + .../V1/CreateConnectionProfileRequest.php | 297 ++ .../V1/CreateConversionWorkspaceRequest.php | 214 + .../CloudDms/V1/CreateMappingRuleRequest.php | 223 + .../CloudDms/V1/CreateMigrationJobRequest.php | 224 + .../V1/CreatePrivateConnectionRequest.php | 248 + .../Cloud/CloudDms/V1/DatabaseEngine.php | 68 + .../Cloud/CloudDms/V1/DatabaseEngineInfo.php | 101 + .../Cloud/CloudDms/V1/DatabaseEntity.php | 673 +++ .../CloudDms/V1/DatabaseEntity/TreeType.php | 71 + .../Cloud/CloudDms/V1/DatabaseEntityType.php | 152 + .../Cloud/CloudDms/V1/DatabaseEntityView.php | 72 + .../CloudDms/V1/DatabaseInstanceEntity.php | 77 + .../Cloud/CloudDms/V1/DatabaseProvider.php | 75 + .../Google/Cloud/CloudDms/V1/DatabaseType.php | 101 + .../V1/DeleteConnectionProfileRequest.php | 169 + .../V1/DeleteConversionWorkspaceRequest.php | 169 + .../CloudDms/V1/DeleteMappingRuleRequest.php | 131 + .../CloudDms/V1/DeleteMigrationJobRequest.php | 173 + .../V1/DeletePrivateConnectionRequest.php | 131 + ...ibeConversionWorkspaceRevisionsRequest.php | 109 + ...beConversionWorkspaceRevisionsResponse.php | 67 + .../V1/DescribeDatabaseEntitiesRequest.php | 349 ++ .../DBTreeType.php | 71 + .../V1/DescribeDatabaseEntitiesResponse.php | 105 + .../CloudDms/V1/DoubleComparisonFilter.php | 102 + .../Google/Cloud/CloudDms/V1/EntityDdl.php | 203 + .../Google/Cloud/CloudDms/V1/EntityIssue.php | 325 ++ .../CloudDms/V1/EntityIssue/IssueSeverity.php | 71 + .../CloudDms/V1/EntityIssue/IssueType.php | 71 + .../CloudDms/V1/EntityIssue/Position.php | 172 + .../Cloud/CloudDms/V1/EntityMapping.php | 235 + .../CloudDms/V1/EntityMappingLogEntry.php | 135 + .../Google/Cloud/CloudDms/V1/EntityMove.php | 71 + .../CloudDms/V1/EntityNameTransformation.php | 75 + .../CloudDms/V1/FetchStaticIpsRequest.php | 154 + .../CloudDms/V1/FetchStaticIpsResponse.php | 105 + .../Cloud/CloudDms/V1/FilterTableColumns.php | 106 + .../V1/ForwardSshTunnelConnectivity.php | 210 + .../Cloud/CloudDms/V1/FunctionEntity.php | 111 + .../CloudDms/V1/GenerateSshScriptRequest.php | 210 + .../V1/GenerateTcpProxyScriptRequest.php | 227 + .../V1/GetConnectionProfileRequest.php | 81 + .../V1/GetConversionWorkspaceRequest.php | 81 + .../CloudDms/V1/GetMappingRuleRequest.php | 107 + .../CloudDms/V1/GetMigrationJobRequest.php | 81 + .../V1/GetPrivateConnectionRequest.php | 81 + .../CloudDms/V1/ImportMappingRulesRequest.php | 181 + .../ImportMappingRulesRequest/RulesFile.php | 112 + .../CloudDms/V1/ImportRulesFileFormat.php | 61 + .../Google/Cloud/CloudDms/V1/IndexEntity.php | 218 + .../Cloud/CloudDms/V1/IntComparisonFilter.php | 102 + .../V1/ListConnectionProfilesRequest.php | 273 + .../V1/ListConnectionProfilesResponse.php | 139 + .../V1/ListConversionWorkspacesRequest.php | 235 + .../V1/ListConversionWorkspacesResponse.php | 139 + .../CloudDms/V1/ListMappingRulesRequest.php | 179 + .../CloudDms/V1/ListMappingRulesResponse.php | 105 + .../CloudDms/V1/ListMigrationJobsRequest.php | 281 + .../CloudDms/V1/ListMigrationJobsResponse.php | 139 + .../V1/ListPrivateConnectionsRequest.php | 262 + .../V1/ListPrivateConnectionsResponse.php | 139 + .../Google/Cloud/CloudDms/V1/MappingRule.php | 736 +++ .../Cloud/CloudDms/V1/MappingRule/State.php | 71 + .../Cloud/CloudDms/V1/MappingRuleFilter.php | 241 + .../CloudDms/V1/MaterializedViewEntity.php | 111 + .../Google/Cloud/CloudDms/V1/MigrationJob.php | 1074 ++++ .../CloudDms/V1/MigrationJob/DumpFlag.php | 104 + .../CloudDms/V1/MigrationJob/DumpFlags.php | 70 + .../V1/MigrationJob/PerformanceConfig.php | 70 + .../PerformanceConfig/DumpParallelLevel.php | 71 + .../Cloud/CloudDms/V1/MigrationJob/Phase.php | 85 + .../Cloud/CloudDms/V1/MigrationJob/State.php | 155 + .../Cloud/CloudDms/V1/MigrationJob/Type.php | 64 + .../V1/MigrationJobVerificationError.php | 139 + .../ErrorCode.php | 245 + .../CloudDms/V1/MultiColumnDatatypeChange.php | 388 ++ .../Cloud/CloudDms/V1/MultiEntityRename.php | 129 + .../CloudDms/V1/MySqlConnectionProfile.php | 305 ++ .../Cloud/CloudDms/V1/NetworkArchitecture.php | 57 + .../Cloud/CloudDms/V1/NumericFilterOption.php | 70 + .../Cloud/CloudDms/V1/OperationMetadata.php | 307 ++ .../CloudDms/V1/OracleConnectionProfile.php | 418 ++ .../Cloud/CloudDms/V1/PackageEntity.php | 149 + .../V1/PostgreSqlConnectionProfile.php | 419 ++ .../Cloud/CloudDms/V1/PrivateConnection.php | 356 ++ .../CloudDms/V1/PrivateConnection/State.php | 90 + .../Cloud/CloudDms/V1/PrivateConnectivity.php | 67 + .../V1/PrivateServiceConnectConnectivity.php | 76 + .../V1/PromoteMigrationJobRequest.php | 67 + .../V1/RestartMigrationJobRequest.php | 105 + .../CloudDms/V1/ResumeMigrationJobRequest.php | 67 + .../CloudDms/V1/ReverseSshConnectivity.php | 186 + .../V1/RollbackConversionWorkspaceRequest.php | 67 + .../Google/Cloud/CloudDms/V1/RoundToScale.php | 69 + .../Google/Cloud/CloudDms/V1/SchemaEntity.php | 81 + .../V1/SearchBackgroundJobsRequest.php | 203 + .../V1/SearchBackgroundJobsResponse.php | 67 + .../V1/SeedConversionWorkspaceRequest.php | 191 + .../Cloud/CloudDms/V1/SequenceEntity.php | 293 ++ .../Cloud/CloudDms/V1/SetTablePrimaryKey.php | 105 + .../Cloud/CloudDms/V1/SingleColumnChange.php | 566 +++ .../Cloud/CloudDms/V1/SingleEntityRename.php | 72 + .../Cloud/CloudDms/V1/SinglePackageChange.php | 104 + .../Cloud/CloudDms/V1/SourceNumericFilter.php | 223 + .../Cloud/CloudDms/V1/SourceSqlChange.php | 70 + .../Cloud/CloudDms/V1/SourceTextFilter.php | 109 + .../Google/Cloud/CloudDms/V1/SqlAclEntry.php | 182 + .../Google/Cloud/CloudDms/V1/SqlIpConfig.php | 321 ++ .../Google/Cloud/CloudDms/V1/SshScript.php | 67 + .../Google/Cloud/CloudDms/V1/SslConfig.php | 197 + .../Cloud/CloudDms/V1/SslConfig/SslType.php | 65 + .../CloudDms/V1/StartMigrationJobRequest.php | 105 + .../CloudDms/V1/StaticIpConnectivity.php | 36 + .../V1/StaticServiceIpConnectivity.php | 33 + .../CloudDms/V1/StopMigrationJobRequest.php | 67 + .../CloudDms/V1/StoredProcedureEntity.php | 111 + .../Cloud/CloudDms/V1/SynonymEntity.php | 149 + .../Google/Cloud/CloudDms/V1/TableEntity.php | 247 + .../Cloud/CloudDms/V1/TcpProxyScript.php | 67 + .../Cloud/CloudDms/V1/TriggerEntity.php | 222 + .../Google/Cloud/CloudDms/V1/UDTEntity.php | 145 + .../V1/UpdateConnectionProfileRequest.php | 275 + .../V1/UpdateConversionWorkspaceRequest.php | 191 + .../CloudDms/V1/UpdateMigrationJobRequest.php | 191 + .../Cloud/CloudDms/V1/ValueComparison.php | 76 + .../Cloud/CloudDms/V1/ValueListFilter.php | 143 + .../Cloud/CloudDms/V1/ValuePresentInList.php | 62 + .../Cloud/CloudDms/V1/ValueTransformation.php | 397 ++ .../CloudDms/V1/VerifyMigrationJobRequest.php | 163 + .../Google/Cloud/CloudDms/V1/ViewEntity.php | 145 + .../Cloud/CloudDms/V1/VmCreationConfig.php | 135 + .../Cloud/CloudDms/V1/VmSelectionConfig.php | 67 + .../Cloud/CloudDms/V1/VpcPeeringConfig.php | 106 + .../CloudDms/V1/VpcPeeringConnectivity.php | 69 + .../apply_conversion_workspace.php | 89 + .../commit_conversion_workspace.php | 87 + .../convert_conversion_workspace.php | 69 + .../create_connection_profile.php | 90 + .../create_conversion_workspace.php | 119 + .../create_mapping_rule.php | 100 + .../create_migration_job.php | 109 + .../create_private_connection.php | 90 + .../delete_connection_profile.php | 86 + .../delete_conversion_workspace.php | 84 + .../delete_mapping_rule.php | 73 + .../delete_migration_job.php | 84 + .../delete_private_connection.php | 84 + ...escribe_conversion_workspace_revisions.php | 79 + .../describe_database_entities.php | 87 + .../fetch_static_ips.php | 77 + .../generate_ssh_script.php | 71 + .../generate_tcp_proxy_script.php | 83 + .../get_connection_profile.php | 75 + .../get_conversion_workspace.php | 75 + .../get_mapping_rule.php | 82 + .../get_migration_job.php | 75 + .../get_private_connection.php | 75 + .../import_mapping_rules.php | 90 + .../list_connection_profiles.php | 77 + .../list_conversion_workspaces.php | 76 + .../list_mapping_rules.php | 82 + .../list_migration_jobs.php | 76 + .../list_private_connections.php | 76 + .../promote_migration_job.php | 70 + .../restart_migration_job.php | 71 + .../resume_migration_job.php | 70 + .../rollback_conversion_workspace.php | 87 + .../search_background_jobs.php | 82 + .../seed_conversion_workspace.php | 70 + .../start_migration_job.php | 69 + .../stop_migration_job.php | 69 + .../update_connection_profile.php | 74 + .../update_conversion_workspace.php | 111 + .../update_migration_job.php | 97 + .../verify_migration_job.php | 70 + .../V1/Client/DataMigrationServiceClient.php | 1600 ++++++ .../Dms/v1/src/V1/gapic_metadata.json | 223 + .../data_migration_service_client_config.json | 249 + ...ta_migration_service_descriptor_config.php | 749 +++ ...a_migration_service_rest_client_config.php | 685 +++ .../Client/DataMigrationServiceClientTest.php | 4517 +++++++++++++++++ .../Google/Api/Cloudquotas/V1/Cloudquotas.php | 78 + .../Google/Api/Cloudquotas/V1/Resources.php | Bin 0 -> 4064 bytes .../V1/CreateQuotaPreferenceRequest.php | 232 + .../Cloud/CloudQuotas/V1/DimensionsInfo.php | 186 + .../CloudQuotas/V1/GetQuotaInfoRequest.php | 92 + .../V1/GetQuotaPreferenceRequest.php | 92 + .../CloudQuotas/V1/ListQuotaInfosRequest.php | 184 + .../CloudQuotas/V1/ListQuotaInfosResponse.php | 105 + .../V1/ListQuotaPreferencesRequest.php | 290 ++ .../V1/ListQuotaPreferencesResponse.php | 139 + .../Cloud/CloudQuotas/V1/QuotaConfig.php | 302 ++ .../CloudQuotas/V1/QuotaConfig/Origin.php | 64 + .../Cloud/CloudQuotas/V1/QuotaDetails.php | 119 + .../V1/QuotaIncreaseEligibility.php | 109 + .../IneligibilityReason.php | 65 + .../Google/Cloud/CloudQuotas/V1/QuotaInfo.php | 648 +++ .../V1/QuotaInfo/ContainerType.php | 71 + .../Cloud/CloudQuotas/V1/QuotaPreference.php | 543 ++ .../Cloud/CloudQuotas/V1/QuotaSafetyCheck.php | 63 + .../Cloud/CloudQuotas/V1/RolloutInfo.php | 67 + .../V1/UpdateQuotaPreferenceRequest.php | 270 + .../create_quota_preference.php | 99 + .../V1/CloudQuotasClient/get_quota_info.php | 79 + .../get_quota_preference.php | 78 + .../V1/CloudQuotasClient/list_quota_infos.php | 83 + .../list_quota_preferences.php | 85 + .../update_quota_preference.php | 91 + .../v1/src/V1/Client/CloudQuotasClient.php | 688 +++ .../Quotas/v1/src/V1/gapic_metadata.json | 48 + .../resources/cloud_quotas_client_config.json | 64 + .../cloud_quotas_descriptor_config.php | 135 + .../cloud_quotas_rest_client_config.php | 162 + .../Unit/V1/Client/CloudQuotasClientTest.php | 620 +++ .../Api/Servicecontrol/V1/CheckError.php | Bin 0 -> 1626 bytes .../Api/Servicecontrol/V1/Distribution.php | Bin 0 -> 1623 bytes .../Api/Servicecontrol/V1/HttpRequest.php | 46 + .../Google/Api/Servicecontrol/V1/LogEntry.php | Bin 0 -> 2088 bytes .../Api/Servicecontrol/V1/MetricValue.php | Bin 0 -> 1570 bytes .../Api/Servicecontrol/V1/Operation.php | Bin 0 -> 1821 bytes .../Api/Servicecontrol/V1/QuotaController.php | Bin 0 -> 2671 bytes .../Servicecontrol/V1/ServiceController.php | Bin 0 -> 2941 bytes .../V1/AllocateQuotaRequest.php | 161 + .../V1/AllocateQuotaResponse.php | 201 + .../Cloud/ServiceControl/V1/CheckError.php | 204 + .../ServiceControl/V1/CheckError/Code.php | 197 + .../Cloud/ServiceControl/V1/CheckRequest.php | 173 + .../Cloud/ServiceControl/V1/CheckResponse.php | 233 + .../V1/CheckResponse/CheckInfo.php | 164 + .../V1/CheckResponse/ConsumerInfo.php | 162 + .../ConsumerInfo/ConsumerType.php | 81 + .../Cloud/ServiceControl/V1/Distribution.php | 433 ++ .../V1/Distribution/ExplicitBuckets.php | 118 + .../V1/Distribution/ExponentialBuckets.php | 170 + .../V1/Distribution/LinearBuckets.php | 166 + .../Cloud/ServiceControl/V1/HttpRequest.php | 619 +++ .../Cloud/ServiceControl/V1/LogEntry.php | 540 ++ .../ServiceControl/V1/LogEntryOperation.php | 182 + .../V1/LogEntrySourceLocation.php | 164 + .../Cloud/ServiceControl/V1/MetricValue.php | 365 ++ .../ServiceControl/V1/MetricValueSet.php | 103 + .../Cloud/ServiceControl/V1/Operation.php | 565 +++ .../V1/Operation/Importance.php | 60 + .../Cloud/ServiceControl/V1/QuotaError.php | 191 + .../ServiceControl/V1/QuotaError/Code.php | 91 + .../ServiceControl/V1/QuotaOperation.php | 345 ++ .../V1/QuotaOperation/QuotaMode.php | 107 + .../Cloud/ServiceControl/V1/ReportRequest.php | 195 + .../ServiceControl/V1/ReportResponse.php | 183 + .../V1/ReportResponse/ReportError.php | 127 + .../QuotaControllerClient/allocate_quota.php | 67 + .../V1/ServiceControllerClient/check.php | 73 + .../V1/ServiceControllerClient/report.php | 71 + .../src/V1/Client/QuotaControllerClient.php | 203 + .../src/V1/Client/ServiceControllerClient.php | 253 + .../v1/src/V1/gapic_metadata.json | 42 + .../quota_controller_client_config.json | 27 + .../quota_controller_descriptor_config.php | 40 + .../quota_controller_rest_client_config.php | 41 + .../service_controller_client_config.json | 54 + .../service_controller_descriptor_config.php | 52 + .../service_controller_rest_client_config.php | 53 + .../V1/Client/QuotaControllerClientTest.php | 146 + .../V1/Client/ServiceControllerClientTest.php | 210 + .../Api/Servicemanagement/V1/Resources.php | Bin 0 -> 3003 bytes .../Servicemanagement/V1/Servicemanager.php | Bin 0 -> 7009 bytes .../ServiceManagement/V1/ChangeReport.php | 85 + .../Cloud/ServiceManagement/V1/ConfigFile.php | 135 + .../V1/ConfigFile/FileType.php | 91 + .../Cloud/ServiceManagement/V1/ConfigRef.php | 71 + .../ServiceManagement/V1/ConfigSource.php | 114 + .../V1/CreateServiceConfigRequest.php | 136 + .../V1/CreateServiceRequest.php | 90 + .../V1/CreateServiceRolloutRequest.php | 136 + .../V1/DeleteServiceRequest.php | 90 + .../Cloud/ServiceManagement/V1/Diagnostic.php | 135 + .../ServiceManagement/V1/Diagnostic/Kind.php | 57 + .../V1/EnableServiceResponse.php | 33 + .../V1/GenerateConfigReportRequest.php | 176 + .../V1/GenerateConfigReportResponse.php | 181 + .../V1/GetServiceConfigRequest.php | 179 + .../V1/GetServiceConfigRequest/ConfigView.php | 58 + .../V1/GetServiceRequest.php | 85 + .../V1/GetServiceRolloutRequest.php | 126 + .../V1/ListServiceConfigsRequest.php | 162 + .../V1/ListServiceConfigsResponse.php | 101 + .../V1/ListServiceRolloutsRequest.php | 235 + .../V1/ListServiceRolloutsResponse.php | 101 + .../V1/ListServicesRequest.php | 213 + .../V1/ListServicesResponse.php | 101 + .../ServiceManagement/V1/ManagedService.php | 110 + .../V1/OperationMetadata.php | 183 + .../V1/OperationMetadata/Status.php | 86 + .../V1/OperationMetadata/Step.php | 104 + .../Cloud/ServiceManagement/V1/Rollout.php | 332 ++ .../V1/Rollout/DeleteServiceStrategy.php | 37 + .../V1/Rollout/RolloutStatus.php | 94 + .../V1/Rollout/TrafficPercentStrategy.php | 103 + .../V1/SubmitConfigSourceRequest.php | 182 + .../V1/SubmitConfigSourceResponse.php | 77 + .../V1/UndeleteServiceRequest.php | 90 + .../V1/UndeleteServiceResponse.php | 77 + .../ServiceManagerClient/create_service.php | 81 + .../create_service_config.php | 81 + .../create_service_rollout.php | 99 + .../ServiceManagerClient/delete_service.php | 88 + .../generate_config_report.php | 70 + .../ServiceManagerClient/get_iam_policy.php | 72 + .../V1/ServiceManagerClient/get_service.php | 72 + .../get_service_config.php | 78 + .../get_service_rollout.php | 76 + .../list_service_configs.php | 78 + .../list_service_rollouts.php | 90 + .../V1/ServiceManagerClient/list_services.php | 66 + .../ServiceManagerClient/set_iam_policy.php | 77 + .../submit_config_source.php | 100 + .../test_iam_permissions.php | 84 + .../ServiceManagerClient/undelete_service.php | 89 + .../v1/src/V1/Client/ServiceManagerClient.php | 759 +++ .../v1/src/V1/gapic_metadata.json | 98 + .../service_manager_client_config.json | 112 + .../service_manager_descriptor_config.php | 270 + .../service_manager_rest_client_config.php | 240 + .../V1/Client/ServiceManagerClientTest.php | 1566 ++++++ .../Google/Api/Serviceusage/V1/Resources.php | Bin 0 -> 2407 bytes .../Api/Serviceusage/V1/Serviceusage.php | Bin 0 -> 3627 bytes .../V1/BatchEnableServicesRequest.php | 141 + .../V1/BatchEnableServicesResponse.php | 107 + .../EnableFailure.php | 104 + .../V1/BatchGetServicesRequest.php | 133 + .../V1/BatchGetServicesResponse.php | 67 + .../ServiceUsage/V1/DisableServiceRequest.php | 167 + .../CheckIfServiceHasUsage.php | 67 + .../V1/DisableServiceResponse.php | 79 + .../ServiceUsage/V1/EnableServiceRequest.php | 95 + .../ServiceUsage/V1/EnableServiceResponse.php | 79 + .../ServiceUsage/V1/GetServiceRequest.php | 79 + .../ServiceUsage/V1/ListServicesRequest.php | 193 + .../ServiceUsage/V1/ListServicesResponse.php | 105 + .../ServiceUsage/V1/OperationMetadata.php | 71 + .../Google/Cloud/ServiceUsage/V1/Service.php | 207 + .../Cloud/ServiceUsage/V1/ServiceConfig.php | 455 ++ .../Google/Cloud/ServiceUsage/V1/State.php | 64 + .../batch_enable_services.php | 71 + .../ServiceUsageClient/batch_get_services.php | 58 + .../V1/ServiceUsageClient/disable_service.php | 75 + .../V1/ServiceUsageClient/enable_service.php | 69 + .../V1/ServiceUsageClient/get_service.php | 57 + .../V1/ServiceUsageClient/list_services.php | 74 + .../v1/src/V1/Client/ServiceUsageClient.php | 412 ++ .../v1/src/V1/gapic_metadata.json | 48 + .../service_usage_client_config.json | 62 + .../service_usage_descriptor_config.php | 129 + .../service_usage_rest_client_config.php | 115 + .../Unit/V1/Client/ServiceUsageClientTest.php | 650 +++ 2789 files changed, 486016 insertions(+) create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/BillingAccounts.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ChannelPartnerLinks.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Common.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Customers.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/EntitlementChanges.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Entitlements.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Offers.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Operations.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Products.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ReportsService.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Repricing.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Service.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/SubscriberEvent.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ActivateEntitlementRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AdminUser.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AssociationInfo.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillableSku.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccount.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccountPurchaseInfo.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CancelEntitlementRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeOfferRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeParametersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeRenewalSettingsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLink.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkState.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkView.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerRepricingConfig.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityCustomerAccount.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo/CustomerType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column/DataType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CommitmentSettings.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ConditionalOverride.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Constraints.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ContactInfo.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerLinkRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateEntitlementRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Customer.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerConstraints.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent/Type.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerRepricingConfig.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DateRange.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteChannelPartnerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteSize.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/ProvisioningState.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/SuspensionReason.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ActivationReason.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/CancellationReason.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ChangeType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/OperatorType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent/Type.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerLinkRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetEntitlementRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ImportCustomerRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/ChangeOfferPurchase.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/CreateEntitlementPurchase.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase/ChangeType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/CreateEntitlementPurchase.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/LookupOfferRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MarketingInfo.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Media.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MediaType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Offer.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata/OperationType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Parameter.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition/ParameterType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentPlan.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PercentageAdjustment.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Period.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PeriodType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Plan.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Price.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceByResource.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PricePhase.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceTier.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Product.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PromotionalOrderType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionCloudIdentityRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionedService.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableOffer.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableSku.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RebillingBasis.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RenewalSettings.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Report.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportJob.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportResultsMetadata.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus/State.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportValue.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingAdjustment.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingCondition.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/ChannelPartnerGranularity.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/EntitlementGranularity.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ResourceType.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Row.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Sku.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroup.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroupCondition.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuPurchaseGroup.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/StartPaidServiceRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SubscriberEvent.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SuspendEntitlementRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility/Reason.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsToGoogleRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableOffer.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableSku.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TrialSettings.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberResponse.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerLinkRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRepricingConfigRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRequest.php create mode 100644 owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Value.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/fetch_report_results.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/list_reports.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/run_report_job.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/activate_entitlement.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/cancel_entitlement.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_offer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_parameters.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_renewal_settings.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/check_cloud_identity_accounts_exist.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_link.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_entitlement.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_channel_partner_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_link.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_entitlement.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/import_customer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_links.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_repricing_configs.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customer_repricing_configs.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customers.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlement_changes.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlements.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_offers.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_products.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_offers.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_skus.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_group_billable_skus.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_groups.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_skus.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_subscribers.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_offers.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_skus.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/lookup_offer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/provision_cloud_identity.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/query_eligible_billing_accounts.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/register_subscriber.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/start_paid_service.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/suspend_entitlement.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements_to_google.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/unregister_subscriber.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_link.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer.php create mode 100644 owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer_repricing_config.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelReportsServiceClient.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelServiceClient.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_client_config.json create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_descriptor_config.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_rest_client_config.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_client_config.json create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_descriptor_config.php create mode 100644 owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_rest_client_config.php create mode 100644 owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelReportsServiceClientTest.php create mode 100644 owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelServiceClientTest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/LicenseManagementService.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/ProcurementService.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignResponse.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/AutoAssignmentType.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/ManualAssignmentType.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AutoRenewalBehavior.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderMetadata.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest/CancellationPolicy.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersResponse.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetLicensePoolRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetOrderRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensePool.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensedUser.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItem.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChange.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeState.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeStateReasonType.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeType.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemInfo.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersResponse.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderMetadata.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest/Modification.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter/Value.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderMetadata.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Subscription.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignResponse.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UpdateLicensePoolRequest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/cancel_order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/get_order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/list_orders.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/modify_order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/place_order.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/assign.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/enumerate_licensed_users.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/get_license_pool.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/unassign.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/update_license_pool.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/ConsumerProcurementServiceClient.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/LicenseManagementServiceClient.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_client_config.json create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_descriptor_config.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_rest_client_config.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_client_config.json create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_descriptor_config.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_rest_client_config.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/ConsumerProcurementServiceClientTest.php create mode 100644 owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/LicenseManagementServiceClientTest.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/GPBMetadata/Google/Cloud/Confidentialcomputing/V1/Service.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/Challenge.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ConfidentialSpaceInfo.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ContainerImageSignature.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/CreateChallengeRequest.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/GcpCredentials.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SevSnpAttestation.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SignedEntity.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SigningAlgorithm.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TdxCcelAttestation.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenOptions.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenType.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation/Quote.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationRequest.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationResponse.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/create_challenge.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/get_location.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/list_locations.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/verify_attestation.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/src/V1/Client/ConfidentialComputingClient.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_client_config.json create mode 100644 owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_descriptor_config.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_rest_client_config.php create mode 100644 owl-bot-staging/ConfidentialComputing/v1/tests/Unit/V1/Client/ConfidentialComputingClientTest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/GPBMetadata/Google/Cloud/Config/V1/Config.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ApplyResults.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreateDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreatePreviewRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest/DeletePolicy.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeletePreviewRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteStatefileRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/ErrorCode.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/LockState.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/State.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata/DeploymentStep.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportDeploymentStatefileRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportLockInfoRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportRevisionStatefileRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetPreviewRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetResourceRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetRevisionRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetTerraformVersionRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GitSource.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ImportStatefileRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsResponse.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockInfo.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/ErrorCode.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/PreviewMode.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/State.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewArtifacts.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata/PreviewStep.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewResult.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/QuotaValidation.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/Intent.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/State.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceCAIInfo.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceTerraformInfo.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/Action.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/ErrorCode.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/State.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Statefile.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformBlueprint.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformError.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformOutput.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVariable.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion/State.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UnlockDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UpdateDeploymentRequest.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_deployment.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_preview.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_deployment.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_preview.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_statefile.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_deployment_statefile.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_lock_info.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_preview_result.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_revision_statefile.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_deployment.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_iam_policy.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_location.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_preview.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_resource.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_revision.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_terraform_version.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/import_statefile.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_deployments.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_locations.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_previews.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_resources.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_revisions.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_terraform_versions.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/lock_deployment.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/set_iam_policy.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/unlock_deployment.php create mode 100644 owl-bot-staging/Config/v1/samples/V1/ConfigClient/update_deployment.php create mode 100644 owl-bot-staging/Config/v1/src/V1/Client/ConfigClient.php create mode 100644 owl-bot-staging/Config/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Config/v1/src/V1/resources/config_client_config.json create mode 100644 owl-bot-staging/Config/v1/src/V1/resources/config_descriptor_config.php create mode 100644 owl-bot-staging/Config/v1/src/V1/resources/config_rest_client_config.php create mode 100644 owl-bot-staging/Config/v1/tests/Unit/V1/Client/ConfigClientTest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/ContactCenterInsights.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/Resources.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Analysis.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult/CallAnalysisMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotationBoundary.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig/SummarizationModel.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback/CorrectnessLevel.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ArticleSuggestionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries/Interval.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CallAnnotation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/CallMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Medium.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata/AgentInfo.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/DialogflowSegmentMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/WordInfo.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationDataSource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSentiment.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSilence.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant/Role.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationSummarizationSuggestionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationView.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisOperationMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateConversationRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreatePhraseMatcherRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateViewRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteAnalysisRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteConversationRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeletePhraseMatcherRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteViewRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowIntent.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowInteractionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowSource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EncryptionSpec.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity/Type.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData/MentionType.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExactMatchConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/BigQueryDestination.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/WriteDisposition.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest/GcsDestination.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/FaqAnswerData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GcsSource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetAnalysisRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetConversationRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetEncryptionSpecRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetPhraseMatcherRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetSettingsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetViewRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/HoldData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest/GcsSource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata/IngestConversationsStats.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/ConversationConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource/BucketObjectType.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/TranscriptObjectConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Intent.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IntentMatchData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InterruptionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Issue.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueAssignment.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueMatchData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/InputDataConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/ModelType.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/State.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats/IssueStats.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelResult.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRule.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup/PhraseMatchRuleGroupType.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher/PhraseMatcherType.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RedactionConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput/QuerySource.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SentimentData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings/AnalysisConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SilenceData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartComposeSuggestionData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartReplyData.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SpeechConfig.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelResponse.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateConversationRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueModelRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdatePhraseMatcherRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateSettingsRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateViewRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationMetadata.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationRequest.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/View.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_analyze_conversations.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_delete_conversations.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_issue_model_stats.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_stats.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_analysis.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_phrase_matcher.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_view.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_analysis.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_phrase_matcher.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_view.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/deploy_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_insights_data.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_analysis.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_encryption_spec.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_phrase_matcher.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_settings.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_view.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/import_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/ingest_conversations.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/initialize_encryption_spec.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_analyses.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_conversations.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issue_models.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issues.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_phrase_matchers.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_views.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/undeploy_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue_model.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_phrase_matcher.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_settings.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_view.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/upload_conversation.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/src/V1/Client/ContactCenterInsightsClient.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_client_config.json create mode 100644 owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_descriptor_config.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_rest_client_config.php create mode 100644 owl-bot-staging/ContactCenterInsights/v1/tests/Unit/V1/Client/ContactCenterInsightsClientTest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CompletionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Customers.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Partners.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessApprovalRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Bigquery.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Common.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DataSource.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Datacatalog.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DataplexSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DumpContent.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/GcsFilesetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/PhysicalSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Policytagmanager.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Policytagmanagerserialization.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Schema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Search.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/TableSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Tags.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Timestamps.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Usage.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec/ConnectionType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryDateShardedSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryRoutineSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryTableSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BusinessContext.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec/CloudBigtableClusterSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableSystemSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec/DatabaseType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/FieldElementType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/IndexingType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec/LookerColumnType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CommonUsageStats.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts/Person.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryGroupRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreatePolicyTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateFieldRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTaxonomyRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CrossRegionalSource.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource/Service.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSourceConnectionSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec/ViewType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/TableType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexExternalTable.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexFilesetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexTableSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatasetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryGroupRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeletePolicyTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateFieldRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTaxonomyRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DumpItem.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryGroup.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryOverview.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType/EnumValue.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/PrimitiveType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FilesetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFileSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFilesetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryGroupRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetPolicyTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTagTemplateRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTaxonomyRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata/ImportState.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/InlineSource.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/IntegratedSystem.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookerSystemSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookupEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ManagingSystem.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModelSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryContactsRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryOverviewRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PersonalDetails.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/AvroSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/CsvSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/OrcSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ParquetSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ProtobufSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ThriftSchema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PolicyTag.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata/ReconciliationState.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldEnumValueRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReplaceTaxonomyRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument/Mode.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/RoutineType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Schema.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest/Scope.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResult.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchResultType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedPolicyTag.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedTaxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ServiceSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SqlDatabaseSystemSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StorageProperties.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SystemTimestamps.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSourceType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField/EnumValue.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplate.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplateField.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TaggedEntry.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/PolicyType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/Service.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryResponse.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryGroupRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdatePolicyTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateFieldRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTaxonomyRequest.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageSignal.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageStats.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec/DataType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo/ModelSourceType.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ViewSpec.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry_group.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template_field.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry_group.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template_field.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry_group.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_iam_policy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_tag_template.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/import_entries.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entries.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entry_groups.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_tags.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/lookup_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_contacts.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_overview.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/reconcile_tags.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field_enum_value.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/search_catalog.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/set_iam_policy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/star_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/test_iam_permissions.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/unstar_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry_group.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template_field.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_policy_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_policy_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_iam_policy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_policy_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_policy_tags.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_taxonomies.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/set_iam_policy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_policy_tag.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/export_taxonomies.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/import_taxonomies.php create mode 100644 owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/replace_taxonomy.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/Client/DataCatalogClient.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerClient.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerSerializationClient.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_client_config.json create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_descriptor_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_rest_client_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_client_config.json create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_descriptor_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_rest_client_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_client_config.json create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_descriptor_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_rest_client_config.php create mode 100644 owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/DataCatalogClientTest.php create mode 100644 owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerClientTest.php create mode 100644 owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerSerializationClientTest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/Lineage/V1/Lineage.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateLineageEventRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateProcessRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateRunRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteLineageEventRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteProcessRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteRunRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EntityReference.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EventLink.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetLineageEventRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetProcessRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetRunRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/LineageEvent.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Link.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/State.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/Type.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin/SourceType.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Process.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinkInfo.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinks.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run/State.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksResponse.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateProcessRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateRunRequest.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/batch_search_link_processes.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_lineage_event.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_process.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_run.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_lineage_event.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_process.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_run.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_lineage_event.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_process.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_run.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_lineage_events.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_processes.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_runs.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/process_open_lineage_run_event.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/search_links.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_process.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_run.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/src/V1/Client/LineageClient.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_client_config.json create mode 100644 owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_descriptor_config.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_rest_client_config.php create mode 100644 owl-bot-staging/DataCatalogLineage/v1/tests/Unit/V1/Client/LineageClientTest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/GPBMetadata/Google/Cloud/Datafusion/V1/Datafusion.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/AcceleratorType.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/State.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CreateInstanceRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CryptoKeyConfig.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/DeleteInstanceRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/GetInstanceRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/DisabledReason.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/State.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/Type.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsResponse.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesResponse.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/NetworkConfig.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/OperationMetadata.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/RestartInstanceRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/UpdateInstanceRequest.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version.php create mode 100644 owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version/Type.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/create_instance.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/delete_instance.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/get_instance.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_available_versions.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_instances.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/restart_instance.php create mode 100644 owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/update_instance.php create mode 100644 owl-bot-staging/DataFusion/v1/src/V1/Client/DataFusionClient.php create mode 100644 owl-bot-staging/DataFusion/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_client_config.json create mode 100644 owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_descriptor_config.php create mode 100644 owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_rest_client_config.php create mode 100644 owl-bot-staging/DataFusion/v1/tests/Unit/V1/Client/DataFusionClientTest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Annotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/AnnotationSpecSet.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataLabelingService.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataPayloads.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Evaluation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/EvaluationJob.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/HumanAnnotationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Instruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Operations.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotatedDataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotatedDatasetMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Annotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationSentiment.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationSource.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationSpec.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationSpecSet.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationType.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/AnnotationValue.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Attempt.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/BigQuerySource.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/BoundingBoxEvaluationOptions.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/BoundingPoly.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/BoundingPolyConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ClassificationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ClassificationMetrics.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ConfusionMatrix.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ConfusionMatrix/ConfusionMatrixEntry.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ConfusionMatrix/Row.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CreateAnnotationSpecSetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CreateDatasetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CreateEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CreateInstructionMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CreateInstructionRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/CsvInstruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DataItem.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DataType.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DeleteAnnotatedDatasetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DeleteAnnotationSpecSetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DeleteDatasetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DeleteEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/DeleteInstructionRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Evaluation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationJob.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationJob/State.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationJobAlertConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationJobConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EvaluationMetrics.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/EventConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Example.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ExportDataOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ExportDataOperationResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ExportDataRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GcsDestination.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GcsFolderDestination.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GcsSource.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetAnnotatedDatasetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetAnnotationSpecSetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetDataItemRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetDatasetRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetEvaluationRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetExampleRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/GetInstructionRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/HumanAnnotationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImageBoundingPolyAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImageClassificationAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImageClassificationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImagePayload.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImagePolylineAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImageSegmentationAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImportDataOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImportDataOperationResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ImportDataRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/InputConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Instruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageBoundingBoxOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageBoundingPolyOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageClassificationOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageOrientedBoundingBoxOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImagePolylineOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageRequest/Feature.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelImageSegmentationOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelStats.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelTextClassificationOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelTextEntityExtractionOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelTextRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelTextRequest/Feature.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoClassificationOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoEventOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoObjectDetectionOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoObjectTrackingOperationMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/LabelVideoRequest/Feature.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListAnnotatedDatasetsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListAnnotatedDatasetsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListAnnotationSpecSetsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListAnnotationSpecSetsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListDataItemsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListDataItemsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListDatasetsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListDatasetsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListEvaluationJobsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListEvaluationJobsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListExamplesRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListExamplesResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListInstructionsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ListInstructionsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/NormalizedBoundingPoly.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/NormalizedPolyline.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/NormalizedVertex.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ObjectDetectionConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ObjectDetectionMetrics.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ObjectTrackingConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ObjectTrackingFrame.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/OperatorMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/OutputConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/PauseEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/PdfInstruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Polyline.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/PolylineConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/PrCurve.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/PrCurve/ConfidenceMetricsEntry.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/ResumeEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SearchEvaluationsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SearchEvaluationsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SearchExampleComparisonsRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SearchExampleComparisonsResponse.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SearchExampleComparisonsResponse/ExampleComparison.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SegmentationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SentimentConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/SequentialSegment.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/StringAggregationType.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextClassificationAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextClassificationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextEntityExtractionAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextEntityExtractionConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextMetadata.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TextPayload.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/TimeSegment.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/UpdateEvaluationJobRequest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/Vertex.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoClassificationAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoClassificationConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoClassificationConfig/AnnotationSpecSetConfig.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoEventAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoObjectTrackingAnnotation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoPayload.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/proto/src/Google/Cloud/DataLabeling/V1beta1/VideoThumbnail.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/create_annotation_spec_set.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/create_dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/create_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/create_instruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/delete_annotated_dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/delete_annotation_spec_set.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/delete_dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/delete_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/delete_instruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/export_data.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_annotated_dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_annotation_spec_set.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_data_item.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_dataset.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_evaluation.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_example.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/get_instruction.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/import_data.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/label_image.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/label_text.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/label_video.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_annotated_datasets.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_annotation_spec_sets.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_data_items.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_datasets.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_evaluation_jobs.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_examples.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/list_instructions.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/pause_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/resume_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/search_evaluations.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/search_example_comparisons.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/samples/V1beta1/DataLabelingServiceClient/update_evaluation_job.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/Client/DataLabelingServiceClient.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/DataLabelingServiceClient.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/Gapic/DataLabelingServiceGapicClient.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/gapic_metadata.json create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/resources/data_labeling_service_client_config.json create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/resources/data_labeling_service_descriptor_config.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/src/V1beta1/resources/data_labeling_service_rest_client_config.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/tests/Unit/V1beta1/Client/DataLabelingServiceClientTest.php create mode 100644 owl-bot-staging/DataLabeling/v1beta1/tests/Unit/V1beta1/DataLabelingServiceClientTest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/DataformClient.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/Gapic/DataformGapicClient.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/DataformClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Processing.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateContentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEnvironmentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteContentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEnvironmentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetContentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetContentRequest/ContentView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEnvironmentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListContentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListContentResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEnvironmentsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEnvironmentsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListSessionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListSessionsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateContentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEnvironmentRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/create_content.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/delete_content.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_content.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_content.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/update_content.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_environment.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_environment.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_environment.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_environments.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_sessions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_environment.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/AutoscalingPolicies.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Batches.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Clusters.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Jobs.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/NodeGroups.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Operations.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/SessionTemplates.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Sessions.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/Shared.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/GPBMetadata/Google/Cloud/Dataproc/V1/WorkflowTemplates.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AcceleratorConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AutoscalingConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AutoscalingPolicy.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AutotuningConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AutotuningConfig/Scenario.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AuxiliaryNodeGroup.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/AuxiliaryServicesConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/BasicAutoscalingAlgorithm.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/BasicYarnAutoscalingConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Batch.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Batch/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Batch/StateHistory.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/BatchOperationMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/BatchOperationMetadata/BatchOperationType.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CancelJobRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterMetrics.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterOperation.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterOperationMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterOperationStatus.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterOperationStatus/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterSelector.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterStatus.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterStatus/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ClusterStatus/Substate.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Component.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ConfidentialInstanceConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateAutoscalingPolicyRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateBatchRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateNodeGroupRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateSessionRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateSessionTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/CreateWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DataprocMetricConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DataprocMetricConfig/Metric.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DataprocMetricConfig/MetricSource.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteAutoscalingPolicyRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteBatchRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteJobRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteSessionRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteSessionTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DeleteWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DiagnoseClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DiagnoseClusterRequest/TarballAccess.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DiagnoseClusterResults.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DiskConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/DriverSchedulingConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/EncryptionConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/EndpointConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/EnvironmentConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ExecutionConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/FailureAction.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/FlinkJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GceClusterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GceClusterConfig/PrivateIpv6GoogleAccess.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetAutoscalingPolicyRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetBatchRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetJobRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetNodeGroupRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetSessionRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetSessionTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GetWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeClusterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolConfig/GkeNodeConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolConfig/GkeNodePoolAcceleratorConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolConfig/GkeNodePoolAutoscalingConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolTarget.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/GkeNodePoolTarget/Role.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/HadoopJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/HiveJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/IdentityConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceFlexibilityPolicy.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceFlexibilityPolicy/InstanceSelection.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceFlexibilityPolicy/InstanceSelectionResult.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceFlexibilityPolicy/ProvisioningModelMix.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceGroupAutoscalingPolicyConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceGroupConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceGroupConfig/Preemptibility.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstanceReference.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstantiateInlineWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/InstantiateWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Job.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobPlacement.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobReference.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobScheduling.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobStatus.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobStatus/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JobStatus/Substate.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JupyterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/JupyterConfig/Kernel.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/KerberosConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/KubernetesClusterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/KubernetesSoftwareConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/LifecycleConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListAutoscalingPoliciesRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListAutoscalingPoliciesResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListBatchesRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListBatchesResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListClustersRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListClustersResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListJobsRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListJobsRequest/JobStateMatcher.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListJobsResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListSessionTemplatesRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListSessionTemplatesResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListSessionsRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListSessionsResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListWorkflowTemplatesRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ListWorkflowTemplatesResponse.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/LoggingConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/LoggingConfig/Level.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ManagedCluster.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ManagedGroupConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/MetastoreConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeGroup.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeGroup/Role.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeGroupAffinity.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeGroupOperationMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeGroupOperationMetadata/NodeGroupOperationType.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/NodeInitializationAction.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/OrderedJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ParameterValidation.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PeripheralsConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PigJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PrestoJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PyPiRepositoryConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PySparkBatch.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/PySparkJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/QueryList.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/RegexValidation.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/RepositoryConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ReservationAffinity.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ReservationAffinity/Type.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ResizeNodeGroupRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/RuntimeConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/RuntimeInfo.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SecurityConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Session.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Session/SessionStateHistory.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/Session/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SessionOperationMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SessionOperationMetadata/SessionOperationType.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SessionTemplate.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ShieldedInstanceConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SoftwareConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkBatch.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkConnectConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkHistoryServerConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkRBatch.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkRJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkSqlBatch.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SparkSqlJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/StartClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/StartupConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/StopClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/SubmitJobRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/TemplateParameter.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/TerminateSessionRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/TrinoJob.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UpdateAutoscalingPolicyRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UpdateClusterRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UpdateJobRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UpdateSessionTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UpdateWorkflowTemplateRequest.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UsageMetrics.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/UsageSnapshot.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/ValueValidation.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/VirtualClusterConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowGraph.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowMetadata.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowMetadata/State.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowNode.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowNode/NodeState.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowTemplate.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowTemplate/EncryptionConfig.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/WorkflowTemplatePlacement.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/YarnApplication.php create mode 100644 owl-bot-staging/Dataproc/v1/proto/src/Google/Cloud/Dataproc/V1/YarnApplication/State.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/create_autoscaling_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/delete_autoscaling_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/get_autoscaling_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/list_autoscaling_policies.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/AutoscalingPolicyServiceClient/update_autoscaling_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/create_batch.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/delete_batch.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/get_batch.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/list_batches.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/BatchControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/create_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/delete_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/diagnose_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/get_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/list_clusters.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/start_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/stop_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/ClusterControllerClient/update_cluster.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/cancel_job.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/delete_job.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/get_job.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/list_jobs.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/submit_job.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/submit_job_as_operation.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/JobControllerClient/update_job.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/create_node_group.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/get_node_group.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/resize_node_group.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/NodeGroupControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/create_session.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/delete_session.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/get_session.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/list_sessions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/terminate_session.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/create_session_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/delete_session_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/get_session_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/list_session_templates.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/SessionTemplateControllerClient/update_session_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/create_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/delete_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/get_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/instantiate_inline_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/instantiate_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/list_workflow_templates.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataproc/v1/samples/V1/WorkflowTemplateServiceClient/update_workflow_template.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/AutoscalingPolicyServiceClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/BatchControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/ClusterControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/JobControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/NodeGroupControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/SessionControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/SessionTemplateControllerClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/Client/WorkflowTemplateServiceClient.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/autoscaling_policy_service_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/autoscaling_policy_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/autoscaling_policy_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/batch_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/batch_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/batch_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/cluster_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/cluster_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/cluster_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/job_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/job_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/job_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/node_group_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/node_group_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/node_group_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_template_controller_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_template_controller_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/session_template_controller_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/workflow_template_service_client_config.json create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/workflow_template_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataproc/v1/src/V1/resources/workflow_template_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/BatchControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/ClusterControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/JobControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/NodeGroupControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/SessionControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php create mode 100644 owl-bot-staging/Dataproc/v1/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/GPBMetadata/Google/Cloud/Datastream/V1/Datastream.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/GPBMetadata/Google/Cloud/Datastream/V1/DatastreamResources.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/AvroFileFormat.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BackfillJob.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BackfillJob/State.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BackfillJob/Trigger.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BigQueryDestinationConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BigQueryDestinationConfig/SingleTargetDataset.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BigQueryDestinationConfig/SourceHierarchyDatasets.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BigQueryDestinationConfig/SourceHierarchyDatasets/DatasetTemplate.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/BigQueryProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ConnectionProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/CreateConnectionProfileRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/CreatePrivateConnectionRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/CreateRouteRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/CreateStreamRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DeleteConnectionProfileRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DeletePrivateConnectionRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DeleteRouteRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DeleteStreamRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DestinationConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DiscoverConnectionProfileRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/DiscoverConnectionProfileResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Error.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/FetchStaticIpsRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/FetchStaticIpsResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ForwardSshTunnelConnectivity.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GcsDestinationConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GcsProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GetConnectionProfileRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GetPrivateConnectionRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GetRouteRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GetStreamObjectRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/GetStreamRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/JsonFileFormat.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/JsonFileFormat/JsonCompression.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/JsonFileFormat/SchemaFileFormat.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListConnectionProfilesRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListConnectionProfilesResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListPrivateConnectionsRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListPrivateConnectionsResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListRoutesRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListRoutesResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListStreamObjectsRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListStreamObjectsResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListStreamsRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ListStreamsResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/LookupStreamObjectRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlColumn.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlDatabase.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlRdbms.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlSourceConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlSslConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/MysqlTable.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleColumn.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleRdbms.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleSchema.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleSourceConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleSourceConfig/DropLargeObjects.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleSourceConfig/StreamLargeObjects.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/OracleTable.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlColumn.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlProfile.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlRdbms.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlSchema.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlSourceConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PostgresqlTable.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PrivateConnection.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PrivateConnection/State.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/PrivateConnectivity.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Route.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/SourceConfig.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/SourceObjectIdentifier.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/SourceObjectIdentifier/MysqlObjectIdentifier.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/SourceObjectIdentifier/OracleObjectIdentifier.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/SourceObjectIdentifier/PostgresqlObjectIdentifier.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StartBackfillJobRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StartBackfillJobResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StaticServiceIpConnectivity.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StopBackfillJobRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StopBackfillJobResponse.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Stream.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Stream/BackfillAllStrategy.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Stream/BackfillNoneStrategy.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Stream/State.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/StreamObject.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/UpdateConnectionProfileRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/UpdateStreamRequest.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Validation.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/Validation/State.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ValidationMessage.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ValidationMessage/Level.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/ValidationResult.php create mode 100644 owl-bot-staging/Datastream/v1/proto/src/Google/Cloud/Datastream/V1/VpcPeeringConfig.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/create_connection_profile.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/create_private_connection.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/create_route.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/create_stream.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/delete_connection_profile.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/delete_private_connection.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/delete_route.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/delete_stream.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/discover_connection_profile.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/fetch_static_ips.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_connection_profile.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_location.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_private_connection.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_route.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_stream.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/get_stream_object.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_connection_profiles.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_locations.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_private_connections.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_routes.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_stream_objects.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/list_streams.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/lookup_stream_object.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/start_backfill_job.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/stop_backfill_job.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/update_connection_profile.php create mode 100644 owl-bot-staging/Datastream/v1/samples/V1/DatastreamClient/update_stream.php create mode 100644 owl-bot-staging/Datastream/v1/src/V1/Client/DatastreamClient.php create mode 100644 owl-bot-staging/Datastream/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Datastream/v1/src/V1/resources/datastream_client_config.json create mode 100644 owl-bot-staging/Datastream/v1/src/V1/resources/datastream_descriptor_config.php create mode 100644 owl-bot-staging/Datastream/v1/src/V1/resources/datastream_rest_client_config.php create mode 100644 owl-bot-staging/Datastream/v1/tests/Unit/V1/Client/DatastreamClientTest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/GPBMetadata/Google/Cloud/Developerconnect/V1/DeveloperConnect.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/Connection.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/CreateConnectionRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/CreateGitRepositoryLinkRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/DeleteConnectionRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/DeleteGitRepositoryLinkRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitHubInstallationsRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitHubInstallationsResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitHubInstallationsResponse/Installation.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitRefsRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitRefsRequest/RefType.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchGitRefsResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchLinkableGitRepositoriesRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchLinkableGitRepositoriesResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchReadTokenRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchReadTokenResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchReadWriteTokenRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/FetchReadWriteTokenResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/GetConnectionRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/GetGitRepositoryLinkRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/GitHubConfig.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/GitHubConfig/GitHubApp.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/GitRepositoryLink.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/InstallationState.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/InstallationState/Stage.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/LinkableGitRepository.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/ListConnectionsRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/ListConnectionsResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/ListGitRepositoryLinksRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/ListGitRepositoryLinksResponse.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/OAuthCredential.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/OperationMetadata.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/proto/src/Google/Cloud/DeveloperConnect/V1/UpdateConnectionRequest.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/create_connection.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/create_git_repository_link.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/delete_connection.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/delete_git_repository_link.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/fetch_git_hub_installations.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/fetch_git_refs.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/fetch_linkable_git_repositories.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/fetch_read_token.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/fetch_read_write_token.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/get_connection.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/get_git_repository_link.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/get_location.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/list_connections.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/list_git_repository_links.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/list_locations.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/samples/V1/DeveloperConnectClient/update_connection.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/src/V1/Client/DeveloperConnectClient.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/DeveloperConnect/v1/src/V1/resources/developer_connect_client_config.json create mode 100644 owl-bot-staging/DeveloperConnect/v1/src/V1/resources/developer_connect_descriptor_config.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/src/V1/resources/developer_connect_rest_client_config.php create mode 100644 owl-bot-staging/DeveloperConnect/v1/tests/Unit/V1/Client/DeveloperConnectClientTest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/GPBMetadata/Google/Cloud/Clouddms/V1/Clouddms.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/GPBMetadata/Google/Cloud/Clouddms/V1/ClouddmsResources.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/GPBMetadata/Google/Cloud/Clouddms/V1/ConversionworkspaceResources.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbSettings.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbSettings/EncryptionConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbSettings/PrimaryInstanceSettings.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbSettings/PrimaryInstanceSettings/MachineConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AlloyDbSettings/UserPassword.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ApplyConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ApplyHash.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/AssignSpecificValue.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry/ApplyJobDetails.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry/ConvertJobDetails.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry/ImportRulesJobDetails.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry/JobCompletionState.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobLogEntry/SeedJobDetails.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/BackgroundJobType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings/Edition.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings/SqlActivationPolicy.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings/SqlAvailabilityType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings/SqlDataDiskType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CloudSqlSettings/SqlDatabaseVersion.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ColumnEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CommitConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConditionalColumnSetValue.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConnectionProfile/State.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConstraintEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConversionWorkspace.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConversionWorkspaceInfo.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConvertConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ConvertRowIdToColumn.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CreateConnectionProfileRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CreateConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CreateMappingRuleRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CreateMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/CreatePrivateConnectionRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEngine.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEngineInfo.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEntity/TreeType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEntityType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseEntityView.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseInstanceEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseProvider.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DatabaseType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DeleteConnectionProfileRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DeleteConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DeleteMappingRuleRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DeleteMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DeletePrivateConnectionRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DescribeConversionWorkspaceRevisionsRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DescribeConversionWorkspaceRevisionsResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DescribeDatabaseEntitiesRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DescribeDatabaseEntitiesRequest/DBTreeType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DescribeDatabaseEntitiesResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/DoubleComparisonFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityDdl.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityIssue.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityIssue/IssueSeverity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityIssue/IssueType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityIssue/Position.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityMapping.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityMappingLogEntry.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityMove.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/EntityNameTransformation.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/FetchStaticIpsRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/FetchStaticIpsResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/FilterTableColumns.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ForwardSshTunnelConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/FunctionEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GenerateSshScriptRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GenerateTcpProxyScriptRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GetConnectionProfileRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GetConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GetMappingRuleRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GetMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/GetPrivateConnectionRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ImportMappingRulesRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ImportMappingRulesRequest/RulesFile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ImportRulesFileFormat.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/IndexEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/IntComparisonFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListConnectionProfilesRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListConnectionProfilesResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListConversionWorkspacesRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListConversionWorkspacesResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListMappingRulesRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListMappingRulesResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListMigrationJobsRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListMigrationJobsResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListPrivateConnectionsRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ListPrivateConnectionsResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MappingRule.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MappingRule/State.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MappingRuleFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MaterializedViewEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/DumpFlag.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/DumpFlags.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/PerformanceConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/PerformanceConfig/DumpParallelLevel.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/Phase.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/State.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJob/Type.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJobVerificationError.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MigrationJobVerificationError/ErrorCode.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MultiColumnDatatypeChange.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MultiEntityRename.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/MySqlConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/NetworkArchitecture.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/NumericFilterOption.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/OracleConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PackageEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PostgreSqlConnectionProfile.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PrivateConnection.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PrivateConnection/State.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PrivateConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PrivateServiceConnectConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/PromoteMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/RestartMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ResumeMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ReverseSshConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/RollbackConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/RoundToScale.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SchemaEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SearchBackgroundJobsRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SearchBackgroundJobsResponse.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SeedConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SequenceEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SetTablePrimaryKey.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SingleColumnChange.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SingleEntityRename.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SinglePackageChange.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SourceNumericFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SourceSqlChange.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SourceTextFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SqlAclEntry.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SqlIpConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SshScript.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SslConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SslConfig/SslType.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/StartMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/StaticIpConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/StaticServiceIpConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/StopMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/StoredProcedureEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/SynonymEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/TableEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/TcpProxyScript.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/TriggerEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/UDTEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/UpdateConnectionProfileRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/UpdateConversionWorkspaceRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/UpdateMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ValueComparison.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ValueListFilter.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ValuePresentInList.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ValueTransformation.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/VerifyMigrationJobRequest.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/ViewEntity.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/VmCreationConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/VmSelectionConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/VpcPeeringConfig.php create mode 100644 owl-bot-staging/Dms/v1/proto/src/Google/Cloud/CloudDms/V1/VpcPeeringConnectivity.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/apply_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/commit_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/convert_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/create_connection_profile.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/create_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/create_mapping_rule.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/create_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/create_private_connection.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/delete_connection_profile.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/delete_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/delete_mapping_rule.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/delete_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/delete_private_connection.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/describe_conversion_workspace_revisions.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/describe_database_entities.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/fetch_static_ips.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/generate_ssh_script.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/generate_tcp_proxy_script.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/get_connection_profile.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/get_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/get_mapping_rule.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/get_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/get_private_connection.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/import_mapping_rules.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/list_connection_profiles.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/list_conversion_workspaces.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/list_mapping_rules.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/list_migration_jobs.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/list_private_connections.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/promote_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/restart_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/resume_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/rollback_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/search_background_jobs.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/seed_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/start_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/stop_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/update_connection_profile.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/update_conversion_workspace.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/update_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/samples/V1/DataMigrationServiceClient/verify_migration_job.php create mode 100644 owl-bot-staging/Dms/v1/src/V1/Client/DataMigrationServiceClient.php create mode 100644 owl-bot-staging/Dms/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Dms/v1/src/V1/resources/data_migration_service_client_config.json create mode 100644 owl-bot-staging/Dms/v1/src/V1/resources/data_migration_service_descriptor_config.php create mode 100644 owl-bot-staging/Dms/v1/src/V1/resources/data_migration_service_rest_client_config.php create mode 100644 owl-bot-staging/Dms/v1/tests/Unit/V1/Client/DataMigrationServiceClientTest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/GPBMetadata/Google/Api/Cloudquotas/V1/Cloudquotas.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/GPBMetadata/Google/Api/Cloudquotas/V1/Resources.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/CreateQuotaPreferenceRequest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/DimensionsInfo.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/GetQuotaInfoRequest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/GetQuotaPreferenceRequest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/ListQuotaInfosRequest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/ListQuotaInfosResponse.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/ListQuotaPreferencesRequest.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/ListQuotaPreferencesResponse.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaConfig.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaConfig/Origin.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaDetails.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaIncreaseEligibility.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaIncreaseEligibility/IneligibilityReason.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaInfo.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaInfo/ContainerType.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaPreference.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/QuotaSafetyCheck.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/RolloutInfo.php create mode 100644 owl-bot-staging/Quotas/v1/proto/src/Google/Cloud/CloudQuotas/V1/UpdateQuotaPreferenceRequest.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/create_quota_preference.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/get_quota_info.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/get_quota_preference.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/list_quota_infos.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/list_quota_preferences.php create mode 100644 owl-bot-staging/Quotas/v1/samples/V1/CloudQuotasClient/update_quota_preference.php create mode 100644 owl-bot-staging/Quotas/v1/src/V1/Client/CloudQuotasClient.php create mode 100644 owl-bot-staging/Quotas/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Quotas/v1/src/V1/resources/cloud_quotas_client_config.json create mode 100644 owl-bot-staging/Quotas/v1/src/V1/resources/cloud_quotas_descriptor_config.php create mode 100644 owl-bot-staging/Quotas/v1/src/V1/resources/cloud_quotas_rest_client_config.php create mode 100644 owl-bot-staging/Quotas/v1/tests/Unit/V1/Client/CloudQuotasClientTest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/CheckError.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/Distribution.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/HttpRequest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/LogEntry.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/MetricValue.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/Operation.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/QuotaController.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/GPBMetadata/Google/Api/Servicecontrol/V1/ServiceController.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/AllocateQuotaRequest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/AllocateQuotaResponse.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckError.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckError/Code.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckRequest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckResponse.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckResponse/CheckInfo.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckResponse/ConsumerInfo.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/CheckResponse/ConsumerInfo/ConsumerType.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Distribution.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Distribution/ExplicitBuckets.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Distribution/ExponentialBuckets.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Distribution/LinearBuckets.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/HttpRequest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/LogEntry.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/LogEntryOperation.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/LogEntrySourceLocation.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/MetricValue.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/MetricValueSet.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Operation.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/Operation/Importance.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/QuotaError.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/QuotaError/Code.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/QuotaOperation.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/QuotaOperation/QuotaMode.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/ReportRequest.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/ReportResponse.php create mode 100644 owl-bot-staging/ServiceControl/v1/proto/src/Google/Cloud/ServiceControl/V1/ReportResponse/ReportError.php create mode 100644 owl-bot-staging/ServiceControl/v1/samples/V1/QuotaControllerClient/allocate_quota.php create mode 100644 owl-bot-staging/ServiceControl/v1/samples/V1/ServiceControllerClient/check.php create mode 100644 owl-bot-staging/ServiceControl/v1/samples/V1/ServiceControllerClient/report.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/Client/QuotaControllerClient.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/Client/ServiceControllerClient.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/quota_controller_client_config.json create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/quota_controller_descriptor_config.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/quota_controller_rest_client_config.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/service_controller_client_config.json create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/service_controller_descriptor_config.php create mode 100644 owl-bot-staging/ServiceControl/v1/src/V1/resources/service_controller_rest_client_config.php create mode 100644 owl-bot-staging/ServiceControl/v1/tests/Unit/V1/Client/QuotaControllerClientTest.php create mode 100644 owl-bot-staging/ServiceControl/v1/tests/Unit/V1/Client/ServiceControllerClientTest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/GPBMetadata/Google/Api/Servicemanagement/V1/Resources.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/GPBMetadata/Google/Api/Servicemanagement/V1/Servicemanager.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ChangeReport.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ConfigFile.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ConfigFile/FileType.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ConfigRef.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ConfigSource.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/CreateServiceConfigRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/CreateServiceRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/CreateServiceRolloutRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/DeleteServiceRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Diagnostic.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Diagnostic/Kind.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/EnableServiceResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GenerateConfigReportRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GenerateConfigReportResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GetServiceConfigRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GetServiceConfigRequest/ConfigView.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GetServiceRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/GetServiceRolloutRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServiceConfigsRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServiceConfigsResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServiceRolloutsRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServiceRolloutsResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServicesRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ListServicesResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/ManagedService.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/OperationMetadata.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/OperationMetadata/Status.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/OperationMetadata/Step.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Rollout.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Rollout/DeleteServiceStrategy.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Rollout/RolloutStatus.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/Rollout/TrafficPercentStrategy.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/SubmitConfigSourceRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/SubmitConfigSourceResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/UndeleteServiceRequest.php create mode 100644 owl-bot-staging/ServiceManagement/v1/proto/src/Google/Cloud/ServiceManagement/V1/UndeleteServiceResponse.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/create_service.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/create_service_config.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/create_service_rollout.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/delete_service.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/generate_config_report.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/get_iam_policy.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/get_service.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/get_service_config.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/get_service_rollout.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/list_service_configs.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/list_service_rollouts.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/list_services.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/set_iam_policy.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/submit_config_source.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/test_iam_permissions.php create mode 100644 owl-bot-staging/ServiceManagement/v1/samples/V1/ServiceManagerClient/undelete_service.php create mode 100644 owl-bot-staging/ServiceManagement/v1/src/V1/Client/ServiceManagerClient.php create mode 100644 owl-bot-staging/ServiceManagement/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/ServiceManagement/v1/src/V1/resources/service_manager_client_config.json create mode 100644 owl-bot-staging/ServiceManagement/v1/src/V1/resources/service_manager_descriptor_config.php create mode 100644 owl-bot-staging/ServiceManagement/v1/src/V1/resources/service_manager_rest_client_config.php create mode 100644 owl-bot-staging/ServiceManagement/v1/tests/Unit/V1/Client/ServiceManagerClientTest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/GPBMetadata/Google/Api/Serviceusage/V1/Resources.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/GPBMetadata/Google/Api/Serviceusage/V1/Serviceusage.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/BatchEnableServicesRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/BatchEnableServicesResponse.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/BatchEnableServicesResponse/EnableFailure.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/BatchGetServicesRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/BatchGetServicesResponse.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/DisableServiceRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/DisableServiceRequest/CheckIfServiceHasUsage.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/DisableServiceResponse.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/EnableServiceRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/EnableServiceResponse.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/GetServiceRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/ListServicesRequest.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/ListServicesResponse.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/OperationMetadata.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/Service.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/ServiceConfig.php create mode 100644 owl-bot-staging/ServiceUsage/v1/proto/src/Google/Cloud/ServiceUsage/V1/State.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/batch_enable_services.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/batch_get_services.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/disable_service.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/enable_service.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/get_service.php create mode 100644 owl-bot-staging/ServiceUsage/v1/samples/V1/ServiceUsageClient/list_services.php create mode 100644 owl-bot-staging/ServiceUsage/v1/src/V1/Client/ServiceUsageClient.php create mode 100644 owl-bot-staging/ServiceUsage/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/ServiceUsage/v1/src/V1/resources/service_usage_client_config.json create mode 100644 owl-bot-staging/ServiceUsage/v1/src/V1/resources/service_usage_descriptor_config.php create mode 100644 owl-bot-staging/ServiceUsage/v1/src/V1/resources/service_usage_rest_client_config.php create mode 100644 owl-bot-staging/ServiceUsage/v1/tests/Unit/V1/Client/ServiceUsageClientTest.php diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/BillingAccounts.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/BillingAccounts.php new file mode 100644 index 000000000000..f65eeb3b4cec --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/BillingAccounts.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +Š +.google/cloud/channel/v1/billing_accounts.protogoogle.cloud.channel.v1google/api/resource.protogoogle/protobuf/timestamp.proto"Œ +BillingAccount +name ( BàA + display_name ( 4 + create_time ( 2.google.protobuf.TimestampBàA + currency_code ( BàA + region_code ( BàA:eêAb +*cloudchannel.googleapis.com/BillingAccount4accounts/{account}/billingAccounts/{billing_account}Bl +com.google.cloud.channel.v1BBillingAccountsProtoPZ5cloud.google.com/go/channel/apiv1/channelpb;channelpbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ChannelPartnerLinks.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ChannelPartnerLinks.php new file mode 100644 index 0000000000000000000000000000000000000000..86151bdca8d0beb7b2b4e560f52a2e2d5017dfe6 GIT binary patch literal 1824 zcmbVNTW`}!5I(uk(y7j&_<@EVBo?S>T7gXqyricf=h7aFkVZ|K2V}|GIGc8bvumx_ zMNs88@E3XJ7x2igFKJKHO4ad;H{O|VX1@7m^3VJ5G=yj9fG{GkBqKEZisUIlq2QAH zJV3*EJSGD9d=k=t2os^^A?h6VQLE|npD5Re$HFHybi(;bKrBDt@yPN|F=HgK&bITT z7h)k*5HFzYb7Us?01Qt^6k?yCgKqsJk$8k9b`KILx1pijMhfK)ws!&i07ntZK6O*X zwg!ZAKqLEG{!+h6wbWuIA*@2oFVOS$b3@WL@B1W zT@Sh9Vh`o1bu~ST8rNZx2!;cRRTs-`*CYI8~M zAt_>VIXXgu$XKx5BySBcot@lkh_gfL?o$$s>f{ukQ7&q=i>fX_ZgM>$Sx;~6b+uD& zgHI-$-9GG$&puUxka!Ya@0;}Di2PzqFVA&T$8GE{{${lsHyt9@^%4;@fO->6@UU8@f zKl56+o!0|cN~c{HyLgd<>%z0FW3!!el^r(bmAgrptvtD_tu`Ba`#2e)j`B#7t%;vD zhg2B3E>a?uBqCF-No$@zV-Nd2kC}|D^XxRu_u}OxW}RP6T(@ny^$s4)gAOS9V%&q} z<4&*JYB>8&tGV)ru>^POcF$?76pXu2-al@)SBhKTV0GRfaudt-%6wu`vJAR~PjAznnKa3Rsz>y6ni Zc#$sDOZ!(30`;%iy@_SIA*V0}_zh_KQB42< literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Common.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Common.php new file mode 100644 index 0000000000000000000000000000000000000000..19d938d9fa7b2b46df7434a90c68013be078daf7 GIT binary patch literal 1899 zcmb7F>u%#j6mFW{a?(p`y1Ut3u?(Tob_F;WC`c&<<<{0hO`;~Pw5v$g#Ga%hoEgiP zpnxjz8oUL6c^Sl`a6ERh?Y5Pc{IUJzeBYe={P2@|?ZOx2lnLh1fZ1d?Bf&Kzt|tR& zNrw!>(TI7(k`tFZ%+m>Jc1XL^C#|N@{~W2l3_Xig$ymy$G~%y+59$Z5BJ&H`%FfDTR-chHEqgGS69T$PUiEQk6&X($c&9SHv1aOiN0 z_yG;@vCn;z3m$Ol@ZZq?V=|(S&yafGb`%OL;8Ku?&=D3pctc{%$adeA81FHed((|l zfZ-1e5in0sXV7H6<#9KVUKdTP)iDbeiHnefH_5S)93PQ`*vD%1o|DHU@IrR`bV589 zgq}E3en$c~i?_i8xvIH*aKf2m*V#3la_Lp8@1uGz@(^_qSWV0xW~o$s{Uc8Tui5q@ z&J*l{gN0|2pReJc4D5eQ`L$=Um9CmZPntxZmR~$i=&DOF=S3=Jamy6`O2c}~4x88~ z+6ioP;Riej17-#@m*rC=b+BF0^+$yDgsB^IS|3?=b$slb{PO?R=^;zof%RY6(B}cm zr%@nNID@UbC%u9fM!VNH`j`Ed*?-$@nV0Qex79FCj8-$Zq^(2x=W->N(zXFE+s0Mv zqG$Bq=9UY8r*289!|q7+jCUVOp@KroX1P>C#T;zL-=(s7h{&?G3tI{~LR6 zk<{9-WrcnqC(OHDyYC;Z-8~7tk?>U!U&6NQ@d@>2rY$Fwi+m=kK|TF%Evb?wBhKvn3L0$02G3xJI%=-5l^D{U{8~iU_F&V!mV%igoD7+lUsvc8*m9^Chjh$L zOWG{Iq2O1rOYI34hzVah%nUuAhv={PlnQJxJ2ayumw$?Iwn82aH)+*E12*r(`6)ba zT=x2%^VY>f9R#q}?3~w(HkNz?R{E{lIkwNADOkOtPRO(;ki|Lv?pt#jeX4;;pDkhS zHvPckVw~X70Aym^mbhVAf=7LwLi|g}s^LuFD3jUB-aMH3-0HYe(0C7Ei2E?HT}9iC zv!(hPto*`-jR9tAQPM7b=4o578fQP6cX+gT8?LFizInaacVESO S`_`I&bj2&ncoE;g4ZwdBr8GtW literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Customers.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Customers.php new file mode 100644 index 000000000000..804cf781f623 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Customers.php @@ -0,0 +1,56 @@ +internalAddGeneratedFile( + ' +« +\'google/cloud/channel/v1/customers.protogoogle.cloud.channel.v1google/api/resource.proto$google/cloud/channel/v1/common.protogoogle/protobuf/timestamp.proto google/type/postal_address.proto"î +Customer +name ( BàA +org_display_name ( BàA; +org_postal_address ( 2.google.type.PostalAddressBàAB +primary_contact_info ( 2$.google.cloud.channel.v1.ContactInfo +alternate_email (  +domain ( BàA4 + create_time ( 2.google.protobuf.TimestampBàA4 + update_time ( 2.google.protobuf.TimestampBàA +cloud_identity_id ( BàA + language_code + ( BàAL +cloud_identity_info ( 2*.google.cloud.channel.v1.CloudIdentityInfoBàA +channel_partner_id (  +correlation_id ( BàA:RêAO +$cloudchannel.googleapis.com/Customer\'accounts/{account}/customers/{customer}" + ContactInfo + +first_name (  + last_name (  + display_name ( BàA +email (  +title ( BàA +phone ( Bf +com.google.cloud.channel.v1BCustomersProtoPZ5cloud.google.com/go/channel/apiv1/channelpb;channelpbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/EntitlementChanges.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/EntitlementChanges.php new file mode 100644 index 0000000000000000000000000000000000000000..76e17539b4cd4cb0bb0fddbf7d5b8ac2da03d77e GIT binary patch literal 2713 zcmb7GT~FLb6b+w&yFeCGl?{|;fJi_;c15bR)lyn{y#u(}wJqC_q*}=`-T^Eb+p@h# zNrn2S`rNDHrFvU4hE6Kn&dnP&OO#}ykO98I2X3> zGp}*A+hBg;CLX)Qr^R2Nv$&q31NinOi$mLCZ(^**4R7`nX!mwEjbyRfg^AZj*m zc69?XDpY5=p%0F_YgBK@p!ng*OI1x5t0J*4!w<)%ZhZT*n`q9Vgqm0(m;G;)EuLnzx zjWzFicy4ZBA%)$42yDi#E)AiS@NZzz#{;Ab8!GIkQ`E-z>sI3*ar{4V2YOqnvxTvlbm(bZ$41u}QcU;}rUKppYvU=vP71II z>mQ3(d4O;POK9(v%e`WKD`wG^>#*7c;#6LIJ#z1O4vH8f3lV;W3TJxGtmIwDYLkfY zK*I}X(r6Qdg$80_;UtKKC0CnD*{l?7ih8ViE z-)hu4Rt$|w@_|g-)ki`F9!okEO&p8~%dn*BvP3PdBPy2hS~jI4oR|r|nyanY1853|NGVk>PNPV=ECnes`B{g@9WQITk;gR?Wj6Q~%kj!URn z0a>O{V#hM5Y0AoBISIlVJk>{6EC`D*pG_8to@~5_xm%tgFIA(uXsY^$ z#NC8v(y?KxU8>`z^b;K-F=?m!e{Nb#mhm z^x$425qOGBR>Z?SqL&6fZkvqu73oc?cV#8_8{g}+lLi_`vc^?FJ;#O5psJy^To_Xq z72^O2Ol@qWS_ZfNbNmpjK JlWVvJ_#d*VOW*(i literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Entitlements.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Entitlements.php new file mode 100644 index 0000000000000000000000000000000000000000..a9d3b3ff11fb3268aa26c298b95a3a64ca507695 GIT binary patch literal 3676 zcmbtX-BQ~|6t4LjI0Ryr{3tX{6o*M5CH6p?Ovh>3k&OVg#CB~#CK=DDvb4ZXWJ#kR zI+Wod`V5`vGxV;#>3ih5kC5K7S~bL3vUw?_ln^7=k=Xi%2r^`_it>ax17>32{y^y0vxRe9g@_8nTW z951#j)`97|)Ttb*tH_& zxiVL1x)xnpmIWr4UGzOX`!jjqQ;UZKL($dThz73dbk}KU1OPIKAo7)^ z<=l*t+OfW*1dk;b1!c8J%A>!vhaTZV2142iar4%%c;(=8Y8pspKm^? zg@@m=H1mpWXNlgxmRQPC!xMEM{<;beF5U~|x{xg=eN#^RrhK@%a3cjVeO3w542k|( zSj@x6F2yu_Ov+1Qol4!y!@^cg0-DO*PUUbp>4Zu&h?)>6{W}TMLmf)yV2ro9RFDfx zQ?=1I$|(5?rmcV?%@|x+8poaKwS}@k7BJXj|8wE(#r$N4&oZw!rO`VGm;wy~Qpoo`)XED42(0k_YdD8U+W+@j&IaSb5 zo;(5Y%>b(v$vu=7@Zi&HrCjaSK$P5s%RS~eJh!H0d9fQwH?!lF+AxJGj|c$F1?wZv`lx z4K}$0UkDivYP40QgMaTrUIWrrJL>kf+BUR?rfX<*9pNv-wBFW~Z9^Cs!6Qj+wV}Si zr5BpMW#}(ks!>-Ob#=QqN*3T6cZEByH#>$>ud6McZx+YM6pT0ZEwx>=tNuSqAG-HH z)N4akPHJiJ!pd>_byBh7F!K7Cj>_@i^W>dbqH>JwIhZU?N(M}w=H=2b_mGD$erP%| zl}3`XxRsmOT`ong!X&j>WcC~?jiSb6QfH-?aQST6Y(TNcYkSC%l`x}C2~1LoPKZJ2q7zOc2&6Z%WtUHO!-mj1**=z-~mI5+XLcV5Tjd$E^s&ccB0UWw-T1N)g5clKy3XlON#V9_ZQLfYHSS^cttMqFD zCd4O}6;kFoRGQC$1#$)1`G*|?-$#bJt!-+xZM8UpqtFarJ>~IH@&NADx0FUh-8NcE zTW=sOb0uX*-)gqCSL(X4(QF&2RUE4^_#6k4ywlX?hNv_|8i~AC;nia?pQNJ|s#o^C y>{W&X4?fJ&A;|AN&AxgQNGXx`=zccSu87CU&|8KNG0ZyW9g|3k*TxB)0Q?8RHJZZ! literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Offers.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Offers.php new file mode 100644 index 0000000000000000000000000000000000000000..69ae176a8c16f3a955aaec3d2590a0a3d439548f GIT binary patch literal 4022 zcmb7H+j81g6fMR$W`i+NZp67MBuyMQfr;BBExB|A2uH0!8jzEw!;D52$F?Ry(n!J$ z&G@y`>HqYhGyRWF-}>CI=srgmI}VCnzZk?``?~fzN6)@>_guKeZxEY!dO$|}_LL9y z2=97M;24g@Z%=l1h{qew*flNU)p))w^F3MR#kQp0M5ymfJcBg&UB}tANZqiU$*6AZ z>9$R*`u@YZL-Br%IRvovG4Wm9ApC~X?2484nVAx@cVu!5|JAC!YQ^mEfAgj!CRhlkDmHrsFjlhgBUqNrU!D zG`CZujt^(pa>irFK7H7a9AJY-6C?0X?;;tAY9fsSee9kdt4>`q>^e4?&c?9uKX_qA z!xl!PWVRh-{%SG}I-9%jdj)QvhVtB{(5l83qZTbjZU5oQuBL(pZztRrFz;Hr zU72UL*HUd2G~&L2g5lVH;ORITM086toDr!MF@bzT`d8?{O@@xi8V(hC>erBf z^^g%ab;EEb*yj5C=+i-@_4W5m^AD=OX5rkds2`H452eF`Cf7({;;K|;2j1bGZ4-LjmY$S8zS#!ogzEMPNt2a=@mei5NcKI_d4>_r)KK`nl;Q$r}YG3MY zl;`N@w!GEc6w6tz0B4%AyeSI3@_h9T6ppg}J2-Dl{Jj=!mcC zUl}+z<2iQ;mgDYtWEZRTQ9ZJ#9eDgC)tDI3HkH=X zg+&RCk7H>n5xGyqvVtDNQXJQq8dgl@8|h^b&vZuIBPa$Q-iS1peUHTRL>NwN+q5hy z>d{Iw3C&mk$iVV(se1-Xu}-ocv!kK3{&{L{u}HGY9zc%CZFF#?Zww2I!d_(Nn!Bg_ zNEABG!uqY$SPZ35+v;x_$c0Ys0BqwEjd^0}7S_4g1)WWeT@N^1&yndfabxLa@DN%i zcm>7F<9-Ye&#qbU72wFb@WvR1(k7nCMv$-modGz^jr$r3;e?KM@Do+BX|n#EhvJUu z`N+p`!u0&jap$0b_vPdv%`wL%tv*TA!Y)0*oY+Aan0RlG6s;P!>Ely{+Nx+;H6hPD z&@bFYD24gO9AW*=aTj2TWtcn;6Hjss+j;^WswylfA=BxsCiv!p@)AWj)>G=g^eLt! zJzX2a`B^f+@o-h?%UxNO4w2p`19- z2CpTx^|G8@dkcl5I&l>$itwf@_Eb&T6ne+>z68*cyIo1824R5Cruc(IrGAcEg!xWi zq@s`K0-goJW_h0Kzuf6;N}>bJyMeZjm2qCoRK1KF;yg{dyU+(r`o04Y9m{OIaLjH3zM}q|iB(&#Z0WDka0?uD~Tl>`QWcRvs9=&8orn zbmgA%|iJ0iPQ)jCG+E>a0TLvF5ZWBo#cHN?@0K{8{M1S l?Wf77?FBrU0_V%S$!o;@@D=dL8)NF*BC`zN=?>rk;6H0o+wlMZ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Operations.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Operations.php new file mode 100644 index 0000000000000000000000000000000000000000..f3c2ea6f2fdd513403833cd059eed5f49619677f GIT binary patch literal 1169 zcma)5?P}CO6m_kiS8da1ZMC9fTj&-vOBF%3u97CRF|eD2WV%vW2-)oHZXnHsd=#qm zwR{ZU#CLF#Y-4LJm_Hfr+;i@kd+z=4DW1i!i8LC~#LMUyjZRQDqbN>T#(Wl{Q9hZ_ z1o`YJ4nmqp2&pDAOoFhglb0NtvOMu=8%-IThP35}EFZW0nHNPgY#r~mSX?j%EJ~%4 z6d>}BXc~JyMVhtWr$fTjK8~s&J z91AOYSI4SwO?(WZVq=+L7aK$;J>2Jip&_ors`6PjH0;{gz+dE^>tI53Lvw_M0^|_c zCaxvxD!;G?x`Kt9;u<`X6`~LRrn@b!!b9hP*EQ4&b?%h)WkbQe3-P<+6Ida(Y&czP zpTBVg5I5n)Kd)S3x|(TfJuKW41-L)gZ+1C{uqdv;@;qY6w%o@A+m5g#K7%#OHV3*> zG)U>02db;9WiJi|VSftid~2`rV}Ge`c3Muj)%g0ZGXKm$cGQ}(dX>F6;M+VOjCizH fpGLRJy?(o0kKe0ms?ROKl?za2R8e}r%3fD0 zRX&3s;CJ|weg$iLlLnPkJdlTYLcPFqb`ah zmg=!iqb?1oq?pm~s)rKtF^h;wz8UMsfh#EwP?FFJTvFIV8D5k81X1&l{0FP;wSV@JX>v_&Ez3|E8nyD2p>w zy-lsRd0x!_$ibXe%UFczMDEob$`$5~Jy<@&;VF?c=qtT^zIs=^U)bI-Ct#V)VR%DD z+q+lg53rUN9M;Pcv7nKu9BK{g8baH}y40sZ{#OpBj!xtM%gHFhoUX7sl{SMWHlxYe zm85t(U4`9)wkzn|uJ2vwBu;6LKD$l3$o;Tj9 zP~zj5$u8r4u8BXJNW4iriu1=XlOBvEn2}Vnp{n;_&gIHqfzgu8jTHXqM}>mE1moCrbQD zb@rF^;3M^vyq){@KJ)C*bjmk8IDI)pX&C$-h$`*KR-zV;R M8kw!-00scR0fjZY!~g&Q literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ReportsService.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/ReportsService.php new file mode 100644 index 0000000000000000000000000000000000000000..5b934a3afcbf3abb94b181ca8c19f038a7e8c6c1 GIT binary patch literal 4958 zcmbVQOK%%h6zihggDGz=keZ@e>dW&V9_(j_o#SHW|-7=iKx7&Ueq92XA}Z z9$Zrws6%}tq;+-UKn=I4>iKTyny#&GM4Ow`S50@ek?%}%znOu< zxcru-Ni`w-P-8S|t*FTwRg-X;M+sUJd zsI7PmuqTUj(RH@`$Z;%Z>y`8q08}jmZ)og##}B)D;L+MFw%9AEgt*;F)u?Ih8VJeb zqJaCiMH zg@WN($Sw@0f2S#jbF2 zLy9P{l5vDcE9a$^5MfY2s*^mJ%^rQv6py$sbVNbrQk)aMw9Bd{7IHr+FjR>g!ISU0 z8x{IVgpQCmp^Gu@sG=(4nbO2FE%mQ9205PWIM>1z%w~{Bx-SSD1R0F^tNVttMMqPp z-#3-Z3)z-pW_^H|8(1&~KwiWNcC0bnA4qD_JY1MwQ%G z3Jf>L5O~OFl)M2TP80oOcY}xWB3F_ekOep=^>*b!Bjd<-j6*0RPepbZ#K#l&?pp;e z&ePD`ZW4*}thKn9DNXWh*KWY|m!}&`M$SXVW4Q_N{Nj#wi)3B^;O|3shdPZ3y#!}H z!w>Pya~*w$9t4=tG?tlVoBRBY0@-#x%e=P955q~{)Cu!LCZNlA_XBh~joPnu&aS&p zF2Fg5ej4gWL*foU0kUWXp-6EMCl}F#aUuao7-M{?lV|H?@T3O$N{)D z4=>GHyn$^PX}qY#6Sg7mz_902lh*NU*BdM_YB`n#UX;HS=$UctXxG7tWN`e&C*7(G zxRGHvQ?~-oHV$;orM#HPj~U$0&>0o;raU_}-myl)IAckpit@P~I2}Kei!d^)RW-f( zcy&&HZ+UHXZl*k6o|_#wMF4u%s+IEc!hk}0Azfas4x~sQ^v2nT3McZ zJkUi>Ll@ea8|WtekYP`HwY)Sp(8DAA9btz%3XUfCVI>)r80&B5&*fk_8-z<6yCI zYOmrVnSvpqMV)$sj=*OJok<{;v*+RkfWcYr#naU{HQ2HZxdj8Uc)STeCE5w|xYi+E zK~lL7J$r_YC!XxlvDoy{sUj~Ryv~Hl2=q7cC&!{_)BhCcYZN^XXM)gYAmjT8WIQ^B z2VDk7Bl(hLB8@L6p}#JUZMh)uJRCbE(kdiS{3i7Aqg)CL=#nO3KA@o}9wwqsgcsc$ z<*j){$vbck;YoE?R%y70OSdo7qf;!MrC#XfmUEw_;Eaf05DO_nH{&A#k+V~`V)r^E zSZL+hKT7fdsEftt7!!EO#s=ciDbFy5V!Ix>4X0W4xwJ^#3#4;v&@HwZfx)#Z!+moT zVZY$(N)9F)`};Dt$vwk}!fm|Vc|l&}D9H2E z1%DZJ*Rc;uJ8%i_Bb`c88fpeHzof4!AHFW?9bZ)NLbK&2-=%PK1eNsG+n7$CHhMS@ h-Mf+8XK#xyGYubdkeu*CQ=5-CTvB{&IfO%i{{dK!J0<`C literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Repricing.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Repricing.php new file mode 100644 index 0000000000000000000000000000000000000000..38196573d89a1f9e1569ae9a9341e166ee8023d6 GIT binary patch literal 3137 zcmd5;Pj4DW6gN1Dkgw<8urNF2em_peArLkn!zaMp zLO&@;+qxlDm31jt2sm8`Ib9g!N6cp~G49IXRqp_>_!33&KV2?=<>2>@6+ga_D(8 z>ig;Vy+gqYsV!}OBI5wp$&a`I4jBsKu@C8-&#t}4ty{O8-~{*0c| zL+jMyjGJ@>|N77+mTwZ5@$>AhfMPErip>_@EKLiwiJkhy%&P@ugdWdCbIH%`z>j)k zKbJ`}OJByFR0dgd)n4D#zF;E$V)rlp$E_~`Y=ds7VIBe9a%L~dfx?5>> zx_Y^*A2mAN<&=^|Yt=@(R_W@M*PU+jxYpK%#By34K+m#ANnxnqJKUs$C9IWt^M%AS zn&~iChj!Gni!f_p`wp9+)7y`~dUt}!{bDO#jdtW7I<>YYuB?HiTr4lp1w#J;OV}fL literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Service.php b/owl-bot-staging/Channel/v1/proto/src/GPBMetadata/Google/Cloud/Channel/V1/Service.php new file mode 100644 index 0000000000000000000000000000000000000000..7e02d5f6bc992a865e762c134476649dee8c976b GIT binary patch literal 24345 zcmd5kTWlOzR$ESH;#_AE`zD?^j+5z>y@}&Vx|7aiCTS;`X+PreCKG$(B+F*J(`t8@ z?OM01daA1JWCsg&cnArQK)ds|A1glCUHAbZA+aDN1oIP+kd_soL5Pu91lm77_<#?@ zxvzTOTV3645c{*4_PO_-_c`~RbL-aI&CMnn&n+01;Z!}No?CmK^EQoK)3H6fW;b$c zt@U-o$<^%brr9u@d@eV)lzXuBC^tX1_~;xgb?uf@GfKG)+umpxg<8XI)eE)Fs%06C z!p_x#YdAY*&B)Uo5wfb=hTE*xjNHQV%zK7ctyjJ3>H=N7I!hL>&a%a;Pp(cQRBKdS zH@CtzK_8(U{IA(sYnZj1>s3AYzX{W=n3n08)rR>Epx}0Hz1naMSet}hZ&@|Zw5=Rj zuw>PY$%{F*CxM-4+CcH`oIq!pFaa2_x@dWZV^tfgbB0@U%%*2M%K%y`Z5W=NCb>b;q=w&XztjxSC`}GOh}%GiIY)G3e(+d*wmS=hmV;f{jsM|31X|rCoSt5?3 zrwy9KCv~RV3GRXo*ITuo^yQ(^bj%v)UUnhhx2+AQWm&Ljb*T$7e9r@RKfm4do@YPW zUrNpOy{fwGaTSl2*BaKg#Rh8LTZgUj7pVz3=V%y z1Y;x=3aB2oP!iG5HINz}m7)l{=>}d`Jr_eZDFo-Ge9Yn(6|B)%q zHYhxU&^>g1cGIYBQJ=6_r>uQ0;>Y|m)Ab%2AGQqF!^hFfAawv3(Q?}4;h6)Um;1<% zb$h#NS|feIk2!Q4oWXY0d0wg3w@s^J07PTtpn%Zy|IpA_C(snvOCt%sQ)uHt%}KMf`2d!@Pp7&?|IW0c?p&t zExyH#Bw>>I2&RkHx}6v3K7!@=B03j0i{#NS6ZG_NYH0OBTYkGuNL38{1f7iSBdioy za$s_xcs(1&0$I*m{X=x(KCo8&?4}C%Rdl#n-7qRHq>YsIFA>3O_#{H~chBB3EXI8H z2hfOhvjM4KSl;VsICdnb@eOoX$jjwaol{fA1rCQFvy5jRcp<=yVL;VSUq*Pr@F^37 zmC!+|B1~^Df!_XC`8=AS%oU!OSrPbFHxFriK`=)L%x4_~vVQT4*i>o`H&DMIhcauR z*q$0{NczVb8h+e_JU?+z*L&gu8feiiE5zWbkOqpQg1y2g_fwg+fCa^$YogKJl_2R&Y_{0-h=5<^QNo<2wm=A`h|n(0~o1%Kx?ZlZ?V z>^i1rRLu1Xbv`cj4E^*}{2Ib>D+jcwSu@4I6O#QQiV0|%mRZwgjsw}kqY0;_ z|GS3HEIam&=|YM(OL7I_qlF%ZkL^Oi@d7#?=QemauDw%2Stv*-O-cGhd<7kB!9A9% znXX(}CL!T5KoTFm1NTv)^cCA`Jf|L`U;h;ioh063J_z%^kGd5LLLC`1?$nv-HX2D{ z!d+Jh9SJ2O!h209=?;;jc3_`t=rlR;kyEu?xEfT~8pg_2%cuXe%r>YVgUX)_1vcvN zs2ZwlVJP9*F-|&l;^;#rLqa7D{Th*819Gnx@xe8_Zg5+84W02g@{UojBvtxn(U_b< z&evHqBsL(_S6m>UhlWWdb7TBcGx)#3pyJ1~OPDaI&R9$t(j$up(E%Vb@FjhCG|pS* zP-x^GL&suS`-t!Ow3)W-hd^^y#Q-h=a0w9!u!NY)K{g*ZL8WCp_27CsW=aPF($K|Zw1`3Z)^|6SY`;knxPn-PgnLh}(80|)f&gh8 zbewj}?eO~=n#zJZx5jF+Dic>OfI3;EQ&5)$D`vz!VYP>*xGAT}Ot5_4Eo*g^Rn_3Kw&2*Urf)>jn z1pgrlPOAqxbgo92%L-kEgtc^~St9qtchGOc$|V@N)Psh-_xW5w`DvndVJ1vCilF9KX~IW)bx z4;0mPso3r^tV0S7Z86NSq9qO?Knd4wh*}A2yIrK2**K&;q(ls4lfj~RX2xnVQGOrj zgx?x&!&apofb&Tdt%8!4K95eWc+gQ^uA21~HpP@eyHfM+f(xs{yiz0N47%B80i9ZD zxlO~W_qfr!XtWHYR69`M?s2E52;aButyVLl7;{n2N<+d-=LN54=r{?m&}X1iAcAEl z&>^W?FIGo!2yMrB0^ytY zbnI&LIyIm#qVY5X5+{Wi!_1FXvm!Yi@rTk*X+V6EF(FUz6*L&2%$YKU4nnLKmzFUl zLsqt0YG(YdhK9(_RF8aiNJB(~AVR2=puqD>uWe~mlAfBoY429nTQJiHj+zc$j1b2_ zn{Jx^HBkEyvYZil^fCu!eegDwVl^}V@Fg@#_Frb9BA!rt=yZ+tek(?hzf?qA;fc(9 zN;#-^&L=W0j)4K4giThhg{}%EGB}TLdZ4(_)p;}?Q<;ZO>a}$kQ4pfoQUwXLI;jgm zrZjpLolDn8sf{+!011v{YJd!W5T!m^e7H{> z%`;rcObELu&m$E4gik|S^ltgV!hGe?SC{82j~}co&(AL2U7VjA`~n_8haN94JS@-6 z4{9*#a(Hg(D-YOz_RS2TV?yUDc9YEd>Cai0kW(D!EjN%d8ssbD7oyb*N@Am%sf}hD z9gTrr3~nR?#ZG4uyq&bEr%NBz$BeRE}V@+L&R&k4%N4Oa{c@b$? z__(N)ZG1nqQGmrIfIIAGK11VQZW+$=`G&b+LgSm<`Qb)V=98HsE9=#1!)1bI5#*-D zQaas26X_>&Cf-HIVW}UGq7@!B7awg`!17au~ml&XRHtkS``v zgHufyPjUH0@tRU}QSOQJ$?%^30UA~R6~B|bsSx!aD5kj1=yv)NI`z=lfV{$RR$6Q1 zF~pkT2>FGQ$EaC};*7|-eY5J*Uq_>|4Y^ogGSah~W{rhL{mba|W6Rms^Dm<@`Id4F zD(F?>hXdMu?=B}kl1F4nH1+q{fKcQBDJrx+#x9gXk(lZnmYFj3G5T-w36ao^jYV;v zinn8zhmLPtonNA)ok=muA;Xlj14cQ*xhqS4#1%q4%8}Sn#xAO$#ZMoC&nHy}!X&6V z@cTRdv4&nDS|G}RF21ZZ)(9Lol+k=va7LLaKr0pYi~F}a1Q zy@F_Cx=(N7x8y+LO%{}y{AVwbrTB%0212cJtR55yK?#!7RdB&2ee1I_9afDHLx#CR zqy&@zZay&yASRC}DUqf4-=M3|W*Qm4trSC>m4fJZy5E3Hc7`(JmaY)mUa6Ko!Cum) z@IPwkD7#+>R%5k-MF9mN8Kn1&V(RGab+F_Q3O}7y5!O~4gH13DiXM$N(^Ke+0(L;( zuWFRQU(||I)PRIZDhJ zKA*_bmqal$oMQ4!Bl79ZDW;wYptclI-Hc91r_d1v6m)c;o0D?a7xIrKla6bH*??}| zk%PC_O@9;o_ZoT?YG;xmW~^@c$`=TF&j`7N-p1tpM`ZfOi}D%N?_2ti{}=I?ma1`C zzZKC&m5VKba!8OTZUt(Kv``lcm@ZZiqmV!s1{LI7739$JV|dOwxq>^z8hqHz^U<^n6w#7@~v>XkH$L6d|MyDMlX!6liB^TIx|n zNw}v#O(I$Xew+B$p+rp%t93O2D-dmCtslH7=g>fy6AFX9u6L~Mgw>FW4zd*9Zy%-^ zX&f{o6?RrC?&@W#E**#hGMs2bm5}w%@MMVL8tXD*wMk0hGZN@!CGehpw@U(Jgb*r0 z2?rR~)OJ!5?hsT)ioTweA`vM%7a2ubC}F(GnGz}DpcyIpUsXc*PD7+eOUU|bXjvzl zrMRdJB}w3nq^)Na)@}Vp$Li;@elMZuZ;987w~^DlUK}h_N59#zu&TVLPKbgY&sSBi|BY;qtL@OK&-CEB2P9#T^3vU-ug zUwuzioTlFkS10dac70CJ61q}|0#R%>oGRH*!KYD!lauDA__VZTg1XyE&ZMvArvBb% zW&XVjDmX!G!sa9X+y9R^z4((pbS7R_j65~LYJ5}I3359Z=EvG+5}-8`UMgGKJX=8j?BuJ)OFqS9PcF*IuRQ@vUJe`*N6q!){ZF>}G{oq(co&GawM|`n~Kl7x{p{X;i*(WxY z+CJ*Sp93Rh$x3!cW?0=TBmbC$n_3nI{-##kX705ObkfVp^stQ@60h49FZ@sN*n&IJ z$QjvLoME+KvC0ugozv9*IwyFyK^yikn!{eOwQ1PP$Y2KzNBj{bs7SlpQ8MuArBrRHz#=J`uz-u7&ab9+Wsk z)BPzW&JdJ9z0L5mevkU3c|1!k$_N@kif&iD3s7nV?+!40zw8L%B{b*ga6Z12$~XZg za7~{8381-xoS>*5#YYJ0O>yKe!J|AbPZz6S-UtwJwt7A-faK>+&~wk?G0HOT#>M$W zdLT*{|GI_{S;~7)>S3AyNZ_Krz=vTuHs>ieIea#ZO?a-wrepIYJ!H=~f;mS}TsNh> zM-B^3EfQ#fVR|btv52Eurl?M1R?-v6u|m;UhcC7j{!1v9#PH$_RyQ@I@PZO`+*d5) zw9HakZsTdn_D*TxIR7hLannXCQ?9sa%LHxeD`Wa ziYa}7B(R`LU5}Qn;j~<$w4CRYH{3iznzvUHBax)2@&`~gmQ6IKRE=fe0%Nsm%2#om z^AzVveVp=NhI7jwBU~zI*$F*Xnekh7v+A`zm=1#TqsPEiwvDb zNS-lz??w4^%7d{Vm8Uj6uj!Twh27m<9x43~Wspb2@Ri@Do2L&{XX^0s!QNKI)0rcD zuo9xAXD@3{ud`7R-ajJWtlY3grb|8^3?Y*z+s(CU|6gk_Lmcz$YZv@47hhuESPy-Y X9ol^G$#}`<*eN9YZ2BJBL+F11Q6E6}k1vxTq^W{&cZiLljkT_B|HPqLoTol*YexO=2E`BRq4<6j9+3arB7MH1a~HONF?E#i_}!w%g~FRk0K&jb{0*pbMtB zQTW(y-*WN@voxpkuVb82mZ#C7^ji>IS1acmK_f}vjA)sU_7_24@KVpq--FV7GMQA) z9`o!rDthtQ9{jTk%Ku9%+A8iVvJ8~643w+=osTtGSM!X;mo$~BLx-^Hmj~N5Tx+a# znxDvX*p<*3vY_*lAX9h=wq^|IHGr%pm%UHu_A-Y*IQXS>_SWOd3??5|Y!2Bug}dU9 zHethlXKL=LVVRn$AM09oV+lQlC+0{WkkLE0I~)+*aMcrH^ti2tp25})+nF{hfXh1{ z?!bl?v4Dm2lGkUUlt7)YXJ@6@7oSKIoW1XZwOWv3Z6sGY5sTlyQ1r`qK-6T zOO;#jn5$GZ*X$F+wchHsdcqBN&=WxFa4^vAfo9lMSneW@9%+X5mS4Ju)?v*$KKQS!LC6=Z4jITWW0dYw)yGqQ8a((B&8a%u)SkN1IFssgDZppOO z51ucK`Bz1DvV@M|(OlL`5>cu3gXTh#n~6JF>a4&$S?Zk-p79=71nq3zkRXSZS^M+X zq8De4$-C%0t_C#kEIy;lZcE08)oOfS&goZs)l7I%45+zzws4loo5k3google.cloud.channel.v1.ActivateEntitlementRequest + */ +class ActivateEntitlementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to activate. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 $name + * Required. The resource name of the entitlement to activate. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to activate. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to activate. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/AdminUser.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AdminUser.php new file mode 100644 index 000000000000..5b412358a488 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AdminUser.php @@ -0,0 +1,135 @@ +google.cloud.channel.v1.AdminUser + */ +class AdminUser extends \Google\Protobuf\Internal\Message +{ + /** + * Primary email of the admin user. + * + * Generated from protobuf field string email = 1; + */ + protected $email = ''; + /** + * Given name of the admin user. + * + * Generated from protobuf field string given_name = 2; + */ + protected $given_name = ''; + /** + * Family name of the admin user. + * + * Generated from protobuf field string family_name = 3; + */ + protected $family_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $email + * Primary email of the admin user. + * @type string $given_name + * Given name of the admin user. + * @type string $family_name + * Family name of the admin user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Primary email of the admin user. + * + * Generated from protobuf field string email = 1; + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * Primary email of the admin user. + * + * Generated from protobuf field string email = 1; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Given name of the admin user. + * + * Generated from protobuf field string given_name = 2; + * @return string + */ + public function getGivenName() + { + return $this->given_name; + } + + /** + * Given name of the admin user. + * + * Generated from protobuf field string given_name = 2; + * @param string $var + * @return $this + */ + public function setGivenName($var) + { + GPBUtil::checkString($var, True); + $this->given_name = $var; + + return $this; + } + + /** + * Family name of the admin user. + * + * Generated from protobuf field string family_name = 3; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * Family name of the admin user. + * + * Generated from protobuf field string family_name = 3; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AssociationInfo.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AssociationInfo.php new file mode 100644 index 000000000000..58cc984b0350 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/AssociationInfo.php @@ -0,0 +1,67 @@ +google.cloud.channel.v1.AssociationInfo + */ +class AssociationInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the base entitlement, for which this entitlement is an add-on. + * + * Generated from protobuf field string base_entitlement = 1 [(.google.api.resource_reference) = { + */ + protected $base_entitlement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $base_entitlement + * The name of the base entitlement, for which this entitlement is an add-on. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * The name of the base entitlement, for which this entitlement is an add-on. + * + * Generated from protobuf field string base_entitlement = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getBaseEntitlement() + { + return $this->base_entitlement; + } + + /** + * The name of the base entitlement, for which this entitlement is an add-on. + * + * Generated from protobuf field string base_entitlement = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBaseEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->base_entitlement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillableSku.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillableSku.php new file mode 100644 index 000000000000..6775115bdb11 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillableSku.php @@ -0,0 +1,193 @@ +google.cloud.channel.v1.BillableSku + */ +class BillableSku extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of Billable SKU. Format: + * billableSkus/{sku}. + * Example: + * billableSkus/6E1B-6634-470F". + * + * Generated from protobuf field string sku = 1; + */ + protected $sku = ''; + /** + * Unique human readable name for the SKU. + * + * Generated from protobuf field string sku_display_name = 2; + */ + protected $sku_display_name = ''; + /** + * Resource name of Service which contains Repricing SKU. Format: + * services/{service}. + * Example: + * "services/B7D9-FDCB-15D8". + * + * Generated from protobuf field string service = 3; + */ + protected $service = ''; + /** + * Unique human readable name for the Service. + * + * Generated from protobuf field string service_display_name = 4; + */ + protected $service_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sku + * Resource name of Billable SKU. Format: + * billableSkus/{sku}. + * Example: + * billableSkus/6E1B-6634-470F". + * @type string $sku_display_name + * Unique human readable name for the SKU. + * @type string $service + * Resource name of Service which contains Repricing SKU. Format: + * services/{service}. + * Example: + * "services/B7D9-FDCB-15D8". + * @type string $service_display_name + * Unique human readable name for the Service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of Billable SKU. Format: + * billableSkus/{sku}. + * Example: + * billableSkus/6E1B-6634-470F". + * + * Generated from protobuf field string sku = 1; + * @return string + */ + public function getSku() + { + return $this->sku; + } + + /** + * Resource name of Billable SKU. Format: + * billableSkus/{sku}. + * Example: + * billableSkus/6E1B-6634-470F". + * + * Generated from protobuf field string sku = 1; + * @param string $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkString($var, True); + $this->sku = $var; + + return $this; + } + + /** + * Unique human readable name for the SKU. + * + * Generated from protobuf field string sku_display_name = 2; + * @return string + */ + public function getSkuDisplayName() + { + return $this->sku_display_name; + } + + /** + * Unique human readable name for the SKU. + * + * Generated from protobuf field string sku_display_name = 2; + * @param string $var + * @return $this + */ + public function setSkuDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->sku_display_name = $var; + + return $this; + } + + /** + * Resource name of Service which contains Repricing SKU. Format: + * services/{service}. + * Example: + * "services/B7D9-FDCB-15D8". + * + * Generated from protobuf field string service = 3; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Resource name of Service which contains Repricing SKU. Format: + * services/{service}. + * Example: + * "services/B7D9-FDCB-15D8". + * + * 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; + } + + /** + * Unique human readable name for the Service. + * + * Generated from protobuf field string service_display_name = 4; + * @return string + */ + public function getServiceDisplayName() + { + return $this->service_display_name; + } + + /** + * Unique human readable name for the Service. + * + * Generated from protobuf field string service_display_name = 4; + * @param string $var + * @return $this + */ + public function setServiceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->service_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccount.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccount.php new file mode 100644 index 000000000000..91b31c36f504 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccount.php @@ -0,0 +1,217 @@ +google.cloud.channel.v1.BillingAccount + */ +class BillingAccount extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the billing account. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Display name of the billing account. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Output only. The time when this billing account was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The 3-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $currency_code = ''; + /** + * Output only. The CLDR region code. + * + * Generated from protobuf field string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $region_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the billing account. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * @type string $display_name + * Display name of the billing account. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when this billing account was created. + * @type string $currency_code + * Output only. The 3-letter currency code defined in ISO 4217. + * @type string $region_code + * Output only. The CLDR region code. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\BillingAccounts::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the billing account. + * Format: accounts/{account_id}/billingAccounts/{billing_account_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 of the billing account. + * Format: accounts/{account_id}/billingAccounts/{billing_account_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; + } + + /** + * Display name of the billing account. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the billing account. + * + * 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 time when this billing account 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 when this billing account 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; + } + + /** + * Output only. The 3-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * Output only. The 3-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 4 [(.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 CLDR region code. + * + * Generated from protobuf field string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Output only. The CLDR region code. + * + * Generated from protobuf field string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccountPurchaseInfo.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccountPurchaseInfo.php new file mode 100644 index 000000000000..8263a70b749d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/BillingAccountPurchaseInfo.php @@ -0,0 +1,77 @@ +google.cloud.channel.v1.BillingAccountPurchaseInfo + */ +class BillingAccountPurchaseInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The billing account resource. + * + * Generated from protobuf field .google.cloud.channel.v1.BillingAccount billing_account = 1; + */ + protected $billing_account = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\BillingAccount $billing_account + * The billing account resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The billing account resource. + * + * Generated from protobuf field .google.cloud.channel.v1.BillingAccount billing_account = 1; + * @return \Google\Cloud\Channel\V1\BillingAccount|null + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + public function hasBillingAccount() + { + return isset($this->billing_account); + } + + public function clearBillingAccount() + { + unset($this->billing_account); + } + + /** + * The billing account resource. + * + * Generated from protobuf field .google.cloud.channel.v1.BillingAccount billing_account = 1; + * @param \Google\Cloud\Channel\V1\BillingAccount $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\BillingAccount::class); + $this->billing_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CancelEntitlementRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CancelEntitlementRequest.php new file mode 100644 index 000000000000..a80839e799ca --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CancelEntitlementRequest.php @@ -0,0 +1,146 @@ +google.cloud.channel.v1.CancelEntitlementRequest + */ +class CancelEntitlementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to cancel. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 $name + * Required. The resource name of the entitlement to cancel. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to cancel. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to cancel. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeOfferRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeOfferRequest.php new file mode 100644 index 000000000000..84766268efc5 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeOfferRequest.php @@ -0,0 +1,310 @@ +google.cloud.channel.v1.ChangeOfferRequest + */ +class ChangeOfferRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. New Offer. + * Format: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $offer = ''; + /** + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + /** + * Optional. Purchase order id provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $purchase_order_id = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. The billing account resource name that is used to pay for this + * entitlement when setting up billing on a trial subscription. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $billing_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $offer + * Required. New Offer. + * Format: accounts/{account_id}/offers/{offer_id}. + * @type array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * @type string $purchase_order_id + * Optional. Purchase order id provided by the reseller. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * @type string $billing_account + * Optional. The billing account resource name that is used to pay for this + * entitlement when setting up billing on a trial subscription. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. New Offer. + * Format: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getOffer() + { + return $this->offer; + } + + /** + * Required. New Offer. + * Format: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkString($var, True); + $this->offer = $var; + + return $this; + } + + /** + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Optional. Purchase order id provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPurchaseOrderId() + { + return $this->purchase_order_id; + } + + /** + * Optional. Purchase order id provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPurchaseOrderId($var) + { + GPBUtil::checkString($var, True); + $this->purchase_order_id = $var; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.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 billing account resource name that is used to pay for this + * entitlement when setting up billing on a trial subscription. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Optional. The billing account resource name that is used to pay for this + * entitlement when setting up billing on a trial subscription. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeParametersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeParametersRequest.php new file mode 100644 index 000000000000..e513cf5986c1 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeParametersRequest.php @@ -0,0 +1,229 @@ +google.cloud.channel.v1.ChangeParametersRequest + */ +class ChangeParametersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. Entitlement parameters to update. You can only change editable + * parameters. + * To view the available Parameters for a request, refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $parameters; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. Purchase order ID provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $purchase_order_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters + * Required. Entitlement parameters to update. You can only change editable + * parameters. + * To view the available Parameters for a request, refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * @type string $purchase_order_id + * Optional. Purchase order ID provided by the reseller. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. Entitlement parameters to update. You can only change editable + * parameters. + * To view the available Parameters for a request, refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Required. Entitlement parameters to update. You can only change editable + * parameters. + * To view the available Parameters for a request, refer to the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + * from the desired offer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. Purchase order ID provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPurchaseOrderId() + { + return $this->purchase_order_id; + } + + /** + * Optional. Purchase order ID provided by the reseller. + * + * Generated from protobuf field string purchase_order_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPurchaseOrderId($var) + { + GPBUtil::checkString($var, True); + $this->purchase_order_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeRenewalSettingsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeRenewalSettingsRequest.php new file mode 100644 index 000000000000..3d76dff9e4fd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChangeRenewalSettingsRequest.php @@ -0,0 +1,190 @@ +google.cloud.channel.v1.ChangeRenewalSettingsRequest + */ +class ChangeRenewalSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. New renewal settings. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $renewal_settings = null; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type \Google\Cloud\Channel\V1\RenewalSettings $renewal_settings + * Required. New renewal settings. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to update. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. New renewal settings. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RenewalSettings|null + */ + public function getRenewalSettings() + { + return $this->renewal_settings; + } + + public function hasRenewalSettings() + { + return isset($this->renewal_settings); + } + + public function clearRenewalSettings() + { + unset($this->renewal_settings); + } + + /** + * Required. New renewal settings. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RenewalSettings $var + * @return $this + */ + public function setRenewalSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RenewalSettings::class); + $this->renewal_settings = $var; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLink.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLink.php new file mode 100644 index 000000000000..7f10cc256cae --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLink.php @@ -0,0 +1,344 @@ +google.cloud.channel.v1.ChannelPartnerLink + */ +class ChannelPartnerLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for the channel partner link, in the format + * accounts/{account_id}/channelPartnerLinks/{id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Cloud Identity ID of the linked reseller. + * + * Generated from protobuf field string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reseller_cloud_identity_id = ''; + /** + * Required. State of the channel partner link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $link_state = 0; + /** + * Output only. URI of the web page where partner accepts the link invitation. + * + * Generated from protobuf field string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invite_link_uri = ''; + /** + * Output only. Timestamp of when the channel partner link is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp of when the channel partner link is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Public identifier that a customer must use to generate a + * transfer token to move to this distributor-reseller combination. + * + * Generated from protobuf field string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $public_id = ''; + /** + * Output only. Cloud Identity info of the channel partner (IR). + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $channel_partner_cloud_identity_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for the channel partner link, in the format + * accounts/{account_id}/channelPartnerLinks/{id}. + * @type string $reseller_cloud_identity_id + * Required. Cloud Identity ID of the linked reseller. + * @type int $link_state + * Required. State of the channel partner link. + * @type string $invite_link_uri + * Output only. URI of the web page where partner accepts the link invitation. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp of when the channel partner link is created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp of when the channel partner link is updated. + * @type string $public_id + * Output only. Public identifier that a customer must use to generate a + * transfer token to move to this distributor-reseller combination. + * @type \Google\Cloud\Channel\V1\CloudIdentityInfo $channel_partner_cloud_identity_info + * Output only. Cloud Identity info of the channel partner (IR). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ChannelPartnerLinks::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for the channel partner link, in the format + * accounts/{account_id}/channelPartnerLinks/{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 the channel partner link, in the format + * accounts/{account_id}/channelPartnerLinks/{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; + } + + /** + * Required. Cloud Identity ID of the linked reseller. + * + * Generated from protobuf field string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getResellerCloudIdentityId() + { + return $this->reseller_cloud_identity_id; + } + + /** + * Required. Cloud Identity ID of the linked reseller. + * + * Generated from protobuf field string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setResellerCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->reseller_cloud_identity_id = $var; + + return $this; + } + + /** + * Required. State of the channel partner link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLinkState() + { + return $this->link_state; + } + + /** + * Required. State of the channel partner link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLinkState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ChannelPartnerLinkState::class); + $this->link_state = $var; + + return $this; + } + + /** + * Output only. URI of the web page where partner accepts the link invitation. + * + * Generated from protobuf field string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInviteLinkUri() + { + return $this->invite_link_uri; + } + + /** + * Output only. URI of the web page where partner accepts the link invitation. + * + * Generated from protobuf field string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInviteLinkUri($var) + { + GPBUtil::checkString($var, True); + $this->invite_link_uri = $var; + + return $this; + } + + /** + * Output only. Timestamp of when the channel partner link is 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. Timestamp of when the channel partner link is 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. Timestamp of when the channel partner link is 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. Timestamp of when the channel partner link is 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. Public identifier that a customer must use to generate a + * transfer token to move to this distributor-reseller combination. + * + * Generated from protobuf field string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPublicId() + { + return $this->public_id; + } + + /** + * Output only. Public identifier that a customer must use to generate a + * transfer token to move to this distributor-reseller combination. + * + * Generated from protobuf field string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPublicId($var) + { + GPBUtil::checkString($var, True); + $this->public_id = $var; + + return $this; + } + + /** + * Output only. Cloud Identity info of the channel partner (IR). + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Channel\V1\CloudIdentityInfo|null + */ + public function getChannelPartnerCloudIdentityInfo() + { + return $this->channel_partner_cloud_identity_info; + } + + public function hasChannelPartnerCloudIdentityInfo() + { + return isset($this->channel_partner_cloud_identity_info); + } + + public function clearChannelPartnerCloudIdentityInfo() + { + unset($this->channel_partner_cloud_identity_info); + } + + /** + * Output only. Cloud Identity info of the channel partner (IR). + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Channel\V1\CloudIdentityInfo $var + * @return $this + */ + public function setChannelPartnerCloudIdentityInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CloudIdentityInfo::class); + $this->channel_partner_cloud_identity_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkState.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkState.php new file mode 100644 index 000000000000..44ab28d9db5c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkState.php @@ -0,0 +1,76 @@ +google.cloud.channel.v1.ChannelPartnerLinkState + */ +class ChannelPartnerLinkState +{ + /** + * Not used. + * + * Generated from protobuf enum CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED = 0; + */ + const CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED = 0; + /** + * An invitation has been sent to the reseller to create a channel partner + * link. + * + * Generated from protobuf enum INVITED = 1; + */ + const INVITED = 1; + /** + * Status when the reseller is active. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * Status when the reseller has been revoked by the distributor. + * + * Generated from protobuf enum REVOKED = 3; + */ + const REVOKED = 3; + /** + * Status when the reseller is suspended by Google or distributor. + * + * Generated from protobuf enum SUSPENDED = 4; + */ + const SUSPENDED = 4; + + private static $valueToName = [ + self::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED => 'CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED', + self::INVITED => 'INVITED', + self::ACTIVE => 'ACTIVE', + self::REVOKED => 'REVOKED', + self::SUSPENDED => 'SUSPENDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkView.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkView.php new file mode 100644 index 000000000000..b733155cae0c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerLinkView.php @@ -0,0 +1,65 @@ +google.cloud.channel.v1.ChannelPartnerLinkView + */ +class ChannelPartnerLinkView +{ + /** + * The default / unset value. + * The API will default to the BASIC view. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Includes all fields except the + * [ChannelPartnerLink.channel_partner_cloud_identity_info][google.cloud.channel.v1.ChannelPartnerLink.channel_partner_cloud_identity_info]. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Includes all fields. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + + private static $valueToName = [ + self::UNSPECIFIED => '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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerRepricingConfig.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerRepricingConfig.php new file mode 100644 index 000000000000..82fa0f5c3053 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ChannelPartnerRepricingConfig.php @@ -0,0 +1,180 @@ +google.cloud.channel.v1.ChannelPartnerRepricingConfig + */ +class ChannelPartnerRepricingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the ChannelPartnerRepricingConfig. + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to ChannelPartner. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repricing_config = null; + /** + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the ChannelPartnerRepricingConfig. + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. + * @type \Google\Cloud\Channel\V1\RepricingConfig $repricing_config + * Required. The configuration for bill modifications made by a reseller + * before sending it to ChannelPartner. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the ChannelPartnerRepricingConfig. + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{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 of the ChannelPartnerRepricingConfig. + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{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; + } + + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to ChannelPartner. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RepricingConfig|null + */ + public function getRepricingConfig() + { + return $this->repricing_config; + } + + public function hasRepricingConfig() + { + return isset($this->repricing_config); + } + + public function clearRepricingConfig() + { + unset($this->repricing_config); + } + + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to ChannelPartner. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RepricingConfig $var + * @return $this + */ + public function setRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingConfig::class); + $this->repricing_config = $var; + + return $this; + } + + /** + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * 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. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistRequest.php new file mode 100644 index 000000000000..39dde78e6f22 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistRequest.php @@ -0,0 +1,152 @@ +google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest + */ +class CheckCloudIdentityAccountsExistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Domain to fetch for Cloud Identity account customers, including + * domain and team customers. For team customers, please use the domain for + * their emails. + * + * Generated from protobuf field string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $domain = ''; + /** + * Optional. Primary admin email to fetch for Cloud Identity account team + * customer. + * + * Generated from protobuf field string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $primary_admin_email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * @type string $domain + * Required. Domain to fetch for Cloud Identity account customers, including + * domain and team customers. For team customers, please use the domain for + * their emails. + * @type string $primary_admin_email + * Optional. Primary admin email to fetch for Cloud Identity account team + * customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_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; + } + + /** + * Required. Domain to fetch for Cloud Identity account customers, including + * domain and team customers. For team customers, please use the domain for + * their emails. + * + * Generated from protobuf field string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDomain() + { + return $this->domain; + } + + /** + * Required. Domain to fetch for Cloud Identity account customers, including + * domain and team customers. For team customers, please use the domain for + * their emails. + * + * Generated from protobuf field string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Optional. Primary admin email to fetch for Cloud Identity account team + * customer. + * + * Generated from protobuf field string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrimaryAdminEmail() + { + return $this->primary_admin_email; + } + + /** + * Optional. Primary admin email to fetch for Cloud Identity account team + * customer. + * + * Generated from protobuf field string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrimaryAdminEmail($var) + { + GPBUtil::checkString($var, True); + $this->primary_admin_email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistResponse.php new file mode 100644 index 000000000000..12ef087cacf0 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CheckCloudIdentityAccountsExistResponse.php @@ -0,0 +1,68 @@ +google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse + */ +class CheckCloudIdentityAccountsExistResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The Cloud Identity accounts associated with the domain. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityCustomerAccount cloud_identity_accounts = 1; + */ + private $cloud_identity_accounts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Channel\V1\CloudIdentityCustomerAccount>|\Google\Protobuf\Internal\RepeatedField $cloud_identity_accounts + * The Cloud Identity accounts associated with the domain. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Identity accounts associated with the domain. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityCustomerAccount cloud_identity_accounts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCloudIdentityAccounts() + { + return $this->cloud_identity_accounts; + } + + /** + * The Cloud Identity accounts associated with the domain. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityCustomerAccount cloud_identity_accounts = 1; + * @param array<\Google\Cloud\Channel\V1\CloudIdentityCustomerAccount>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCloudIdentityAccounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\CloudIdentityCustomerAccount::class); + $this->cloud_identity_accounts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityCustomerAccount.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityCustomerAccount.php new file mode 100644 index 000000000000..d0826c87fe24 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityCustomerAccount.php @@ -0,0 +1,258 @@ +google.cloud.channel.v1.CloudIdentityCustomerAccount + */ +class CloudIdentityCustomerAccount extends \Google\Protobuf\Internal\Message +{ + /** + * Returns true if a Cloud Identity account exists for a specific domain. + * + * Generated from protobuf field bool existing = 1; + */ + protected $existing = false; + /** + * Returns true if the Cloud Identity account is associated with a customer + * of the Channel Services partner. + * + * Generated from protobuf field bool owned = 2; + */ + protected $owned = false; + /** + * If owned = true, the name of the customer that owns the Cloud Identity + * account. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer_name = 3; + */ + protected $customer_name = ''; + /** + * If existing = true, the Cloud Identity ID of the customer. + * + * Generated from protobuf field string customer_cloud_identity_id = 4; + */ + protected $customer_cloud_identity_id = ''; + /** + * If existing = true, the type of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5; + */ + protected $customer_type = 0; + /** + * If existing = true, and is 2-tier customer, the channel partner of the + * customer. + * + * Generated from protobuf field string channel_partner_cloud_identity_id = 6; + */ + protected $channel_partner_cloud_identity_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $existing + * Returns true if a Cloud Identity account exists for a specific domain. + * @type bool $owned + * Returns true if the Cloud Identity account is associated with a customer + * of the Channel Services partner. + * @type string $customer_name + * If owned = true, the name of the customer that owns the Cloud Identity + * account. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type string $customer_cloud_identity_id + * If existing = true, the Cloud Identity ID of the customer. + * @type int $customer_type + * If existing = true, the type of the customer. + * @type string $channel_partner_cloud_identity_id + * If existing = true, and is 2-tier customer, the channel partner of the + * customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Returns true if a Cloud Identity account exists for a specific domain. + * + * Generated from protobuf field bool existing = 1; + * @return bool + */ + public function getExisting() + { + return $this->existing; + } + + /** + * Returns true if a Cloud Identity account exists for a specific domain. + * + * Generated from protobuf field bool existing = 1; + * @param bool $var + * @return $this + */ + public function setExisting($var) + { + GPBUtil::checkBool($var); + $this->existing = $var; + + return $this; + } + + /** + * Returns true if the Cloud Identity account is associated with a customer + * of the Channel Services partner. + * + * Generated from protobuf field bool owned = 2; + * @return bool + */ + public function getOwned() + { + return $this->owned; + } + + /** + * Returns true if the Cloud Identity account is associated with a customer + * of the Channel Services partner. + * + * Generated from protobuf field bool owned = 2; + * @param bool $var + * @return $this + */ + public function setOwned($var) + { + GPBUtil::checkBool($var); + $this->owned = $var; + + return $this; + } + + /** + * If owned = true, the name of the customer that owns the Cloud Identity + * account. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer_name = 3; + * @return string + */ + public function getCustomerName() + { + return $this->customer_name; + } + + /** + * If owned = true, the name of the customer that owns the Cloud Identity + * account. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer_name = 3; + * @param string $var + * @return $this + */ + public function setCustomerName($var) + { + GPBUtil::checkString($var, True); + $this->customer_name = $var; + + return $this; + } + + /** + * If existing = true, the Cloud Identity ID of the customer. + * + * Generated from protobuf field string customer_cloud_identity_id = 4; + * @return string + */ + public function getCustomerCloudIdentityId() + { + return $this->customer_cloud_identity_id; + } + + /** + * If existing = true, the Cloud Identity ID of the customer. + * + * Generated from protobuf field string customer_cloud_identity_id = 4; + * @param string $var + * @return $this + */ + public function setCustomerCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->customer_cloud_identity_id = $var; + + return $this; + } + + /** + * If existing = true, the type of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5; + * @return int + */ + public function getCustomerType() + { + return $this->customer_type; + } + + /** + * If existing = true, the type of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 5; + * @param int $var + * @return $this + */ + public function setCustomerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\CloudIdentityInfo\CustomerType::class); + $this->customer_type = $var; + + return $this; + } + + /** + * If existing = true, and is 2-tier customer, the channel partner of the + * customer. + * + * Generated from protobuf field string channel_partner_cloud_identity_id = 6; + * @return string + */ + public function getChannelPartnerCloudIdentityId() + { + return $this->channel_partner_cloud_identity_id; + } + + /** + * If existing = true, and is 2-tier customer, the channel partner of the + * customer. + * + * Generated from protobuf field string channel_partner_cloud_identity_id = 6; + * @param string $var + * @return $this + */ + public function setChannelPartnerCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->channel_partner_cloud_identity_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo.php new file mode 100644 index 000000000000..7dac16762bc8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo.php @@ -0,0 +1,331 @@ +google.cloud.channel.v1.CloudIdentityInfo + */ +class CloudIdentityInfo extends \Google\Protobuf\Internal\Message +{ + /** + * CustomerType indicates verification type needed for using services. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 1; + */ + protected $customer_type = 0; + /** + * Output only. The primary domain name. + * + * Generated from protobuf field string primary_domain = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $primary_domain = ''; + /** + * Output only. Whether the domain is verified. + * This field is not returned for a Customer's cloud_identity_info resource. + * Partners can use the domains.get() method of the Workspace SDK's + * Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in + * to track domain verification of their resolve Workspace customers. + * + * Generated from protobuf field bool is_domain_verified = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_domain_verified = false; + /** + * The alternate email. + * + * Generated from protobuf field string alternate_email = 6; + */ + protected $alternate_email = ''; + /** + * Phone number associated with the Cloud Identity. + * + * Generated from protobuf field string phone_number = 7; + */ + protected $phone_number = ''; + /** + * Language code. + * + * Generated from protobuf field string language_code = 8; + */ + protected $language_code = ''; + /** + * Output only. URI of Customer's Admin console dashboard. + * + * Generated from protobuf field string admin_console_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $admin_console_uri = ''; + /** + * Edu information about the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData edu_data = 22; + */ + protected $edu_data = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $customer_type + * CustomerType indicates verification type needed for using services. + * @type string $primary_domain + * Output only. The primary domain name. + * @type bool $is_domain_verified + * Output only. Whether the domain is verified. + * This field is not returned for a Customer's cloud_identity_info resource. + * Partners can use the domains.get() method of the Workspace SDK's + * Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in + * to track domain verification of their resolve Workspace customers. + * @type string $alternate_email + * The alternate email. + * @type string $phone_number + * Phone number associated with the Cloud Identity. + * @type string $language_code + * Language code. + * @type string $admin_console_uri + * Output only. URI of Customer's Admin console dashboard. + * @type \Google\Cloud\Channel\V1\EduData $edu_data + * Edu information about the customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * CustomerType indicates verification type needed for using services. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 1; + * @return int + */ + public function getCustomerType() + { + return $this->customer_type; + } + + /** + * CustomerType indicates verification type needed for using services. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo.CustomerType customer_type = 1; + * @param int $var + * @return $this + */ + public function setCustomerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\CloudIdentityInfo\CustomerType::class); + $this->customer_type = $var; + + return $this; + } + + /** + * Output only. The primary domain name. + * + * Generated from protobuf field string primary_domain = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrimaryDomain() + { + return $this->primary_domain; + } + + /** + * Output only. The primary domain name. + * + * Generated from protobuf field string primary_domain = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrimaryDomain($var) + { + GPBUtil::checkString($var, True); + $this->primary_domain = $var; + + return $this; + } + + /** + * Output only. Whether the domain is verified. + * This field is not returned for a Customer's cloud_identity_info resource. + * Partners can use the domains.get() method of the Workspace SDK's + * Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in + * to track domain verification of their resolve Workspace customers. + * + * Generated from protobuf field bool is_domain_verified = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsDomainVerified() + { + return $this->is_domain_verified; + } + + /** + * Output only. Whether the domain is verified. + * This field is not returned for a Customer's cloud_identity_info resource. + * Partners can use the domains.get() method of the Workspace SDK's + * Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in + * to track domain verification of their resolve Workspace customers. + * + * Generated from protobuf field bool is_domain_verified = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsDomainVerified($var) + { + GPBUtil::checkBool($var); + $this->is_domain_verified = $var; + + return $this; + } + + /** + * The alternate email. + * + * Generated from protobuf field string alternate_email = 6; + * @return string + */ + public function getAlternateEmail() + { + return $this->alternate_email; + } + + /** + * The alternate email. + * + * Generated from protobuf field string alternate_email = 6; + * @param string $var + * @return $this + */ + public function setAlternateEmail($var) + { + GPBUtil::checkString($var, True); + $this->alternate_email = $var; + + return $this; + } + + /** + * Phone number associated with the Cloud Identity. + * + * Generated from protobuf field string phone_number = 7; + * @return string + */ + public function getPhoneNumber() + { + return $this->phone_number; + } + + /** + * Phone number associated with the Cloud Identity. + * + * Generated from protobuf field string phone_number = 7; + * @param string $var + * @return $this + */ + public function setPhoneNumber($var) + { + GPBUtil::checkString($var, True); + $this->phone_number = $var; + + return $this; + } + + /** + * Language code. + * + * Generated from protobuf field string language_code = 8; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Language code. + * + * Generated from protobuf field string language_code = 8; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Output only. URI of Customer's Admin console dashboard. + * + * Generated from protobuf field string admin_console_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdminConsoleUri() + { + return $this->admin_console_uri; + } + + /** + * Output only. URI of Customer's Admin console dashboard. + * + * Generated from protobuf field string admin_console_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdminConsoleUri($var) + { + GPBUtil::checkString($var, True); + $this->admin_console_uri = $var; + + return $this; + } + + /** + * Edu information about the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData edu_data = 22; + * @return \Google\Cloud\Channel\V1\EduData|null + */ + public function getEduData() + { + return $this->edu_data; + } + + public function hasEduData() + { + return isset($this->edu_data); + } + + public function clearEduData() + { + unset($this->edu_data); + } + + /** + * Edu information about the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData edu_data = 22; + * @param \Google\Cloud\Channel\V1\EduData $var + * @return $this + */ + public function setEduData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\EduData::class); + $this->edu_data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo/CustomerType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo/CustomerType.php new file mode 100644 index 000000000000..8fc08963d8d4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CloudIdentityInfo/CustomerType.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.CloudIdentityInfo.CustomerType + */ +class CustomerType +{ + /** + * Not used. + * + * Generated from protobuf enum CUSTOMER_TYPE_UNSPECIFIED = 0; + */ + const CUSTOMER_TYPE_UNSPECIFIED = 0; + /** + * Domain-owning customer which needs domain verification to use services. + * + * Generated from protobuf enum DOMAIN = 1; + */ + const DOMAIN = 1; + /** + * Team customer which needs email verification to use services. + * + * Generated from protobuf enum TEAM = 2; + */ + const TEAM = 2; + + private static $valueToName = [ + self::CUSTOMER_TYPE_UNSPECIFIED => 'CUSTOMER_TYPE_UNSPECIFIED', + self::DOMAIN => 'DOMAIN', + self::TEAM => 'TEAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CustomerType::class, \Google\Cloud\Channel\V1\CloudIdentityInfo_CustomerType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column.php new file mode 100644 index 000000000000..aec2fcae50a1 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column.php @@ -0,0 +1,153 @@ +google.cloud.channel.v1.Column + */ +class Column extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the column (for example, customer_domain, + * channel_partner, customer_cost). You can use column IDs in + * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter]. + * To see all reports and their columns, call + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. + * + * Generated from protobuf field string column_id = 1; + */ + protected $column_id = ''; + /** + * The column's display name. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The type of the values for this column. + * + * Generated from protobuf field .google.cloud.channel.v1.Column.DataType data_type = 3; + */ + protected $data_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column_id + * The unique name of the column (for example, customer_domain, + * channel_partner, customer_cost). You can use column IDs in + * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter]. + * To see all reports and their columns, call + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. + * @type string $display_name + * The column's display name. + * @type int $data_type + * The type of the values for this column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the column (for example, customer_domain, + * channel_partner, customer_cost). You can use column IDs in + * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter]. + * To see all reports and their columns, call + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. + * + * Generated from protobuf field string column_id = 1; + * @return string + */ + public function getColumnId() + { + return $this->column_id; + } + + /** + * The unique name of the column (for example, customer_domain, + * channel_partner, customer_cost). You can use column IDs in + * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter]. + * To see all reports and their columns, call + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. + * + * Generated from protobuf field string column_id = 1; + * @param string $var + * @return $this + */ + public function setColumnId($var) + { + GPBUtil::checkString($var, True); + $this->column_id = $var; + + return $this; + } + + /** + * The column's display name. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The column's display 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; + } + + /** + * The type of the values for this column. + * + * Generated from protobuf field .google.cloud.channel.v1.Column.DataType data_type = 3; + * @return int + */ + public function getDataType() + { + return $this->data_type; + } + + /** + * The type of the values for this column. + * + * Generated from protobuf field .google.cloud.channel.v1.Column.DataType data_type = 3; + * @param int $var + * @return $this + */ + public function setDataType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\Column\DataType::class); + $this->data_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column/DataType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column/DataType.php new file mode 100644 index 000000000000..6cd543faef0e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Column/DataType.php @@ -0,0 +1,93 @@ +google.cloud.channel.v1.Column.DataType + */ +class DataType +{ + /** + * Not used. + * + * Generated from protobuf enum DATA_TYPE_UNSPECIFIED = 0; + */ + const DATA_TYPE_UNSPECIFIED = 0; + /** + * ReportValues for this column will use string_value. + * + * Generated from protobuf enum STRING = 1; + */ + const STRING = 1; + /** + * ReportValues for this column will use int_value. + * + * Generated from protobuf enum INT = 2; + */ + const INT = 2; + /** + * ReportValues for this column will use decimal_value. + * + * Generated from protobuf enum DECIMAL = 3; + */ + const DECIMAL = 3; + /** + * ReportValues for this column will use money_value. + * + * Generated from protobuf enum MONEY = 4; + */ + const MONEY = 4; + /** + * ReportValues for this column will use date_value. + * + * Generated from protobuf enum DATE = 5; + */ + const DATE = 5; + /** + * ReportValues for this column will use date_time_value. + * + * Generated from protobuf enum DATE_TIME = 6; + */ + const DATE_TIME = 6; + + private static $valueToName = [ + self::DATA_TYPE_UNSPECIFIED => 'DATA_TYPE_UNSPECIFIED', + self::STRING => 'STRING', + self::INT => 'INT', + self::DECIMAL => 'DECIMAL', + self::MONEY => 'MONEY', + self::DATE => 'DATE', + self::DATE_TIME => 'DATE_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(DataType::class, \Google\Cloud\Channel\V1\Column_DataType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CommitmentSettings.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CommitmentSettings.php new file mode 100644 index 000000000000..bbea2b343638 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CommitmentSettings.php @@ -0,0 +1,165 @@ +google.cloud.channel.v1.CommitmentSettings + */ +class CommitmentSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Commitment start timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Commitment end timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Optional. Renewal settings applicable for a commitment-based Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $renewal_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Output only. Commitment start timestamp. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Commitment end timestamp. + * @type \Google\Cloud\Channel\V1\RenewalSettings $renewal_settings + * Optional. Renewal settings applicable for a commitment-based Offer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Commitment start timestamp. + * + * 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. Commitment start timestamp. + * + * 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; + } + + /** + * Output only. Commitment end timestamp. + * + * 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. Commitment end timestamp. + * + * 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; + } + + /** + * Optional. Renewal settings applicable for a commitment-based Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Channel\V1\RenewalSettings|null + */ + public function getRenewalSettings() + { + return $this->renewal_settings; + } + + public function hasRenewalSettings() + { + return isset($this->renewal_settings); + } + + public function clearRenewalSettings() + { + unset($this->renewal_settings); + } + + /** + * Optional. Renewal settings applicable for a commitment-based Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Channel\V1\RenewalSettings $var + * @return $this + */ + public function setRenewalSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RenewalSettings::class); + $this->renewal_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ConditionalOverride.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ConditionalOverride.php new file mode 100644 index 000000000000..7d7133bb1ec5 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ConditionalOverride.php @@ -0,0 +1,163 @@ +google.cloud.channel.v1.ConditionalOverride + */ +class ConditionalOverride extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Information about the applied override's adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $adjustment = null; + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for the applied override. Shows the relative cost based on your + * repricing costs. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rebilling_basis = 0; + /** + * Required. Specifies the condition which, if met, will apply the override. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repricing_condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\RepricingAdjustment $adjustment + * Required. Information about the applied override's adjustment. + * @type int $rebilling_basis + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for the applied override. Shows the relative cost based on your + * repricing costs. + * @type \Google\Cloud\Channel\V1\RepricingCondition $repricing_condition + * Required. Specifies the condition which, if met, will apply the override. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Required. Information about the applied override's adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RepricingAdjustment|null + */ + public function getAdjustment() + { + return $this->adjustment; + } + + public function hasAdjustment() + { + return isset($this->adjustment); + } + + public function clearAdjustment() + { + unset($this->adjustment); + } + + /** + * Required. Information about the applied override's adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RepricingAdjustment $var + * @return $this + */ + public function setAdjustment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingAdjustment::class); + $this->adjustment = $var; + + return $this; + } + + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for the applied override. Shows the relative cost based on your + * repricing costs. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getRebillingBasis() + { + return $this->rebilling_basis; + } + + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for the applied override. Shows the relative cost based on your + * repricing costs. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setRebillingBasis($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\RebillingBasis::class); + $this->rebilling_basis = $var; + + return $this; + } + + /** + * Required. Specifies the condition which, if met, will apply the override. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RepricingCondition|null + */ + public function getRepricingCondition() + { + return $this->repricing_condition; + } + + public function hasRepricingCondition() + { + return isset($this->repricing_condition); + } + + public function clearRepricingCondition() + { + unset($this->repricing_condition); + } + + /** + * Required. Specifies the condition which, if met, will apply the override. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RepricingCondition $var + * @return $this + */ + public function setRepricingCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingCondition::class); + $this->repricing_condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Constraints.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Constraints.php new file mode 100644 index 000000000000..abbf8b1ba952 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Constraints.php @@ -0,0 +1,77 @@ +google.cloud.channel.v1.Constraints + */ +class Constraints extends \Google\Protobuf\Internal\Message +{ + /** + * Represents constraints required to purchase the Offer for a customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1; + */ + protected $customer_constraints = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\CustomerConstraints $customer_constraints + * Represents constraints required to purchase the Offer for a customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Represents constraints required to purchase the Offer for a customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1; + * @return \Google\Cloud\Channel\V1\CustomerConstraints|null + */ + public function getCustomerConstraints() + { + return $this->customer_constraints; + } + + public function hasCustomerConstraints() + { + return isset($this->customer_constraints); + } + + public function clearCustomerConstraints() + { + unset($this->customer_constraints); + } + + /** + * Represents constraints required to purchase the Offer for a customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1; + * @param \Google\Cloud\Channel\V1\CustomerConstraints $var + * @return $this + */ + public function setCustomerConstraints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CustomerConstraints::class); + $this->customer_constraints = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ContactInfo.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ContactInfo.php new file mode 100644 index 000000000000..044cf09030c8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ContactInfo.php @@ -0,0 +1,249 @@ +google.cloud.channel.v1.ContactInfo + */ +class ContactInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The customer account contact's first name. Optional for Team customers. + * + * Generated from protobuf field string first_name = 1; + */ + protected $first_name = ''; + /** + * The customer account contact's last name. Optional for Team customers. + * + * Generated from protobuf field string last_name = 2; + */ + protected $last_name = ''; + /** + * Output only. The customer account contact's display name, formatted as a + * combination of the customer's first and last name. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * The customer account's contact email. Required for entitlements that create + * admin.google.com accounts, and serves as the customer's username for those + * accounts. Use this email to invite Team customers. + * + * Generated from protobuf field string email = 5; + */ + protected $email = ''; + /** + * Optional. The customer account contact's job title. + * + * Generated from protobuf field string title = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $title = ''; + /** + * The customer account's contact phone number. + * + * Generated from protobuf field string phone = 7; + */ + protected $phone = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $first_name + * The customer account contact's first name. Optional for Team customers. + * @type string $last_name + * The customer account contact's last name. Optional for Team customers. + * @type string $display_name + * Output only. The customer account contact's display name, formatted as a + * combination of the customer's first and last name. + * @type string $email + * The customer account's contact email. Required for entitlements that create + * admin.google.com accounts, and serves as the customer's username for those + * accounts. Use this email to invite Team customers. + * @type string $title + * Optional. The customer account contact's job title. + * @type string $phone + * The customer account's contact phone number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Customers::initOnce(); + parent::__construct($data); + } + + /** + * The customer account contact's first name. Optional for Team customers. + * + * Generated from protobuf field string first_name = 1; + * @return string + */ + public function getFirstName() + { + return $this->first_name; + } + + /** + * The customer account contact's first name. Optional for Team customers. + * + * Generated from protobuf field string first_name = 1; + * @param string $var + * @return $this + */ + public function setFirstName($var) + { + GPBUtil::checkString($var, True); + $this->first_name = $var; + + return $this; + } + + /** + * The customer account contact's last name. Optional for Team customers. + * + * Generated from protobuf field string last_name = 2; + * @return string + */ + public function getLastName() + { + return $this->last_name; + } + + /** + * The customer account contact's last name. Optional for Team customers. + * + * Generated from protobuf field string last_name = 2; + * @param string $var + * @return $this + */ + public function setLastName($var) + { + GPBUtil::checkString($var, True); + $this->last_name = $var; + + return $this; + } + + /** + * Output only. The customer account contact's display name, formatted as a + * combination of the customer's first and last name. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The customer account contact's display name, formatted as a + * combination of the customer's first and last name. + * + * Generated from protobuf field string display_name = 4 [(.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; + } + + /** + * The customer account's contact email. Required for entitlements that create + * admin.google.com accounts, and serves as the customer's username for those + * accounts. Use this email to invite Team customers. + * + * Generated from protobuf field string email = 5; + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * The customer account's contact email. Required for entitlements that create + * admin.google.com accounts, and serves as the customer's username for those + * accounts. Use this email to invite Team customers. + * + * Generated from protobuf field string email = 5; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The customer account contact's job title. + * + * Generated from protobuf field string title = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Optional. The customer account contact's job title. + * + * Generated from protobuf field string title = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The customer account's contact phone number. + * + * Generated from protobuf field string phone = 7; + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * The customer account's contact phone number. + * + * Generated from protobuf field string phone = 7; + * @param string $var + * @return $this + */ + public function setPhone($var) + { + GPBUtil::checkString($var, True); + $this->phone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerLinkRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerLinkRequest.php new file mode 100644 index 000000000000..fc4895c5ad8b --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerLinkRequest.php @@ -0,0 +1,128 @@ +google.cloud.channel.v1.CreateChannelPartnerLinkRequest + */ +class CreateChannelPartnerLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Create a channel partner link for the provided reseller account's + * resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The channel partner link to create. + * Either channel_partner_link.reseller_cloud_identity_id or domain can be + * used to create a link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_partner_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Create a channel partner link for the provided reseller account's + * resource name. + * Parent uses the format: accounts/{account_id} + * @type \Google\Cloud\Channel\V1\ChannelPartnerLink $channel_partner_link + * Required. The channel partner link to create. + * Either channel_partner_link.reseller_cloud_identity_id or domain can be + * used to create a link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Create a channel partner link for the provided reseller account's + * resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Create a channel partner link for the provided reseller account's + * resource name. + * Parent uses the format: accounts/{account_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; + } + + /** + * Required. The channel partner link to create. + * Either channel_partner_link.reseller_cloud_identity_id or domain can be + * used to create a link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\ChannelPartnerLink|null + */ + public function getChannelPartnerLink() + { + return $this->channel_partner_link; + } + + public function hasChannelPartnerLink() + { + return isset($this->channel_partner_link); + } + + public function clearChannelPartnerLink() + { + unset($this->channel_partner_link); + } + + /** + * Required. The channel partner link to create. + * Either channel_partner_link.reseller_cloud_identity_id or domain can be + * used to create a link. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\ChannelPartnerLink $var + * @return $this + */ + public function setChannelPartnerLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ChannelPartnerLink::class); + $this->channel_partner_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerRepricingConfigRequest.php new file mode 100644 index 000000000000..64d5d61c9080 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateChannelPartnerRepricingConfigRequest.php @@ -0,0 +1,138 @@ +google.cloud.channel.v1.CreateChannelPartnerRepricingConfigRequest + */ +class CreateChannelPartnerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_partner_repricing_config = null; + + /** + * @param string $parent Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * Please see {@see CloudChannelServiceClient::channelPartnerLinkName()} for help formatting this field. + * @param \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig Required. The ChannelPartnerRepricingConfig object to update. + * + * @return \Google\Cloud\Channel\V1\CreateChannelPartnerRepricingConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig): self + { + return (new self()) + ->setParent($parent) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * @type \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channel_partner_repricing_config + * Required. The ChannelPartnerRepricingConfig object to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_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 ChannelPartner that will receive the + * repricing config. Parent uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_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. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig|null + */ + public function getChannelPartnerRepricingConfig() + { + return $this->channel_partner_repricing_config; + } + + public function hasChannelPartnerRepricingConfig() + { + return isset($this->channel_partner_repricing_config); + } + + public function clearChannelPartnerRepricingConfig() + { + unset($this->channel_partner_repricing_config); + } + + /** + * Required. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $var + * @return $this + */ + public function setChannelPartnerRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig::class); + $this->channel_partner_repricing_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRepricingConfigRequest.php new file mode 100644 index 000000000000..b8c3cbd800fa --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRepricingConfigRequest.php @@ -0,0 +1,138 @@ +google.cloud.channel.v1.CreateCustomerRepricingConfigRequest + */ +class CreateCustomerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $customer_repricing_config = null; + + /** + * @param string $parent Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * Please see {@see CloudChannelServiceClient::customerName()} for help formatting this field. + * @param \Google\Cloud\Channel\V1\CustomerRepricingConfig $customerRepricingConfig Required. The CustomerRepricingConfig object to update. + * + * @return \Google\Cloud\Channel\V1\CreateCustomerRepricingConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Channel\V1\CustomerRepricingConfig $customerRepricingConfig): self + { + return (new self()) + ->setParent($parent) + ->setCustomerRepricingConfig($customerRepricingConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type \Google\Cloud\Channel\V1\CustomerRepricingConfig $customer_repricing_config + * Required. The CustomerRepricingConfig object to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_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 customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_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. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\CustomerRepricingConfig|null + */ + public function getCustomerRepricingConfig() + { + return $this->customer_repricing_config; + } + + public function hasCustomerRepricingConfig() + { + return isset($this->customer_repricing_config); + } + + public function clearCustomerRepricingConfig() + { + unset($this->customer_repricing_config); + } + + /** + * Required. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\CustomerRepricingConfig $var + * @return $this + */ + public function setCustomerRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CustomerRepricingConfig::class); + $this->customer_repricing_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRequest.php new file mode 100644 index 000000000000..bd57f2e37edc --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateCustomerRequest.php @@ -0,0 +1,116 @@ +google.cloud.channel.v1.CreateCustomerRequest + */ +class CreateCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The customer to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $customer = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_id} + * @type \Google\Cloud\Channel\V1\Customer $customer + * Required. The customer to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_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; + } + + /** + * Required. The customer to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\Customer|null + */ + public function getCustomer() + { + return $this->customer; + } + + public function hasCustomer() + { + return isset($this->customer); + } + + public function clearCustomer() + { + unset($this->customer); + } + + /** + * Required. The customer to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\Customer $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Customer::class); + $this->customer = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateEntitlementRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateEntitlementRequest.php new file mode 100644 index 000000000000..4385ea690282 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CreateEntitlementRequest.php @@ -0,0 +1,190 @@ +google.cloud.channel.v1.CreateEntitlementRequest + */ +class CreateEntitlementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The entitlement to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement entitlement = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entitlement = null; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type \Google\Cloud\Channel\V1\Entitlement $entitlement + * Required. The entitlement to create. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_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 reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_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. The entitlement to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement entitlement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\Entitlement|null + */ + public function getEntitlement() + { + return $this->entitlement; + } + + public function hasEntitlement() + { + return isset($this->entitlement); + } + + public function clearEntitlement() + { + unset($this->entitlement); + } + + /** + * Required. The entitlement to create. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement entitlement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\Entitlement $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Entitlement::class); + $this->entitlement = $var; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Customer.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Customer.php new file mode 100644 index 000000000000..8b8c8afe48ba --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Customer.php @@ -0,0 +1,585 @@ +google.cloud.channel.v1.Customer + */ +class Customer extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Name of the organization that the customer entity represents. + * + * Generated from protobuf field string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $org_display_name = ''; + /** + * Required. The organization address for the customer. To enforce US laws and + * embargoes, we require a region, postal code, and address lines. You must + * provide valid addresses for every customer. To set the customer's + * language, use the Customer-level language code. + * + * Generated from protobuf field .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $org_postal_address = null; + /** + * Primary contact info. + * + * Generated from protobuf field .google.cloud.channel.v1.ContactInfo primary_contact_info = 4; + */ + protected $primary_contact_info = null; + /** + * Secondary contact email. You need to provide an alternate email to create + * different domains if a primary contact email already exists. Users will + * receive a notification with credentials when you create an admin.google.com + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. + * + * Generated from protobuf field string alternate_email = 5; + */ + protected $alternate_email = ''; + /** + * Required. The customer's primary domain. Must match the primary contact + * email's domain. + * + * Generated from protobuf field string domain = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $domain = ''; + /** + * Output only. Time when the customer was 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 the customer was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The customer's Cloud Identity ID if the customer has a Cloud + * Identity resource. + * + * Generated from protobuf field string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_identity_id = ''; + /** + * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more + * information, see + * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + /** + * Output only. Cloud Identity information for the customer. + * Populated only if a Cloud Identity account exists for this customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_identity_info = null; + /** + * Cloud Identity ID of the customer's channel partner. + * Populated only if a channel partner exists for this customer. + * + * Generated from protobuf field string channel_partner_id = 13; + */ + protected $channel_partner_id = ''; + /** + * Optional. External CRM ID for the customer. + * Populated only if a CRM ID exists for this customer. + * + * Generated from protobuf field string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $correlation_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * @type string $org_display_name + * Required. Name of the organization that the customer entity represents. + * @type \Google\Type\PostalAddress $org_postal_address + * Required. The organization address for the customer. To enforce US laws and + * embargoes, we require a region, postal code, and address lines. You must + * provide valid addresses for every customer. To set the customer's + * language, use the Customer-level language code. + * @type \Google\Cloud\Channel\V1\ContactInfo $primary_contact_info + * Primary contact info. + * @type string $alternate_email + * Secondary contact email. You need to provide an alternate email to create + * different domains if a primary contact email already exists. Users will + * receive a notification with credentials when you create an admin.google.com + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. + * @type string $domain + * Required. The customer's primary domain. Must match the primary contact + * email's domain. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the customer was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the customer was updated. + * @type string $cloud_identity_id + * Output only. The customer's Cloud Identity ID if the customer has a Cloud + * Identity resource. + * @type string $language_code + * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more + * information, see + * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * @type \Google\Cloud\Channel\V1\CloudIdentityInfo $cloud_identity_info + * Output only. Cloud Identity information for the customer. + * Populated only if a Cloud Identity account exists for this customer. + * @type string $channel_partner_id + * Cloud Identity ID of the customer's channel partner. + * Populated only if a channel partner exists for this customer. + * @type string $correlation_id + * Optional. External CRM ID for the customer. + * Populated only if a CRM ID exists for this customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the customer. + * Format: accounts/{account_id}/customers/{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. Resource name of the customer. + * Format: accounts/{account_id}/customers/{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; + } + + /** + * Required. Name of the organization that the customer entity represents. + * + * Generated from protobuf field string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOrgDisplayName() + { + return $this->org_display_name; + } + + /** + * Required. Name of the organization that the customer entity represents. + * + * Generated from protobuf field string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOrgDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->org_display_name = $var; + + return $this; + } + + /** + * Required. The organization address for the customer. To enforce US laws and + * embargoes, we require a region, postal code, and address lines. You must + * provide valid addresses for every customer. To set the customer's + * language, use the Customer-level language code. + * + * Generated from protobuf field .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\PostalAddress|null + */ + public function getOrgPostalAddress() + { + return $this->org_postal_address; + } + + public function hasOrgPostalAddress() + { + return isset($this->org_postal_address); + } + + public function clearOrgPostalAddress() + { + unset($this->org_postal_address); + } + + /** + * Required. The organization address for the customer. To enforce US laws and + * embargoes, we require a region, postal code, and address lines. You must + * provide valid addresses for every customer. To set the customer's + * language, use the Customer-level language code. + * + * Generated from protobuf field .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\PostalAddress $var + * @return $this + */ + public function setOrgPostalAddress($var) + { + GPBUtil::checkMessage($var, \Google\Type\PostalAddress::class); + $this->org_postal_address = $var; + + return $this; + } + + /** + * Primary contact info. + * + * Generated from protobuf field .google.cloud.channel.v1.ContactInfo primary_contact_info = 4; + * @return \Google\Cloud\Channel\V1\ContactInfo|null + */ + public function getPrimaryContactInfo() + { + return $this->primary_contact_info; + } + + public function hasPrimaryContactInfo() + { + return isset($this->primary_contact_info); + } + + public function clearPrimaryContactInfo() + { + unset($this->primary_contact_info); + } + + /** + * Primary contact info. + * + * Generated from protobuf field .google.cloud.channel.v1.ContactInfo primary_contact_info = 4; + * @param \Google\Cloud\Channel\V1\ContactInfo $var + * @return $this + */ + public function setPrimaryContactInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ContactInfo::class); + $this->primary_contact_info = $var; + + return $this; + } + + /** + * Secondary contact email. You need to provide an alternate email to create + * different domains if a primary contact email already exists. Users will + * receive a notification with credentials when you create an admin.google.com + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. + * + * Generated from protobuf field string alternate_email = 5; + * @return string + */ + public function getAlternateEmail() + { + return $this->alternate_email; + } + + /** + * Secondary contact email. You need to provide an alternate email to create + * different domains if a primary contact email already exists. Users will + * receive a notification with credentials when you create an admin.google.com + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. + * + * Generated from protobuf field string alternate_email = 5; + * @param string $var + * @return $this + */ + public function setAlternateEmail($var) + { + GPBUtil::checkString($var, True); + $this->alternate_email = $var; + + return $this; + } + + /** + * Required. The customer's primary domain. Must match the primary contact + * email's domain. + * + * Generated from protobuf field string domain = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDomain() + { + return $this->domain; + } + + /** + * Required. The customer's primary domain. Must match the primary contact + * email's domain. + * + * Generated from protobuf field string domain = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Output only. Time when the customer 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. Time when the customer 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. Time when the customer was 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 the customer was 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. The customer's Cloud Identity ID if the customer has a Cloud + * Identity resource. + * + * Generated from protobuf field string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudIdentityId() + { + return $this->cloud_identity_id; + } + + /** + * Output only. The customer's Cloud Identity ID if the customer has a Cloud + * Identity resource. + * + * Generated from protobuf field string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_identity_id = $var; + + return $this; + } + + /** + * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more + * information, see + * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more + * information, see + * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Output only. Cloud Identity information for the customer. + * Populated only if a Cloud Identity account exists for this customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Channel\V1\CloudIdentityInfo|null + */ + public function getCloudIdentityInfo() + { + return $this->cloud_identity_info; + } + + public function hasCloudIdentityInfo() + { + return isset($this->cloud_identity_info); + } + + public function clearCloudIdentityInfo() + { + unset($this->cloud_identity_info); + } + + /** + * Output only. Cloud Identity information for the customer. + * Populated only if a Cloud Identity account exists for this customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Channel\V1\CloudIdentityInfo $var + * @return $this + */ + public function setCloudIdentityInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CloudIdentityInfo::class); + $this->cloud_identity_info = $var; + + return $this; + } + + /** + * Cloud Identity ID of the customer's channel partner. + * Populated only if a channel partner exists for this customer. + * + * Generated from protobuf field string channel_partner_id = 13; + * @return string + */ + public function getChannelPartnerId() + { + return $this->channel_partner_id; + } + + /** + * Cloud Identity ID of the customer's channel partner. + * Populated only if a channel partner exists for this customer. + * + * Generated from protobuf field string channel_partner_id = 13; + * @param string $var + * @return $this + */ + public function setChannelPartnerId($var) + { + GPBUtil::checkString($var, True); + $this->channel_partner_id = $var; + + return $this; + } + + /** + * Optional. External CRM ID for the customer. + * Populated only if a CRM ID exists for this customer. + * + * Generated from protobuf field string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCorrelationId() + { + return $this->correlation_id; + } + + /** + * Optional. External CRM ID for the customer. + * Populated only if a CRM ID exists for this customer. + * + * Generated from protobuf field string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCorrelationId($var) + { + GPBUtil::checkString($var, True); + $this->correlation_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerConstraints.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerConstraints.php new file mode 100644 index 000000000000..e28e22d19011 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerConstraints.php @@ -0,0 +1,135 @@ +google.cloud.channel.v1.CustomerConstraints + */ +class CustomerConstraints extends \Google\Protobuf\Internal\Message +{ + /** + * Allowed geographical regions of the customer. + * + * Generated from protobuf field repeated string allowed_regions = 1; + */ + private $allowed_regions; + /** + * Allowed Customer Type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2; + */ + private $allowed_customer_types; + /** + * Allowed Promotional Order Type. Present for Promotional offers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3; + */ + private $promotional_order_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_regions + * Allowed geographical regions of the customer. + * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_customer_types + * Allowed Customer Type. + * @type array|\Google\Protobuf\Internal\RepeatedField $promotional_order_types + * Allowed Promotional Order Type. Present for Promotional offers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Allowed geographical regions of the customer. + * + * Generated from protobuf field repeated string allowed_regions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowedRegions() + { + return $this->allowed_regions; + } + + /** + * Allowed geographical regions of the customer. + * + * Generated from protobuf field repeated string allowed_regions = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowedRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_regions = $arr; + + return $this; + } + + /** + * Allowed Customer Type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowedCustomerTypes() + { + return $this->allowed_customer_types; + } + + /** + * Allowed Customer Type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowedCustomerTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Channel\V1\CloudIdentityInfo\CustomerType::class); + $this->allowed_customer_types = $arr; + + return $this; + } + + /** + * Allowed Promotional Order Type. Present for Promotional offers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPromotionalOrderTypes() + { + return $this->promotional_order_types; + } + + /** + * Allowed Promotional Order Type. Present for Promotional offers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPromotionalOrderTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Channel\V1\PromotionalOrderType::class); + $this->promotional_order_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent.php new file mode 100644 index 000000000000..1b50fe2c3685 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent.php @@ -0,0 +1,105 @@ +google.cloud.channel.v1.CustomerEvent + */ +class CustomerEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.resource_reference) = { + */ + protected $customer = ''; + /** + * Type of event which happened on the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; + */ + protected $event_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $customer + * Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * @type int $event_type + * Type of event which happened on the customer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\SubscriberEvent::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * Type of event which happened on the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; + * @return int + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * Type of event which happened on the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; + * @param int $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\CustomerEvent\Type::class); + $this->event_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent/Type.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent/Type.php new file mode 100644 index 000000000000..0c565e4f9687 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerEvent/Type.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.CustomerEvent.Type + */ +class Type +{ + /** + * Not used. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Primary domain for customer was changed. + * + * Generated from protobuf enum PRIMARY_DOMAIN_CHANGED = 1; + */ + const PRIMARY_DOMAIN_CHANGED = 1; + /** + * Primary domain of the customer has been verified. + * + * Generated from protobuf enum PRIMARY_DOMAIN_VERIFIED = 2; + */ + const PRIMARY_DOMAIN_VERIFIED = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::PRIMARY_DOMAIN_CHANGED => 'PRIMARY_DOMAIN_CHANGED', + self::PRIMARY_DOMAIN_VERIFIED => 'PRIMARY_DOMAIN_VERIFIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\Channel\V1\CustomerEvent_Type::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerRepricingConfig.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerRepricingConfig.php new file mode 100644 index 000000000000..45ff93a658d8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/CustomerRepricingConfig.php @@ -0,0 +1,179 @@ +google.cloud.channel.v1.CustomerRepricingConfig + */ +class CustomerRepricingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to customers. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repricing_config = null; + /** + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. + * @type \Google\Cloud\Channel\V1\RepricingConfig $repricing_config + * Required. The configuration for bill modifications made by a reseller + * before sending it to customers. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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 of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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; + } + + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to customers. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RepricingConfig|null + */ + public function getRepricingConfig() + { + return $this->repricing_config; + } + + public function hasRepricingConfig() + { + return isset($this->repricing_config); + } + + public function clearRepricingConfig() + { + unset($this->repricing_config); + } + + /** + * Required. The configuration for bill modifications made by a reseller + * before sending it to customers. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig repricing_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RepricingConfig $var + * @return $this + */ + public function setRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingConfig::class); + $this->repricing_config = $var; + + return $this; + } + + /** + * Output only. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * 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. Timestamp of an update to the repricing rule. If `update_time` + * is after + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * then it indicates this was set mid-month. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DateRange.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DateRange.php new file mode 100644 index 000000000000..fd3f7d1cb8cb --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DateRange.php @@ -0,0 +1,258 @@ +google.cloud.channel.v1.DateRange + */ +class DateRange extends \Google\Protobuf\Internal\Message +{ + /** + * The earliest usage date time (inclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage start date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_start_date_time = 1; + */ + protected $usage_start_date_time = null; + /** + * The latest usage date time (exclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage end date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_end_date_time = 2; + */ + protected $usage_end_date_time = null; + /** + * The earliest invoice date (inclusive). + * If this value is not the first day of a month, this will move it back to + * the first day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_start_date = 3; + */ + protected $invoice_start_date = null; + /** + * The latest invoice date (inclusive). + * If this value is not the last day of a month, this will move it forward to + * the last day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_end_date = 4; + */ + protected $invoice_end_date = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\DateTime $usage_start_date_time + * The earliest usage date time (inclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage start date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * @type \Google\Type\DateTime $usage_end_date_time + * The latest usage date time (exclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage end date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * @type \Google\Type\Date $invoice_start_date + * The earliest invoice date (inclusive). + * If this value is not the first day of a month, this will move it back to + * the first day of the given month. + * @type \Google\Type\Date $invoice_end_date + * The latest invoice date (inclusive). + * If this value is not the last day of a month, this will move it forward to + * the last day of the given month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The earliest usage date time (inclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage start date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_start_date_time = 1; + * @return \Google\Type\DateTime|null + */ + public function getUsageStartDateTime() + { + return $this->usage_start_date_time; + } + + public function hasUsageStartDateTime() + { + return isset($this->usage_start_date_time); + } + + public function clearUsageStartDateTime() + { + unset($this->usage_start_date_time); + } + + /** + * The earliest usage date time (inclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage start date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_start_date_time = 1; + * @param \Google\Type\DateTime $var + * @return $this + */ + public function setUsageStartDateTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\DateTime::class); + $this->usage_start_date_time = $var; + + return $this; + } + + /** + * The latest usage date time (exclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage end date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_end_date_time = 2; + * @return \Google\Type\DateTime|null + */ + public function getUsageEndDateTime() + { + return $this->usage_end_date_time; + } + + public function hasUsageEndDateTime() + { + return isset($this->usage_end_date_time); + } + + public function clearUsageEndDateTime() + { + unset($this->usage_end_date_time); + } + + /** + * The latest usage date time (exclusive). + * If you use time groupings (daily, weekly, etc), each group uses + * midnight to midnight (Pacific time). The usage end date is + * rounded down to include all usage from the specified date. We recommend + * that clients pass `usage_start_date_time` in Pacific time. + * + * Generated from protobuf field .google.type.DateTime usage_end_date_time = 2; + * @param \Google\Type\DateTime $var + * @return $this + */ + public function setUsageEndDateTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\DateTime::class); + $this->usage_end_date_time = $var; + + return $this; + } + + /** + * The earliest invoice date (inclusive). + * If this value is not the first day of a month, this will move it back to + * the first day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_start_date = 3; + * @return \Google\Type\Date|null + */ + public function getInvoiceStartDate() + { + return $this->invoice_start_date; + } + + public function hasInvoiceStartDate() + { + return isset($this->invoice_start_date); + } + + public function clearInvoiceStartDate() + { + unset($this->invoice_start_date); + } + + /** + * The earliest invoice date (inclusive). + * If this value is not the first day of a month, this will move it back to + * the first day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_start_date = 3; + * @param \Google\Type\Date $var + * @return $this + */ + public function setInvoiceStartDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->invoice_start_date = $var; + + return $this; + } + + /** + * The latest invoice date (inclusive). + * If this value is not the last day of a month, this will move it forward to + * the last day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_end_date = 4; + * @return \Google\Type\Date|null + */ + public function getInvoiceEndDate() + { + return $this->invoice_end_date; + } + + public function hasInvoiceEndDate() + { + return isset($this->invoice_end_date); + } + + public function clearInvoiceEndDate() + { + unset($this->invoice_end_date); + } + + /** + * The latest invoice date (inclusive). + * If this value is not the last day of a month, this will move it forward to + * the last day of the given month. + * + * Generated from protobuf field .google.type.Date invoice_end_date = 4; + * @param \Google\Type\Date $var + * @return $this + */ + public function setInvoiceEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->invoice_end_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteChannelPartnerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteChannelPartnerRepricingConfigRequest.php new file mode 100644 index 000000000000..d0fc158ca4d4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteChannelPartnerRepricingConfigRequest.php @@ -0,0 +1,86 @@ +google.cloud.channel.v1.DeleteChannelPartnerRepricingConfigRequest + */ +class DeleteChannelPartnerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the channel partner repricing config rule 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 channel partner repricing config rule to + * delete. Please see + * {@see CloudChannelServiceClient::channelPartnerRepricingConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\DeleteChannelPartnerRepricingConfigRequest + * + * @experimental + */ + public static function 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 channel partner repricing config rule to + * delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the channel partner repricing config rule 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 channel partner repricing config rule 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRepricingConfigRequest.php new file mode 100644 index 000000000000..e2fd21b1e210 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRepricingConfigRequest.php @@ -0,0 +1,92 @@ +google.cloud.channel.v1.DeleteCustomerRepricingConfigRequest + */ +class DeleteCustomerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer repricing config rule to + * delete. Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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 customer repricing config rule to + * delete. Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. Please see + * {@see CloudChannelServiceClient::customerRepricingConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\DeleteCustomerRepricingConfigRequest + * + * @experimental + */ + public static function 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 customer repricing config rule to + * delete. Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer repricing config rule to + * delete. Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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 customer repricing config rule to + * delete. Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRequest.php new file mode 100644 index 000000000000..5b017cf19684 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/DeleteCustomerRequest.php @@ -0,0 +1,82 @@ +google.cloud.channel.v1.DeleteCustomerRequest + */ +class DeleteCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer 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 customer to delete. Please see + * {@see CloudChannelServiceClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\DeleteCustomerRequest + * + * @experimental + */ + public static function 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 customer to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer 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 customer 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData.php new file mode 100644 index 000000000000..d83745074dd9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData.php @@ -0,0 +1,135 @@ +google.cloud.channel.v1.EduData + */ +class EduData extends \Google\Protobuf\Internal\Message +{ + /** + * Designated institute type of customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteType institute_type = 1; + */ + protected $institute_type = 0; + /** + * Size of the institute. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteSize institute_size = 2; + */ + protected $institute_size = 0; + /** + * Web address for the edu customer's institution. + * + * Generated from protobuf field string website = 3; + */ + protected $website = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $institute_type + * Designated institute type of customer. + * @type int $institute_size + * Size of the institute. + * @type string $website + * Web address for the edu customer's institution. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Designated institute type of customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteType institute_type = 1; + * @return int + */ + public function getInstituteType() + { + return $this->institute_type; + } + + /** + * Designated institute type of customer. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteType institute_type = 1; + * @param int $var + * @return $this + */ + public function setInstituteType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EduData\InstituteType::class); + $this->institute_type = $var; + + return $this; + } + + /** + * Size of the institute. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteSize institute_size = 2; + * @return int + */ + public function getInstituteSize() + { + return $this->institute_size; + } + + /** + * Size of the institute. + * + * Generated from protobuf field .google.cloud.channel.v1.EduData.InstituteSize institute_size = 2; + * @param int $var + * @return $this + */ + public function setInstituteSize($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EduData\InstituteSize::class); + $this->institute_size = $var; + + return $this; + } + + /** + * Web address for the edu customer's institution. + * + * Generated from protobuf field string website = 3; + * @return string + */ + public function getWebsite() + { + return $this->website; + } + + /** + * Web address for the edu customer's institution. + * + * Generated from protobuf field string website = 3; + * @param string $var + * @return $this + */ + public function setWebsite($var) + { + GPBUtil::checkString($var, True); + $this->website = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteSize.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteSize.php new file mode 100644 index 000000000000..c7e23dd5c7e9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteSize.php @@ -0,0 +1,99 @@ +google.cloud.channel.v1.EduData.InstituteSize + */ +class InstituteSize +{ + /** + * Not used. + * + * Generated from protobuf enum INSTITUTE_SIZE_UNSPECIFIED = 0; + */ + const INSTITUTE_SIZE_UNSPECIFIED = 0; + /** + * 1 - 100 + * + * Generated from protobuf enum SIZE_1_100 = 1; + */ + const SIZE_1_100 = 1; + /** + * 101 - 500 + * + * Generated from protobuf enum SIZE_101_500 = 2; + */ + const SIZE_101_500 = 2; + /** + * 501 - 1,000 + * + * Generated from protobuf enum SIZE_501_1000 = 3; + */ + const SIZE_501_1000 = 3; + /** + * 1,001 - 2,000 + * + * Generated from protobuf enum SIZE_1001_2000 = 4; + */ + const SIZE_1001_2000 = 4; + /** + * 2,001 - 5,000 + * + * Generated from protobuf enum SIZE_2001_5000 = 5; + */ + const SIZE_2001_5000 = 5; + /** + * 5,001 - 10,000 + * + * Generated from protobuf enum SIZE_5001_10000 = 6; + */ + const SIZE_5001_10000 = 6; + /** + * 10,001 + + * + * Generated from protobuf enum SIZE_10001_OR_MORE = 7; + */ + const SIZE_10001_OR_MORE = 7; + + private static $valueToName = [ + self::INSTITUTE_SIZE_UNSPECIFIED => 'INSTITUTE_SIZE_UNSPECIFIED', + self::SIZE_1_100 => 'SIZE_1_100', + self::SIZE_101_500 => 'SIZE_101_500', + self::SIZE_501_1000 => 'SIZE_501_1000', + self::SIZE_1001_2000 => 'SIZE_1001_2000', + self::SIZE_2001_5000 => 'SIZE_2001_5000', + self::SIZE_5001_10000 => 'SIZE_5001_10000', + self::SIZE_10001_OR_MORE => 'SIZE_10001_OR_MORE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstituteSize::class, \Google\Cloud\Channel\V1\EduData_InstituteSize::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteType.php new file mode 100644 index 000000000000..40ce33ad0b60 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EduData/InstituteType.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.EduData.InstituteType + */ +class InstituteType +{ + /** + * Not used. + * + * Generated from protobuf enum INSTITUTE_TYPE_UNSPECIFIED = 0; + */ + const INSTITUTE_TYPE_UNSPECIFIED = 0; + /** + * Elementary/Secondary Schools & Districts + * + * Generated from protobuf enum K12 = 1; + */ + const K12 = 1; + /** + * Higher Education Universities & Colleges + * + * Generated from protobuf enum UNIVERSITY = 2; + */ + const UNIVERSITY = 2; + + private static $valueToName = [ + self::INSTITUTE_TYPE_UNSPECIFIED => 'INSTITUTE_TYPE_UNSPECIFIED', + self::K12 => 'K12', + self::UNIVERSITY => 'UNIVERSITY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstituteType::class, \Google\Cloud\Channel\V1\EduData_InstituteType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement.php new file mode 100644 index 000000000000..355296213ccc --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement.php @@ -0,0 +1,615 @@ +google.cloud.channel.v1.Entitlement + */ +class Entitlement extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The time at which the entitlement is 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 entitlement is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. The offer resource name for which the entitlement is to be + * created. Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $offer = ''; + /** + * Commitment settings for a commitment-based Offer. + * Required for commitment based offers. + * + * Generated from protobuf field .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12; + */ + protected $commitment_settings = null; + /** + * Output only. Current provisioning state of the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $provisioning_state = 0; + /** + * Output only. Service provisioning details for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $provisioned_service = null; + /** + * Output only. Enumerable of all current suspension reasons for an + * entitlement. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $suspension_reasons; + /** + * Optional. This purchase order (PO) information is for resellers to use for + * their company tracking usage. If a purchaseOrderId value is given, it + * appears in the API responses and shows up in the invoice. The property + * accepts up to 80 plain text characters. This is only supported for Google + * Workspace entitlements. + * + * Generated from protobuf field string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $purchase_order_id = ''; + /** + * Output only. Settings for trial offers. + * + * Generated from protobuf field .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $trial_settings = null; + /** + * Association information to other entitlements. + * + * Generated from protobuf field .google.cloud.channel.v1.AssociationInfo association_info = 23; + */ + protected $association_info = null; + /** + * Extended entitlement parameters. When creating an entitlement, valid + * parameter names and values are defined in the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions]. + * For Google Workspace, the following Parameters may be accepted as input: + * - max_units: The maximum assignable units for a flexible offer + * OR + * - num_units: The total commitment for commitment-based offers + * The response may additionally include the following output-only Parameters: + * - assigned_units: The number of licenses assigned to users. + * For Google Cloud billing subaccounts, the following Parameter may be + * accepted as input: + * - display_name: The display name of the billing subaccount. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 26; + */ + private $parameters; + /** + * Optional. The billing account resource name that is used to pay for this + * entitlement. + * + * Generated from protobuf field string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $billing_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the entitlement is created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the entitlement is updated. + * @type string $offer + * Required. The offer resource name for which the entitlement is to be + * created. Takes the form: accounts/{account_id}/offers/{offer_id}. + * @type \Google\Cloud\Channel\V1\CommitmentSettings $commitment_settings + * Commitment settings for a commitment-based Offer. + * Required for commitment based offers. + * @type int $provisioning_state + * Output only. Current provisioning state of the entitlement. + * @type \Google\Cloud\Channel\V1\ProvisionedService $provisioned_service + * Output only. Service provisioning details for the entitlement. + * @type array|\Google\Protobuf\Internal\RepeatedField $suspension_reasons + * Output only. Enumerable of all current suspension reasons for an + * entitlement. + * @type string $purchase_order_id + * Optional. This purchase order (PO) information is for resellers to use for + * their company tracking usage. If a purchaseOrderId value is given, it + * appears in the API responses and shows up in the invoice. The property + * accepts up to 80 plain text characters. This is only supported for Google + * Workspace entitlements. + * @type \Google\Cloud\Channel\V1\TrialSettings $trial_settings + * Output only. Settings for trial offers. + * @type \Google\Cloud\Channel\V1\AssociationInfo $association_info + * Association information to other entitlements. + * @type array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters + * Extended entitlement parameters. When creating an entitlement, valid + * parameter names and values are defined in the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions]. + * For Google Workspace, the following Parameters may be accepted as input: + * - max_units: The maximum assignable units for a flexible offer + * OR + * - num_units: The total commitment for commitment-based offers + * The response may additionally include the following output-only Parameters: + * - assigned_units: The number of licenses assigned to users. + * For Google Cloud billing subaccounts, the following Parameter may be + * accepted as input: + * - display_name: The display name of the billing subaccount. + * @type string $billing_account + * Optional. The billing account resource name that is used to pay for this + * entitlement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_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 of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_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; + } + + /** + * Output only. The time at which the entitlement is 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 entitlement is 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 entitlement is 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 entitlement is 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; + } + + /** + * Required. The offer resource name for which the entitlement is to be + * created. Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getOffer() + { + return $this->offer; + } + + /** + * Required. The offer resource name for which the entitlement is to be + * created. Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkString($var, True); + $this->offer = $var; + + return $this; + } + + /** + * Commitment settings for a commitment-based Offer. + * Required for commitment based offers. + * + * Generated from protobuf field .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12; + * @return \Google\Cloud\Channel\V1\CommitmentSettings|null + */ + public function getCommitmentSettings() + { + return $this->commitment_settings; + } + + public function hasCommitmentSettings() + { + return isset($this->commitment_settings); + } + + public function clearCommitmentSettings() + { + unset($this->commitment_settings); + } + + /** + * Commitment settings for a commitment-based Offer. + * Required for commitment based offers. + * + * Generated from protobuf field .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12; + * @param \Google\Cloud\Channel\V1\CommitmentSettings $var + * @return $this + */ + public function setCommitmentSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CommitmentSettings::class); + $this->commitment_settings = $var; + + return $this; + } + + /** + * Output only. Current provisioning state of the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getProvisioningState() + { + return $this->provisioning_state; + } + + /** + * Output only. Current provisioning state of the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setProvisioningState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\Entitlement\ProvisioningState::class); + $this->provisioning_state = $var; + + return $this; + } + + /** + * Output only. Service provisioning details for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Channel\V1\ProvisionedService|null + */ + public function getProvisionedService() + { + return $this->provisioned_service; + } + + public function hasProvisionedService() + { + return isset($this->provisioned_service); + } + + public function clearProvisionedService() + { + unset($this->provisioned_service); + } + + /** + * Output only. Service provisioning details for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Channel\V1\ProvisionedService $var + * @return $this + */ + public function setProvisionedService($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ProvisionedService::class); + $this->provisioned_service = $var; + + return $this; + } + + /** + * Output only. Enumerable of all current suspension reasons for an + * entitlement. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSuspensionReasons() + { + return $this->suspension_reasons; + } + + /** + * Output only. Enumerable of all current suspension reasons for an + * entitlement. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSuspensionReasons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Channel\V1\Entitlement\SuspensionReason::class); + $this->suspension_reasons = $arr; + + return $this; + } + + /** + * Optional. This purchase order (PO) information is for resellers to use for + * their company tracking usage. If a purchaseOrderId value is given, it + * appears in the API responses and shows up in the invoice. The property + * accepts up to 80 plain text characters. This is only supported for Google + * Workspace entitlements. + * + * Generated from protobuf field string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPurchaseOrderId() + { + return $this->purchase_order_id; + } + + /** + * Optional. This purchase order (PO) information is for resellers to use for + * their company tracking usage. If a purchaseOrderId value is given, it + * appears in the API responses and shows up in the invoice. The property + * accepts up to 80 plain text characters. This is only supported for Google + * Workspace entitlements. + * + * Generated from protobuf field string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPurchaseOrderId($var) + { + GPBUtil::checkString($var, True); + $this->purchase_order_id = $var; + + return $this; + } + + /** + * Output only. Settings for trial offers. + * + * Generated from protobuf field .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Channel\V1\TrialSettings|null + */ + public function getTrialSettings() + { + return $this->trial_settings; + } + + public function hasTrialSettings() + { + return isset($this->trial_settings); + } + + public function clearTrialSettings() + { + unset($this->trial_settings); + } + + /** + * Output only. Settings for trial offers. + * + * Generated from protobuf field .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Channel\V1\TrialSettings $var + * @return $this + */ + public function setTrialSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\TrialSettings::class); + $this->trial_settings = $var; + + return $this; + } + + /** + * Association information to other entitlements. + * + * Generated from protobuf field .google.cloud.channel.v1.AssociationInfo association_info = 23; + * @return \Google\Cloud\Channel\V1\AssociationInfo|null + */ + public function getAssociationInfo() + { + return $this->association_info; + } + + public function hasAssociationInfo() + { + return isset($this->association_info); + } + + public function clearAssociationInfo() + { + unset($this->association_info); + } + + /** + * Association information to other entitlements. + * + * Generated from protobuf field .google.cloud.channel.v1.AssociationInfo association_info = 23; + * @param \Google\Cloud\Channel\V1\AssociationInfo $var + * @return $this + */ + public function setAssociationInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\AssociationInfo::class); + $this->association_info = $var; + + return $this; + } + + /** + * Extended entitlement parameters. When creating an entitlement, valid + * parameter names and values are defined in the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions]. + * For Google Workspace, the following Parameters may be accepted as input: + * - max_units: The maximum assignable units for a flexible offer + * OR + * - num_units: The total commitment for commitment-based offers + * The response may additionally include the following output-only Parameters: + * - assigned_units: The number of licenses assigned to users. + * For Google Cloud billing subaccounts, the following Parameter may be + * accepted as input: + * - display_name: The display name of the billing subaccount. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 26; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Extended entitlement parameters. When creating an entitlement, valid + * parameter names and values are defined in the + * [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions]. + * For Google Workspace, the following Parameters may be accepted as input: + * - max_units: The maximum assignable units for a flexible offer + * OR + * - num_units: The total commitment for commitment-based offers + * The response may additionally include the following output-only Parameters: + * - assigned_units: The number of licenses assigned to users. + * For Google Cloud billing subaccounts, the following Parameter may be + * accepted as input: + * - display_name: The display name of the billing subaccount. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 26; + * @param array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Optional. The billing account resource name that is used to pay for this + * entitlement. + * + * Generated from protobuf field string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Optional. The billing account resource name that is used to pay for this + * entitlement. + * + * Generated from protobuf field string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/ProvisioningState.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/ProvisioningState.php new file mode 100644 index 000000000000..9d6f6d77061a --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/ProvisioningState.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.Entitlement.ProvisioningState + */ +class ProvisioningState +{ + /** + * Not used. + * + * Generated from protobuf enum PROVISIONING_STATE_UNSPECIFIED = 0; + */ + const PROVISIONING_STATE_UNSPECIFIED = 0; + /** + * The entitlement is currently active. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The entitlement is currently suspended. + * + * Generated from protobuf enum SUSPENDED = 5; + */ + const SUSPENDED = 5; + + private static $valueToName = [ + self::PROVISIONING_STATE_UNSPECIFIED => 'PROVISIONING_STATE_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::SUSPENDED => 'SUSPENDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProvisioningState::class, \Google\Cloud\Channel\V1\Entitlement_ProvisioningState::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/SuspensionReason.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/SuspensionReason.php new file mode 100644 index 000000000000..ebdd898613e6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Entitlement/SuspensionReason.php @@ -0,0 +1,88 @@ +google.cloud.channel.v1.Entitlement.SuspensionReason + */ +class SuspensionReason +{ + /** + * Not used. + * + * Generated from protobuf enum SUSPENSION_REASON_UNSPECIFIED = 0; + */ + const SUSPENSION_REASON_UNSPECIFIED = 0; + /** + * Entitlement was manually suspended by the Reseller. + * + * Generated from protobuf enum RESELLER_INITIATED = 1; + */ + const RESELLER_INITIATED = 1; + /** + * Trial ended. + * + * Generated from protobuf enum TRIAL_ENDED = 2; + */ + const TRIAL_ENDED = 2; + /** + * Entitlement renewal was canceled. + * + * Generated from protobuf enum RENEWAL_WITH_TYPE_CANCEL = 3; + */ + const RENEWAL_WITH_TYPE_CANCEL = 3; + /** + * Entitlement was automatically suspended on creation for pending ToS + * acceptance on customer. + * + * Generated from protobuf enum PENDING_TOS_ACCEPTANCE = 4; + */ + const PENDING_TOS_ACCEPTANCE = 4; + /** + * Other reasons (internal reasons, abuse, etc.). + * + * Generated from protobuf enum OTHER = 100; + */ + const OTHER = 100; + + private static $valueToName = [ + self::SUSPENSION_REASON_UNSPECIFIED => 'SUSPENSION_REASON_UNSPECIFIED', + self::RESELLER_INITIATED => 'RESELLER_INITIATED', + self::TRIAL_ENDED => 'TRIAL_ENDED', + self::RENEWAL_WITH_TYPE_CANCEL => 'RENEWAL_WITH_TYPE_CANCEL', + self::PENDING_TOS_ACCEPTANCE => 'PENDING_TOS_ACCEPTANCE', + 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(SuspensionReason::class, \Google\Cloud\Channel\V1\Entitlement_SuspensionReason::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange.php new file mode 100644 index 000000000000..67712df14483 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange.php @@ -0,0 +1,494 @@ +google.cloud.channel.v1.EntitlementChange + */ +class EntitlementChange extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entitlement = ''; + /** + * Required. Resource name of the Offer at the time of change. + * Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $offer = ''; + /** + * Service provisioned for an Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 3; + */ + protected $provisioned_service = null; + /** + * The change action type. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4; + */ + protected $change_type = 0; + /** + * The submitted time of the change. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; + */ + protected $create_time = null; + /** + * Operator type responsible for the change. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6; + */ + protected $operator_type = 0; + /** + * Extended parameters, such as: + * purchase_order_number, gcp_details; + * internal_correlation_id, long_running_operation_id, order_id; + * etc. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 8; + */ + private $parameters; + /** + * Human-readable identifier that shows what operator made a change. + * When the operator_type is RESELLER, this is the user's email address. + * For all other operator types, this is empty. + * + * Generated from protobuf field string operator = 12; + */ + protected $operator = ''; + protected $change_reason; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $suspension_reason + * Suspension reason for the Entitlement. + * @type int $cancellation_reason + * Cancellation reason for the Entitlement. + * @type int $activation_reason + * The Entitlement's activation reason + * @type string $other_change_reason + * e.g. purchase_number change reason, entered by CRS. + * @type string $entitlement + * Required. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $offer + * Required. Resource name of the Offer at the time of change. + * Takes the form: accounts/{account_id}/offers/{offer_id}. + * @type \Google\Cloud\Channel\V1\ProvisionedService $provisioned_service + * Service provisioned for an Entitlement. + * @type int $change_type + * The change action type. + * @type \Google\Protobuf\Timestamp $create_time + * The submitted time of the change. + * @type int $operator_type + * Operator type responsible for the change. + * @type array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters + * Extended parameters, such as: + * purchase_order_number, gcp_details; + * internal_correlation_id, long_running_operation_id, order_id; + * etc. + * @type string $operator + * Human-readable identifier that shows what operator made a change. + * When the operator_type is RESELLER, this is the user's email address. + * For all other operator types, this is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\EntitlementChanges::initOnce(); + parent::__construct($data); + } + + /** + * Suspension reason for the Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9; + * @return int + */ + public function getSuspensionReason() + { + return $this->readOneof(9); + } + + public function hasSuspensionReason() + { + return $this->hasOneof(9); + } + + /** + * Suspension reason for the Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9; + * @param int $var + * @return $this + */ + public function setSuspensionReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\Entitlement\SuspensionReason::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Cancellation reason for the Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10; + * @return int + */ + public function getCancellationReason() + { + return $this->readOneof(10); + } + + public function hasCancellationReason() + { + return $this->hasOneof(10); + } + + /** + * Cancellation reason for the Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10; + * @param int $var + * @return $this + */ + public function setCancellationReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EntitlementChange\CancellationReason::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * The Entitlement's activation reason + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11; + * @return int + */ + public function getActivationReason() + { + return $this->readOneof(11); + } + + public function hasActivationReason() + { + return $this->hasOneof(11); + } + + /** + * The Entitlement's activation reason + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11; + * @param int $var + * @return $this + */ + public function setActivationReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EntitlementChange\ActivationReason::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * e.g. purchase_number change reason, entered by CRS. + * + * Generated from protobuf field string other_change_reason = 100; + * @return string + */ + public function getOtherChangeReason() + { + return $this->readOneof(100); + } + + public function hasOtherChangeReason() + { + return $this->hasOneof(100); + } + + /** + * e.g. purchase_number change reason, entered by CRS. + * + * Generated from protobuf field string other_change_reason = 100; + * @param string $var + * @return $this + */ + public function setOtherChangeReason($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Required. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Required. Resource name of an entitlement in the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + + /** + * Required. Resource name of the Offer at the time of change. + * Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getOffer() + { + return $this->offer; + } + + /** + * Required. Resource name of the Offer at the time of change. + * Takes the form: accounts/{account_id}/offers/{offer_id}. + * + * Generated from protobuf field string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkString($var, True); + $this->offer = $var; + + return $this; + } + + /** + * Service provisioned for an Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 3; + * @return \Google\Cloud\Channel\V1\ProvisionedService|null + */ + public function getProvisionedService() + { + return $this->provisioned_service; + } + + public function hasProvisionedService() + { + return isset($this->provisioned_service); + } + + public function clearProvisionedService() + { + unset($this->provisioned_service); + } + + /** + * Service provisioned for an Entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ProvisionedService provisioned_service = 3; + * @param \Google\Cloud\Channel\V1\ProvisionedService $var + * @return $this + */ + public function setProvisionedService($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ProvisionedService::class); + $this->provisioned_service = $var; + + return $this; + } + + /** + * The change action type. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * The change action type. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EntitlementChange\ChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * The submitted time of the change. + * + * 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); + } + + /** + * The submitted time of the change. + * + * 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; + } + + /** + * Operator type responsible for the change. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6; + * @return int + */ + public function getOperatorType() + { + return $this->operator_type; + } + + /** + * Operator type responsible for the change. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6; + * @param int $var + * @return $this + */ + public function setOperatorType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EntitlementChange\OperatorType::class); + $this->operator_type = $var; + + return $this; + } + + /** + * Extended parameters, such as: + * purchase_order_number, gcp_details; + * internal_correlation_id, long_running_operation_id, order_id; + * etc. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Extended parameters, such as: + * purchase_order_number, gcp_details; + * internal_correlation_id, long_running_operation_id, order_id; + * etc. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Parameter parameters = 8; + * @param array<\Google\Cloud\Channel\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Human-readable identifier that shows what operator made a change. + * When the operator_type is RESELLER, this is the user's email address. + * For all other operator types, this is empty. + * + * Generated from protobuf field string operator = 12; + * @return string + */ + public function getOperator() + { + return $this->operator; + } + + /** + * Human-readable identifier that shows what operator made a change. + * When the operator_type is RESELLER, this is the user's email address. + * For all other operator types, this is empty. + * + * Generated from protobuf field string operator = 12; + * @param string $var + * @return $this + */ + public function setOperator($var) + { + GPBUtil::checkString($var, True); + $this->operator = $var; + + return $this; + } + + /** + * @return string + */ + public function getChangeReason() + { + return $this->whichOneof("change_reason"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ActivationReason.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ActivationReason.php new file mode 100644 index 000000000000..af51562238bf --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ActivationReason.php @@ -0,0 +1,81 @@ +google.cloud.channel.v1.EntitlementChange.ActivationReason + */ +class ActivationReason +{ + /** + * Not used. + * + * Generated from protobuf enum ACTIVATION_REASON_UNSPECIFIED = 0; + */ + const ACTIVATION_REASON_UNSPECIFIED = 0; + /** + * Reseller reactivated a suspended Entitlement. + * + * Generated from protobuf enum RESELLER_REVOKED_SUSPENSION = 1; + */ + const RESELLER_REVOKED_SUSPENSION = 1; + /** + * Customer accepted pending terms of service. + * + * Generated from protobuf enum CUSTOMER_ACCEPTED_PENDING_TOS = 2; + */ + const CUSTOMER_ACCEPTED_PENDING_TOS = 2; + /** + * Reseller updated the renewal settings on an entitlement that was + * suspended due to cancellation, and this update reactivated the + * entitlement. + * + * Generated from protobuf enum RENEWAL_SETTINGS_CHANGED = 3; + */ + const RENEWAL_SETTINGS_CHANGED = 3; + /** + * Other reasons (Activated temporarily for cancellation, added a payment + * plan to a trial entitlement, etc.) + * + * Generated from protobuf enum OTHER_ACTIVATION_REASON = 100; + */ + const OTHER_ACTIVATION_REASON = 100; + + private static $valueToName = [ + self::ACTIVATION_REASON_UNSPECIFIED => 'ACTIVATION_REASON_UNSPECIFIED', + self::RESELLER_REVOKED_SUSPENSION => 'RESELLER_REVOKED_SUSPENSION', + self::CUSTOMER_ACCEPTED_PENDING_TOS => 'CUSTOMER_ACCEPTED_PENDING_TOS', + self::RENEWAL_SETTINGS_CHANGED => 'RENEWAL_SETTINGS_CHANGED', + self::OTHER_ACTIVATION_REASON => 'OTHER_ACTIVATION_REASON', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActivationReason::class, \Google\Cloud\Channel\V1\EntitlementChange_ActivationReason::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/CancellationReason.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/CancellationReason.php new file mode 100644 index 000000000000..354bbfa5db17 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/CancellationReason.php @@ -0,0 +1,73 @@ +google.cloud.channel.v1.EntitlementChange.CancellationReason + */ +class CancellationReason +{ + /** + * Not used. + * + * Generated from protobuf enum CANCELLATION_REASON_UNSPECIFIED = 0; + */ + const CANCELLATION_REASON_UNSPECIFIED = 0; + /** + * Reseller triggered a cancellation of the service. + * + * Generated from protobuf enum SERVICE_TERMINATED = 1; + */ + const SERVICE_TERMINATED = 1; + /** + * Relationship between the reseller and customer has ended due to a + * transfer. + * + * Generated from protobuf enum RELATIONSHIP_ENDED = 2; + */ + const RELATIONSHIP_ENDED = 2; + /** + * Entitlement transferred away from reseller while still keeping other + * entitlement(s) with the reseller. + * + * Generated from protobuf enum PARTIAL_TRANSFER = 3; + */ + const PARTIAL_TRANSFER = 3; + + private static $valueToName = [ + self::CANCELLATION_REASON_UNSPECIFIED => 'CANCELLATION_REASON_UNSPECIFIED', + self::SERVICE_TERMINATED => 'SERVICE_TERMINATED', + self::RELATIONSHIP_ENDED => 'RELATIONSHIP_ENDED', + self::PARTIAL_TRANSFER => 'PARTIAL_TRANSFER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CancellationReason::class, \Google\Cloud\Channel\V1\EntitlementChange_CancellationReason::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ChangeType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ChangeType.php new file mode 100644 index 000000000000..287b02710bf7 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/ChangeType.php @@ -0,0 +1,151 @@ +google.cloud.channel.v1.EntitlementChange.ChangeType + */ +class ChangeType +{ + /** + * Not used. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * New Entitlement was created. + * + * Generated from protobuf enum CREATED = 1; + */ + const CREATED = 1; + /** + * Price plan associated with an Entitlement was changed. + * + * Generated from protobuf enum PRICE_PLAN_SWITCHED = 3; + */ + const PRICE_PLAN_SWITCHED = 3; + /** + * Number of seats committed for a commitment Entitlement was changed. + * + * Generated from protobuf enum COMMITMENT_CHANGED = 4; + */ + const COMMITMENT_CHANGED = 4; + /** + * An annual Entitlement was renewed. + * + * Generated from protobuf enum RENEWED = 5; + */ + const RENEWED = 5; + /** + * Entitlement was suspended. + * + * Generated from protobuf enum SUSPENDED = 6; + */ + const SUSPENDED = 6; + /** + * Entitlement was activated. + * + * Generated from protobuf enum ACTIVATED = 7; + */ + const ACTIVATED = 7; + /** + * Entitlement was cancelled. + * + * Generated from protobuf enum CANCELLED = 8; + */ + const CANCELLED = 8; + /** + * Entitlement was upgraded or downgraded for ex. from Google Workspace + * Business Standard to Google Workspace Business Plus. + * + * Generated from protobuf enum SKU_CHANGED = 9; + */ + const SKU_CHANGED = 9; + /** + * The settings for renewal of an Entitlement have changed. + * + * Generated from protobuf enum RENEWAL_SETTING_CHANGED = 10; + */ + const RENEWAL_SETTING_CHANGED = 10; + /** + * Use for Google Workspace subscription. + * Either a trial was converted to a paid subscription or a new subscription + * with no trial is created. + * + * Generated from protobuf enum PAID_SUBSCRIPTION_STARTED = 11; + */ + const PAID_SUBSCRIPTION_STARTED = 11; + /** + * License cap was changed for the entitlement. + * + * Generated from protobuf enum LICENSE_CAP_CHANGED = 12; + */ + const LICENSE_CAP_CHANGED = 12; + /** + * The suspension details have changed (but it is still suspended). + * + * Generated from protobuf enum SUSPENSION_DETAILS_CHANGED = 13; + */ + const SUSPENSION_DETAILS_CHANGED = 13; + /** + * The trial end date was extended. + * + * Generated from protobuf enum TRIAL_END_DATE_EXTENDED = 14; + */ + const TRIAL_END_DATE_EXTENDED = 14; + /** + * Entitlement started trial. + * + * Generated from protobuf enum TRIAL_STARTED = 15; + */ + const TRIAL_STARTED = 15; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::CREATED => 'CREATED', + self::PRICE_PLAN_SWITCHED => 'PRICE_PLAN_SWITCHED', + self::COMMITMENT_CHANGED => 'COMMITMENT_CHANGED', + self::RENEWED => 'RENEWED', + self::SUSPENDED => 'SUSPENDED', + self::ACTIVATED => 'ACTIVATED', + self::CANCELLED => 'CANCELLED', + self::SKU_CHANGED => 'SKU_CHANGED', + self::RENEWAL_SETTING_CHANGED => 'RENEWAL_SETTING_CHANGED', + self::PAID_SUBSCRIPTION_STARTED => 'PAID_SUBSCRIPTION_STARTED', + self::LICENSE_CAP_CHANGED => 'LICENSE_CAP_CHANGED', + self::SUSPENSION_DETAILS_CHANGED => 'SUSPENSION_DETAILS_CHANGED', + self::TRIAL_END_DATE_EXTENDED => 'TRIAL_END_DATE_EXTENDED', + self::TRIAL_STARTED => 'TRIAL_STARTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeType::class, \Google\Cloud\Channel\V1\EntitlementChange_ChangeType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/OperatorType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/OperatorType.php new file mode 100644 index 000000000000..f11ac14fc253 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementChange/OperatorType.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.EntitlementChange.OperatorType + */ +class OperatorType +{ + /** + * Not used. + * + * Generated from protobuf enum OPERATOR_TYPE_UNSPECIFIED = 0; + */ + const OPERATOR_TYPE_UNSPECIFIED = 0; + /** + * Customer service representative. + * + * Generated from protobuf enum CUSTOMER_SERVICE_REPRESENTATIVE = 1; + */ + const CUSTOMER_SERVICE_REPRESENTATIVE = 1; + /** + * System auto job. + * + * Generated from protobuf enum SYSTEM = 2; + */ + const SYSTEM = 2; + /** + * Customer user. + * + * Generated from protobuf enum CUSTOMER = 3; + */ + const CUSTOMER = 3; + /** + * Reseller user. + * + * Generated from protobuf enum RESELLER = 4; + */ + const RESELLER = 4; + + private static $valueToName = [ + self::OPERATOR_TYPE_UNSPECIFIED => 'OPERATOR_TYPE_UNSPECIFIED', + self::CUSTOMER_SERVICE_REPRESENTATIVE => 'CUSTOMER_SERVICE_REPRESENTATIVE', + self::SYSTEM => 'SYSTEM', + self::CUSTOMER => 'CUSTOMER', + self::RESELLER => 'RESELLER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OperatorType::class, \Google\Cloud\Channel\V1\EntitlementChange_OperatorType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent.php new file mode 100644 index 000000000000..a6cf1b568f90 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent.php @@ -0,0 +1,105 @@ +google.cloud.channel.v1.EntitlementEvent + */ +class EntitlementEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of an entitlement of the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + */ + protected $entitlement = ''; + /** + * Type of event which happened on the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; + */ + protected $event_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entitlement + * Resource name of an entitlement of the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type int $event_type + * Type of event which happened on the entitlement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\SubscriberEvent::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of an entitlement of the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Resource name of an entitlement of the form: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + + /** + * Type of event which happened on the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; + * @return int + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * Type of event which happened on the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; + * @param int $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\EntitlementEvent\Type::class); + $this->event_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent/Type.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent/Type.php new file mode 100644 index 000000000000..e6a5c01aeadc --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/EntitlementEvent/Type.php @@ -0,0 +1,137 @@ +google.cloud.channel.v1.EntitlementEvent.Type + */ +class Type +{ + /** + * Not used. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * A new entitlement was created. + * + * Generated from protobuf enum CREATED = 1; + */ + const CREATED = 1; + /** + * The offer type associated with an entitlement was changed. + * This is not triggered if an entitlement converts from a commit offer to a + * flexible offer as part of a renewal. + * + * Generated from protobuf enum PRICE_PLAN_SWITCHED = 3; + */ + const PRICE_PLAN_SWITCHED = 3; + /** + * Annual commitment for a commit plan was changed. + * + * Generated from protobuf enum COMMITMENT_CHANGED = 4; + */ + const COMMITMENT_CHANGED = 4; + /** + * An annual entitlement was renewed. + * + * Generated from protobuf enum RENEWED = 5; + */ + const RENEWED = 5; + /** + * Entitlement was suspended. + * + * Generated from protobuf enum SUSPENDED = 6; + */ + const SUSPENDED = 6; + /** + * Entitlement was unsuspended. + * + * Generated from protobuf enum ACTIVATED = 7; + */ + const ACTIVATED = 7; + /** + * Entitlement was cancelled. + * + * Generated from protobuf enum CANCELLED = 8; + */ + const CANCELLED = 8; + /** + * Entitlement was upgraded or downgraded (e.g. from Google Workspace + * Business Standard to Google Workspace Business Plus). + * + * Generated from protobuf enum SKU_CHANGED = 9; + */ + const SKU_CHANGED = 9; + /** + * The renewal settings of an entitlement has changed. + * + * Generated from protobuf enum RENEWAL_SETTING_CHANGED = 10; + */ + const RENEWAL_SETTING_CHANGED = 10; + /** + * Paid service has started on trial entitlement. + * + * Generated from protobuf enum PAID_SERVICE_STARTED = 11; + */ + const PAID_SERVICE_STARTED = 11; + /** + * License was assigned to or revoked from a user. + * + * Generated from protobuf enum LICENSE_ASSIGNMENT_CHANGED = 12; + */ + const LICENSE_ASSIGNMENT_CHANGED = 12; + /** + * License cap was changed for the entitlement. + * + * Generated from protobuf enum LICENSE_CAP_CHANGED = 13; + */ + const LICENSE_CAP_CHANGED = 13; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::CREATED => 'CREATED', + self::PRICE_PLAN_SWITCHED => 'PRICE_PLAN_SWITCHED', + self::COMMITMENT_CHANGED => 'COMMITMENT_CHANGED', + self::RENEWED => 'RENEWED', + self::SUSPENDED => 'SUSPENDED', + self::ACTIVATED => 'ACTIVATED', + self::CANCELLED => 'CANCELLED', + self::SKU_CHANGED => 'SKU_CHANGED', + self::RENEWAL_SETTING_CHANGED => 'RENEWAL_SETTING_CHANGED', + self::PAID_SERVICE_STARTED => 'PAID_SERVICE_STARTED', + self::LICENSE_ASSIGNMENT_CHANGED => 'LICENSE_ASSIGNMENT_CHANGED', + self::LICENSE_CAP_CHANGED => 'LICENSE_CAP_CHANGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\Channel\V1\EntitlementEvent_Type::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsRequest.php new file mode 100644 index 000000000000..6990c7569ff9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsRequest.php @@ -0,0 +1,240 @@ +google.cloud.channel.v1.FetchReportResultsRequest + */ +class FetchReportResultsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The report job created by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * Report_job uses the format: + * accounts/{account_id}/reportJobs/{report_job_id} + * + * Generated from protobuf field string report_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $report_job = ''; + /** + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). + * The maximum value is 30,000; the server will change larger values to + * 30,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that specifies a page of results beyond the first page. + * Obtained through + * [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. List of keys specifying which report partitions to return. + * If empty, returns all partitions. + * + * Generated from protobuf field repeated string partition_keys = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $partition_keys; + + /** + * @param string $reportJob Required. The report job created by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * Report_job uses the format: + * accounts/{account_id}/reportJobs/{report_job_id} + * Please see {@see CloudChannelReportsServiceClient::reportJobName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\FetchReportResultsRequest + * + * @experimental + */ + public static function build(string $reportJob): self + { + return (new self()) + ->setReportJob($reportJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $report_job + * Required. The report job created by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * Report_job uses the format: + * accounts/{account_id}/reportJobs/{report_job_id} + * @type int $page_size + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). + * The maximum value is 30,000; the server will change larger values to + * 30,000. + * @type string $page_token + * Optional. A token that specifies a page of results beyond the first page. + * Obtained through + * [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + * call. + * @type array|\Google\Protobuf\Internal\RepeatedField $partition_keys + * Optional. List of keys specifying which report partitions to return. + * If empty, returns all partitions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The report job created by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * Report_job uses the format: + * accounts/{account_id}/reportJobs/{report_job_id} + * + * Generated from protobuf field string report_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getReportJob() + { + return $this->report_job; + } + + /** + * Required. The report job created by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * Report_job uses the format: + * accounts/{account_id}/reportJobs/{report_job_id} + * + * Generated from protobuf field string report_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReportJob($var) + { + GPBUtil::checkString($var, True); + $this->report_job = $var; + + return $this; + } + + /** + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). + * The maximum value is 30,000; the server will change larger values to + * 30,000. + * + * 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 of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). + * The maximum value is 30,000; the server will change larger values to + * 30,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 token that specifies a page of results beyond the first page. + * Obtained through + * [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + * call. + * + * 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 that specifies a page of results beyond the first page. + * Obtained through + * [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + * 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. List of keys specifying which report partitions to return. + * If empty, returns all partitions. + * + * Generated from protobuf field repeated string partition_keys = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartitionKeys() + { + return $this->partition_keys; + } + + /** + * Optional. List of keys specifying which report partitions to return. + * If empty, returns all partitions. + * + * Generated from protobuf field repeated string partition_keys = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartitionKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->partition_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsResponse.php new file mode 100644 index 000000000000..0e726c0369e3 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/FetchReportResultsResponse.php @@ -0,0 +1,164 @@ +google.cloud.channel.v1.FetchReportResultsResponse + */ +class FetchReportResultsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The metadata for the report results (display name, columns, row count, and + * date ranges). + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 1; + */ + protected $report_metadata = null; + /** + * The report's lists of values. Each row follows the settings and ordering + * of the columns from `report_metadata`. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Row rows = 2; + */ + private $rows; + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of 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\Cloud\Channel\V1\ReportResultsMetadata $report_metadata + * The metadata for the report results (display name, columns, row count, and + * date ranges). + * @type array<\Google\Cloud\Channel\V1\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * The report's lists of values. Each row follows the settings and ordering + * of the columns from `report_metadata`. + * @type string $next_page_token + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The metadata for the report results (display name, columns, row count, and + * date ranges). + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 1; + * @return \Google\Cloud\Channel\V1\ReportResultsMetadata|null + */ + public function getReportMetadata() + { + return $this->report_metadata; + } + + public function hasReportMetadata() + { + return isset($this->report_metadata); + } + + public function clearReportMetadata() + { + unset($this->report_metadata); + } + + /** + * The metadata for the report results (display name, columns, row count, and + * date ranges). + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 1; + * @param \Google\Cloud\Channel\V1\ReportResultsMetadata $var + * @return $this + */ + public function setReportMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ReportResultsMetadata::class); + $this->report_metadata = $var; + + return $this; + } + + /** + * The report's lists of values. Each row follows the settings and ordering + * of the columns from `report_metadata`. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Row rows = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * The report's lists of values. Each row follows the settings and ordering + * of the columns from `report_metadata`. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Row rows = 2; + * @param array<\Google\Cloud\Channel\V1\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 3; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerLinkRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerLinkRequest.php new file mode 100644 index 000000000000..83a20fb9ff76 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerLinkRequest.php @@ -0,0 +1,110 @@ +google.cloud.channel.v1.GetChannelPartnerLinkRequest + */ +class GetChannelPartnerLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the channel partner link to retrieve. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. The level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the channel partner link to retrieve. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * @type int $view + * Optional. The level of granularity the ChannelPartnerLink will display. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the channel partner link to retrieve. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * 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 channel partner link to retrieve. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * 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 level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. The level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ChannelPartnerLinkView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerRepricingConfigRequest.php new file mode 100644 index 000000000000..6937f4fb2578 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetChannelPartnerRepricingConfigRequest.php @@ -0,0 +1,92 @@ +google.cloud.channel.v1.GetChannelPartnerRepricingConfigRequest + */ +class GetChannelPartnerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ChannelPartnerRepricingConfig + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{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 ChannelPartnerRepricingConfig + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. Please see + * {@see CloudChannelServiceClient::channelPartnerRepricingConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\GetChannelPartnerRepricingConfigRequest + * + * @experimental + */ + public static function 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 ChannelPartnerRepricingConfig + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ChannelPartnerRepricingConfig + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{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 ChannelPartnerRepricingConfig + * Format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{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/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRepricingConfigRequest.php new file mode 100644 index 000000000000..a45c0826adb1 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRepricingConfigRequest.php @@ -0,0 +1,92 @@ +google.cloud.channel.v1.GetCustomerRepricingConfigRequest + */ +class GetCustomerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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 CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. Please see + * {@see CloudChannelServiceClient::customerRepricingConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\GetCustomerRepricingConfigRequest + * + * @experimental + */ + public static function 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 CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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 CustomerRepricingConfig. + * Format: + * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{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/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRequest.php new file mode 100644 index 000000000000..936a2d67b50c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetCustomerRequest.php @@ -0,0 +1,87 @@ +google.cloud.channel.v1.GetCustomerRequest + */ +class GetCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer to retrieve. + * Name uses the format: accounts/{account_id}/customers/{customer_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 customer to retrieve. + * Name uses the format: accounts/{account_id}/customers/{customer_id} + * Please see {@see CloudChannelServiceClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\GetCustomerRequest + * + * @experimental + */ + public static function 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 customer to retrieve. + * Name uses the format: accounts/{account_id}/customers/{customer_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer to retrieve. + * Name uses the format: accounts/{account_id}/customers/{customer_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 customer to retrieve. + * Name uses the format: accounts/{account_id}/customers/{customer_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/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetEntitlementRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetEntitlementRequest.php new file mode 100644 index 000000000000..26585f4e6cd3 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/GetEntitlementRequest.php @@ -0,0 +1,76 @@ +google.cloud.channel.v1.GetEntitlementRequest + */ +class GetEntitlementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to retrieve. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to retrieve. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to retrieve. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_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 entitlement to retrieve. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ImportCustomerRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ImportCustomerRequest.php new file mode 100644 index 000000000000..66b9c2eb6a15 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ImportCustomerRequest.php @@ -0,0 +1,360 @@ +google.cloud.channel.v1.ImportCustomerRequest + */ +class ImportCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's account. + * Parent takes the format: accounts/{account_id} or + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $auth_token = ''; + /** + * Required. Choose to overwrite an existing customer if found. + * This must be set to true if there is an existing customer with a + * conflicting region code or domain. + * + * Generated from protobuf field bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $overwrite_if_exists = false; + /** + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. + * + * Generated from protobuf field string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $channel_partner_id = ''; + /** + * Optional. Specifies the customer that will receive imported Cloud Identity + * information. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $customer = ''; + protected $customer_identity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $domain + * Required. Customer domain. + * @type string $cloud_identity_id + * Required. Customer's Cloud Identity ID + * @type string $primary_admin_email + * Required. Customer's primary admin email. + * @type string $parent + * Required. The resource name of the reseller's account. + * Parent takes the format: accounts/{account_id} or + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * @type string $auth_token + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * @type bool $overwrite_if_exists + * Required. Choose to overwrite an existing customer if found. + * This must be set to true if there is an existing customer with a + * conflicting region code or domain. + * @type string $channel_partner_id + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. + * @type string $customer + * Optional. Specifies the customer that will receive imported Cloud Identity + * information. + * Format: accounts/{account_id}/customers/{customer_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Customer domain. + * + * Generated from protobuf field string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDomain() + { + return $this->readOneof(2); + } + + public function hasDomain() + { + return $this->hasOneof(2); + } + + /** + * Required. Customer domain. + * + * Generated from protobuf field string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Required. Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCloudIdentityId() + { + return $this->readOneof(3); + } + + public function hasCloudIdentityId() + { + return $this->hasOneof(3); + } + + /** + * Required. Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. Customer's primary admin email. + * + * Generated from protobuf field string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPrimaryAdminEmail() + { + return $this->readOneof(8); + } + + public function hasPrimaryAdminEmail() + { + return $this->hasOneof(8); + } + + /** + * Required. Customer's primary admin email. + * + * Generated from protobuf field string primary_admin_email = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPrimaryAdminEmail($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Required. The resource name of the reseller's account. + * Parent takes the format: accounts/{account_id} or + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller's account. + * Parent takes the format: accounts/{account_id} or + * accounts/{account_id}/channelPartnerLinks/{channel_partner_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; + } + + /** + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAuthToken() + { + return $this->auth_token; + } + + /** + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAuthToken($var) + { + GPBUtil::checkString($var, True); + $this->auth_token = $var; + + return $this; + } + + /** + * Required. Choose to overwrite an existing customer if found. + * This must be set to true if there is an existing customer with a + * conflicting region code or domain. + * + * Generated from protobuf field bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getOverwriteIfExists() + { + return $this->overwrite_if_exists; + } + + /** + * Required. Choose to overwrite an existing customer if found. + * This must be set to true if there is an existing customer with a + * conflicting region code or domain. + * + * Generated from protobuf field bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setOverwriteIfExists($var) + { + GPBUtil::checkBool($var); + $this->overwrite_if_exists = $var; + + return $this; + } + + /** + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. + * + * Generated from protobuf field string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getChannelPartnerId() + { + return $this->channel_partner_id; + } + + /** + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. + * + * Generated from protobuf field string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setChannelPartnerId($var) + { + GPBUtil::checkString($var, True); + $this->channel_partner_id = $var; + + return $this; + } + + /** + * Optional. Specifies the customer that will receive imported Cloud Identity + * information. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Optional. Specifies the customer that will receive imported Cloud Identity + * information. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * @return string + */ + public function getCustomerIdentity() + { + return $this->whichOneof("customer_identity"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksRequest.php new file mode 100644 index 000000000000..e923617f485b --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksRequest.php @@ -0,0 +1,202 @@ +google.cloud.channel.v1.ListChannelPartnerLinksRequest + */ +class ListChannelPartnerLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * Obtained using + * [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * Obtained using + * [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] + * call. + * @type int $view + * Optional. The level of granularity the ChannelPartnerLink will display. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_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; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. + * + * 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 might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 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. A token for a page of results other than the first page. + * Obtained using + * [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] + * call. + * + * 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 for a page of results other than the first page. + * Obtained using + * [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] + * 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. The level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. The level of granularity the ChannelPartnerLink will display. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLinkView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ChannelPartnerLinkView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksResponse.php new file mode 100644 index 000000000000..fd67e919af80 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerLinksResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListChannelPartnerLinksResponse + */ +class ListChannelPartnerLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The Channel partner links for a reseller. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerLink channel_partner_links = 1; + */ + private $channel_partner_links; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.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\Channel\V1\ChannelPartnerLink>|\Google\Protobuf\Internal\RepeatedField $channel_partner_links + * The Channel partner links for a reseller. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The Channel partner links for a reseller. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerLink channel_partner_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChannelPartnerLinks() + { + return $this->channel_partner_links; + } + + /** + * The Channel partner links for a reseller. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerLink channel_partner_links = 1; + * @param array<\Google\Cloud\Channel\V1\ChannelPartnerLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChannelPartnerLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\ChannelPartnerLink::class); + $this->channel_partner_links = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.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 the next page of results. + * Pass to + * [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsRequest.php new file mode 100644 index 000000000000..599896304dbc --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsRequest.php @@ -0,0 +1,265 @@ +google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest + */ +class ListChannelPartnerRepricingConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + * uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. + * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs + * for all channel partners. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 beyond the first page. + * Obtained through + * [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set + * `parent=accounts/{account_id}/channelPartnerLinks/-`. + * Example: `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c1` OR `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c2`. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + * uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. + * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs + * for all channel partners. Please see + * {@see CloudChannelServiceClient::channelPartnerLinkName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\ListChannelPartnerRepricingConfigsRequest + * + * @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 account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + * uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. + * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs + * for all channel partners. + * @type int $page_size + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * @type string $page_token + * Optional. A token identifying a page of results beyond the first page. + * Obtained through + * [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] + * call. + * @type string $filter + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set + * `parent=accounts/{account_id}/channelPartnerLinks/-`. + * Example: `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c1` OR `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c2`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + * uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. + * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs + * for all channel partners. + * + * Generated 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 account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + * uses the format: + * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. + * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs + * for all channel partners. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 beyond the first page. + * Obtained through + * [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] + * call. + * + * 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 beyond the first page. + * Obtained through + * [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] + * 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. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set + * `parent=accounts/{account_id}/channelPartnerLinks/-`. + * Example: `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c1` OR `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c2`. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set + * `parent=accounts/{account_id}/channelPartnerLinks/-`. + * Example: `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c1` OR `channel_partner_link = + * accounts/account_id/channelPartnerLinks/c2`. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsResponse.php new file mode 100644 index 000000000000..de8ee1005901 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListChannelPartnerRepricingConfigsResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse + */ +class ListChannelPartnerRepricingConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_configs = 1; + */ + private $channel_partner_repricing_configs; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.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\Channel\V1\ChannelPartnerRepricingConfig>|\Google\Protobuf\Internal\RepeatedField $channel_partner_repricing_configs + * The repricing configs for this channel partner. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_configs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChannelPartnerRepricingConfigs() + { + return $this->channel_partner_repricing_configs; + } + + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_configs = 1; + * @param array<\Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChannelPartnerRepricingConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig::class); + $this->channel_partner_repricing_configs = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.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 the next page of results. + * Pass to + * [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsRequest.php new file mode 100644 index 000000000000..0e66f0310e66 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsRequest.php @@ -0,0 +1,247 @@ +google.cloud.channel.v1.ListCustomerRepricingConfigsRequest + */ +class ListCustomerRepricingConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer. + * Parent uses the format: accounts/{account_id}/customers/{customer_id}. + * Supports accounts/{account_id}/customers/- to retrieve configs for all + * customers. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 beyond the first page. + * Obtained through + * [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] + * results (customer only). You can use this filter when you support + * a BatchGet-like query. + * To use the filter, you must set `parent=accounts/{account_id}/customers/-`. + * Example: customer = accounts/account_id/customers/c1 OR + * customer = accounts/account_id/customers/c2. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the customer. + * Parent uses the format: accounts/{account_id}/customers/{customer_id}. + * Supports accounts/{account_id}/customers/- to retrieve configs for all + * customers. Please see + * {@see CloudChannelServiceClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\ListCustomerRepricingConfigsRequest + * + * @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 customer. + * Parent uses the format: accounts/{account_id}/customers/{customer_id}. + * Supports accounts/{account_id}/customers/- to retrieve configs for all + * customers. + * @type int $page_size + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * @type string $page_token + * Optional. A token identifying a page of results beyond the first page. + * Obtained through + * [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] + * call. + * @type string $filter + * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] + * results (customer only). You can use this filter when you support + * a BatchGet-like query. + * To use the filter, you must set `parent=accounts/{account_id}/customers/-`. + * Example: customer = accounts/account_id/customers/c1 OR + * customer = accounts/account_id/customers/c2. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer. + * Parent uses the format: accounts/{account_id}/customers/{customer_id}. + * Supports accounts/{account_id}/customers/- to retrieve configs for all + * customers. + * + * Generated 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 customer. + * Parent uses the format: accounts/{account_id}/customers/{customer_id}. + * Supports accounts/{account_id}/customers/- to retrieve configs for all + * customers. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. + * + * 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 beyond the first page. + * Obtained through + * [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] + * call. + * + * 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 beyond the first page. + * Obtained through + * [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] + * 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. A filter for [CloudChannelService.ListCustomerRepricingConfigs] + * results (customer only). You can use this filter when you support + * a BatchGet-like query. + * To use the filter, you must set `parent=accounts/{account_id}/customers/-`. + * Example: customer = accounts/account_id/customers/c1 OR + * customer = accounts/account_id/customers/c2. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] + * results (customer only). You can use this filter when you support + * a BatchGet-like query. + * To use the filter, you must set `parent=accounts/{account_id}/customers/-`. + * Example: customer = accounts/account_id/customers/c1 OR + * customer = accounts/account_id/customers/c2. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsResponse.php new file mode 100644 index 000000000000..44e58bfd740d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomerRepricingConfigsResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListCustomerRepricingConfigsResponse + */ +class ListCustomerRepricingConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_configs = 1; + */ + private $customer_repricing_configs; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.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\Channel\V1\CustomerRepricingConfig>|\Google\Protobuf\Internal\RepeatedField $customer_repricing_configs + * The repricing configs for this channel partner. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_configs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomerRepricingConfigs() + { + return $this->customer_repricing_configs; + } + + /** + * The repricing configs for this channel partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_configs = 1; + * @param array<\Google\Cloud\Channel\V1\CustomerRepricingConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomerRepricingConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\CustomerRepricingConfig::class); + $this->customer_repricing_configs = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.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 the next page of results. + * Pass to + * [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersRequest.php new file mode 100644 index 000000000000..5b0e24201bbb --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersRequest.php @@ -0,0 +1,214 @@ +google.cloud.channel.v1.ListCustomersRequest + */ +class ListCustomersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller account to list customers from. + * Parent uses the format: accounts/{account_id}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The + * maximum value is 50. + * + * 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 other than the first page. + * Obtained through + * [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See + * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers + * for more information. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller account to list customers from. + * Parent uses the format: accounts/{account_id}. + * @type int $page_size + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The + * maximum value is 50. + * @type string $page_token + * Optional. A token identifying a page of results other than the first page. + * Obtained through + * [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] + * call. + * @type string $filter + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See + * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers + * for more information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller account to list customers from. + * Parent uses the format: accounts/{account_id}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller account to list customers from. + * Parent uses the format: accounts/{account_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; + } + + /** + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The + * maximum value is 50. + * + * 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 customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The + * maximum value is 50. + * + * 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 other than the first page. + * Obtained through + * [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] + * call. + * + * 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 other than the first page. + * Obtained through + * [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] + * 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. Filters applied to the [CloudChannelService.ListCustomers] + * results. See + * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers + * for more information. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See + * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers + * for more information. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersResponse.php new file mode 100644 index 000000000000..02aed433f643 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListCustomersResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListCustomersResponse + */ +class ListCustomersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The customers belonging to a reseller or distributor. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Customer customers = 1; + */ + private $customers; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.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\Channel\V1\Customer>|\Google\Protobuf\Internal\RepeatedField $customers + * The customers belonging to a reseller or distributor. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The customers belonging to a reseller or distributor. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Customer customers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomers() + { + return $this->customers; + } + + /** + * The customers belonging to a reseller or distributor. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Customer customers = 1; + * @param array<\Google\Cloud\Channel\V1\Customer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Customer::class); + $this->customers = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.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 the next page of results. + * Pass to + * [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesRequest.php new file mode 100644 index 000000000000..e14327e24ec9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesRequest.php @@ -0,0 +1,237 @@ +google.cloud.channel.v1.ListEntitlementChangesRequest + */ +class ListEntitlementChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement for which to list + * entitlement changes. The `-` wildcard may be used to match entitlements + * across a customer. Formats: + * * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * * accounts/{account_id}/customers/{customer_id}/entitlements/- + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of entitlement changes to return. The service + * may return fewer than this value. If unspecified, returns at most 10 + * entitlement changes. The maximum value is 50; the server will coerce values + * above 50. + * + * 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 + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * 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. Filters applied to the list results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the entitlement for which to list + * entitlement changes. The `-` wildcard may be used to match entitlements + * across a customer. Formats: + * + * * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * * accounts/{account_id}/customers/{customer_id}/entitlements/- + * Please see {@see CloudChannelServiceClient::entitlementName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\ListEntitlementChangesRequest + * + * @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 entitlement for which to list + * entitlement changes. The `-` wildcard may be used to match entitlements + * across a customer. Formats: + * * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * * accounts/{account_id}/customers/{customer_id}/entitlements/- + * @type int $page_size + * Optional. The maximum number of entitlement changes to return. The service + * may return fewer than this value. If unspecified, returns at most 10 + * entitlement changes. The maximum value is 50; the server will coerce values + * above 50. + * @type string $page_token + * Optional. A page token, received from a previous + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * must match the call that provided the page token. + * @type string $filter + * Optional. Filters applied to the list results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement for which to list + * entitlement changes. The `-` wildcard may be used to match entitlements + * across a customer. Formats: + * * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * * accounts/{account_id}/customers/{customer_id}/entitlements/- + * + * Generated 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 entitlement for which to list + * entitlement changes. The `-` wildcard may be used to match entitlements + * across a customer. Formats: + * * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * * accounts/{account_id}/customers/{customer_id}/entitlements/- + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 entitlement changes to return. The service + * may return fewer than this value. If unspecified, returns at most 10 + * entitlement changes. The maximum value is 50; the server will coerce values + * above 50. + * + * 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 entitlement changes to return. The service + * may return fewer than this value. If unspecified, returns at most 10 + * entitlement changes. The maximum value is 50; the server will coerce values + * above 50. + * + * 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 + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * 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 + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [CloudChannelService.ListEntitlementChanges][google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges] + * 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. Filters applied to the list results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filters applied to the list 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesResponse.php new file mode 100644 index 000000000000..80c431cb0eff --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementChangesResponse.php @@ -0,0 +1,102 @@ +google.cloud.channel.v1.ListEntitlementChangesResponse + */ +class ListEntitlementChangesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of entitlement changes. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.EntitlementChange entitlement_changes = 1; + */ + private $entitlement_changes; + /** + * A token to list 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\Channel\V1\EntitlementChange>|\Google\Protobuf\Internal\RepeatedField $entitlement_changes + * The list of entitlement changes. + * @type string $next_page_token + * A token to list the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of entitlement changes. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.EntitlementChange entitlement_changes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlementChanges() + { + return $this->entitlement_changes; + } + + /** + * The list of entitlement changes. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.EntitlementChange entitlement_changes = 1; + * @param array<\Google\Cloud\Channel\V1\EntitlementChange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlementChanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\EntitlementChange::class); + $this->entitlement_changes = $arr; + + return $this; + } + + /** + * A token to list the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to list 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsRequest.php new file mode 100644 index 000000000000..4df91cd2c6fb --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsRequest.php @@ -0,0 +1,172 @@ +google.cloud.channel.v1.ListEntitlementsRequest + */ +class ListEntitlementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's customer account to list + * entitlements for. + * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * Obtained using + * [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller's customer account to list + * entitlements for. + * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * Obtained using + * [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] + * call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller's customer account to list + * entitlements for. + * Parent uses the format: accounts/{account_id}/customers/{customer_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 reseller's customer account to list + * entitlements for. + * Parent uses the format: accounts/{account_id}/customers/{customer_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. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. + * + * 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 might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. + * + * 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 for a page of results other than the first page. + * Obtained using + * [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] + * call. + * + * 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 for a page of results other than the first page. + * Obtained using + * [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] + * of the previous + * [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsResponse.php new file mode 100644 index 000000000000..2babef97eadd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListEntitlementsResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListEntitlementsResponse + */ +class ListEntitlementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The reseller customer's entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + */ + private $entitlements; + /** + * A token to list the next page of results. + * Pass to + * [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.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\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $entitlements + * The reseller customer's entitlements. + * @type string $next_page_token + * A token to list the next page of results. + * Pass to + * [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The reseller customer's entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlements() + { + return $this->entitlements; + } + + /** + * The reseller customer's entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + * @param array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Entitlement::class); + $this->entitlements = $arr; + + return $this; + } + + /** + * A token to list the next page of results. + * Pass to + * [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.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 list the next page of results. + * Pass to + * [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersRequest.php new file mode 100644 index 000000000000..5370e285ab62 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersRequest.php @@ -0,0 +1,285 @@ +google.cloud.channel.v1.ListOffersRequest + */ +class ListOffersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The expression to filter results by name (name of + * the Offer), sku.name (name of the SKU), or sku.product.name (name of the + * Product). + * Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 + * Example 2: name=accounts/a1/offers/o1 + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + /** + * Optional. A boolean flag that determines if a response returns future + * offers 30 days from now. If the show_future_offers is true, the response + * will only contain offers that are scheduled to be available 30 days from + * now. + * + * Generated from protobuf field bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_future_offers = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * @type string $filter + * Optional. The expression to filter results by name (name of + * the Offer), sku.name (name of the SKU), or sku.product.name (name of the + * Product). + * Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 + * Example 2: name=accounts/a1/offers/o1 + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * @type bool $show_future_offers + * Optional. A boolean flag that determines if a response returns future + * offers 30 days from now. If the show_future_offers is true, the response + * will only contain offers that are scheduled to be available 30 days from + * now. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_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; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * + * 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 might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 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 token for a page of results other than the first 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 token for a page of results other than the first 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; + } + + /** + * Optional. The expression to filter results by name (name of + * the Offer), sku.name (name of the SKU), or sku.product.name (name of the + * Product). + * Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 + * Example 2: name=accounts/a1/offers/o1 + * + * 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 results by name (name of + * the Offer), sku.name (name of the SKU), or sku.product.name (name of the + * Product). + * Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 + * Example 2: name=accounts/a1/offers/o1 + * + * 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 BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Optional. A boolean flag that determines if a response returns future + * offers 30 days from now. If the show_future_offers is true, the response + * will only contain offers that are scheduled to be available 30 days from + * now. + * + * Generated from protobuf field bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowFutureOffers() + { + return $this->show_future_offers; + } + + /** + * Optional. A boolean flag that determines if a response returns future + * offers 30 days from now. If the show_future_offers is true, the response + * will only contain offers that are scheduled to be available 30 days from + * now. + * + * Generated from protobuf field bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowFutureOffers($var) + { + GPBUtil::checkBool($var); + $this->show_future_offers = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersResponse.php new file mode 100644 index 000000000000..12c5a616197c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListOffersResponse.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ListOffersResponse + */ +class ListOffersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Offer offers = 1; + */ + private $offers; + /** + * A token to retrieve 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\Channel\V1\Offer>|\Google\Protobuf\Internal\RepeatedField $offers + * The list of Offers requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Offer offers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOffers() + { + return $this->offers; + } + + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Offer offers = 1; + * @param array<\Google\Cloud\Channel\V1\Offer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOffers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Offer::class); + $this->offers = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsRequest.php new file mode 100644 index 000000000000..9e9c76f24c8c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsRequest.php @@ -0,0 +1,189 @@ +google.cloud.channel.v1.ListProductsRequest + */ +class ListProductsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller account. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. The resource name of the reseller account. + * Format: accounts/{account_id}. + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller account. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. The resource name of the reseller account. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. + * + * 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 might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 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 token for a page of results other than the first 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 token for a page of results other than the first 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; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsResponse.php new file mode 100644 index 000000000000..5e7523527d34 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListProductsResponse.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ListProductsResponse + */ +class ListProductsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of Products requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Product products = 1; + */ + private $products; + /** + * A token to retrieve 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\Channel\V1\Product>|\Google\Protobuf\Internal\RepeatedField $products + * List of Products requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of Products requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Product products = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProducts() + { + return $this->products; + } + + /** + * List of Products requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Product products = 1; + * @param array<\Google\Cloud\Channel\V1\Product>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProducts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Product::class); + $this->products = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest.php new file mode 100644 index 000000000000..2d11e9d6b787 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest.php @@ -0,0 +1,264 @@ +google.cloud.channel.v1.ListPurchasableOffersRequest + */ +class ListPurchasableOffersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer to list Offers for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $customer = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + protected $purchase_option; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\CreateEntitlementPurchase $create_entitlement_purchase + * List Offers for CreateEntitlement purchase. + * @type \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\ChangeOfferPurchase $change_offer_purchase + * List Offers for ChangeOffer purchase. + * @type string $customer + * Required. The resource name of the customer to list Offers for. + * Format: accounts/{account_id}/customers/{customer_id}. + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * List Offers for CreateEntitlement purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase create_entitlement_purchase = 2; + * @return \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\CreateEntitlementPurchase|null + */ + public function getCreateEntitlementPurchase() + { + return $this->readOneof(2); + } + + public function hasCreateEntitlementPurchase() + { + return $this->hasOneof(2); + } + + /** + * List Offers for CreateEntitlement purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase create_entitlement_purchase = 2; + * @param \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\CreateEntitlementPurchase $var + * @return $this + */ + public function setCreateEntitlementPurchase($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\CreateEntitlementPurchase::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * List Offers for ChangeOffer purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase change_offer_purchase = 3; + * @return \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\ChangeOfferPurchase|null + */ + public function getChangeOfferPurchase() + { + return $this->readOneof(3); + } + + public function hasChangeOfferPurchase() + { + return $this->hasOneof(3); + } + + /** + * List Offers for ChangeOffer purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase change_offer_purchase = 3; + * @param \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\ChangeOfferPurchase $var + * @return $this + */ + public function setChangeOfferPurchase($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ListPurchasableOffersRequest\ChangeOfferPurchase::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The resource name of the customer to list Offers for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Required. The resource name of the customer to list Offers for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. + * + * 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 token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token for a page of results other than the first page. + * + * 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. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * @return string + */ + public function getPurchaseOption() + { + return $this->whichOneof("purchase_option"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/ChangeOfferPurchase.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/ChangeOfferPurchase.php new file mode 100644 index 000000000000..9aafce69fe91 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/ChangeOfferPurchase.php @@ -0,0 +1,170 @@ +google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase + */ +class ChangeOfferPurchase extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entitlement = ''; + /** + * Optional. Resource name of the new target SKU. Provide this SKU when + * upgrading or downgrading an entitlement. Format: + * products/{product_id}/skus/{sku_id} + * + * Generated from protobuf field string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $new_sku = ''; + /** + * Optional. Resource name of the new target Billing Account. Provide this + * Billing Account when setting up billing for a trial subscription. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $billing_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entitlement + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $new_sku + * Optional. Resource name of the new target SKU. Provide this SKU when + * upgrading or downgrading an entitlement. Format: + * products/{product_id}/skus/{sku_id} + * @type string $billing_account + * Optional. Resource name of the new target Billing Account. Provide this + * Billing Account when setting up billing for a trial subscription. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + + /** + * Optional. Resource name of the new target SKU. Provide this SKU when + * upgrading or downgrading an entitlement. Format: + * products/{product_id}/skus/{sku_id} + * + * Generated from protobuf field string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNewSku() + { + return $this->new_sku; + } + + /** + * Optional. Resource name of the new target SKU. Provide this SKU when + * upgrading or downgrading an entitlement. Format: + * products/{product_id}/skus/{sku_id} + * + * Generated from protobuf field string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNewSku($var) + { + GPBUtil::checkString($var, True); + $this->new_sku = $var; + + return $this; + } + + /** + * Optional. Resource name of the new target Billing Account. Provide this + * Billing Account when setting up billing for a trial subscription. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Optional. Resource name of the new target Billing Account. Provide this + * Billing Account when setting up billing for a trial subscription. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be + * left empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeOfferPurchase::class, \Google\Cloud\Channel\V1\ListPurchasableOffersRequest_ChangeOfferPurchase::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/CreateEntitlementPurchase.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/CreateEntitlementPurchase.php new file mode 100644 index 000000000000..835f3c70f494 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersRequest/CreateEntitlementPurchase.php @@ -0,0 +1,112 @@ +google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase + */ +class CreateEntitlementPurchase extends \Google\Protobuf\Internal\Message +{ + /** + * Required. SKU that the result should be restricted to. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field string sku = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $sku = ''; + /** + * Optional. Billing account that the result should be restricted to. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * + * Generated from protobuf field string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $billing_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sku + * Required. SKU that the result should be restricted to. + * Format: products/{product_id}/skus/{sku_id}. + * @type string $billing_account + * Optional. Billing account that the result should be restricted to. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. SKU that the result should be restricted to. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field string sku = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSku() + { + return $this->sku; + } + + /** + * Required. SKU that the result should be restricted to. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field string sku = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkString($var, True); + $this->sku = $var; + + return $this; + } + + /** + * Optional. Billing account that the result should be restricted to. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * + * Generated from protobuf field string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Optional. Billing account that the result should be restricted to. + * Format: accounts/{account_id}/billingAccounts/{billing_account_id}. + * + * Generated from protobuf field string billing_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CreateEntitlementPurchase::class, \Google\Cloud\Channel\V1\ListPurchasableOffersRequest_CreateEntitlementPurchase::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersResponse.php new file mode 100644 index 000000000000..b84b46f910ad --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableOffersResponse.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ListPurchasableOffersResponse + */ +class ListPurchasableOffersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1; + */ + private $purchasable_offers; + /** + * A token to retrieve 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\Channel\V1\PurchasableOffer>|\Google\Protobuf\Internal\RepeatedField $purchasable_offers + * The list of Offers requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPurchasableOffers() + { + return $this->purchasable_offers; + } + + /** + * The list of Offers requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableOffer purchasable_offers = 1; + * @param array<\Google\Cloud\Channel\V1\PurchasableOffer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPurchasableOffers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\PurchasableOffer::class); + $this->purchasable_offers = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest.php new file mode 100644 index 000000000000..97079a55e727 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest.php @@ -0,0 +1,264 @@ +google.cloud.channel.v1.ListPurchasableSkusRequest + */ +class ListPurchasableSkusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer to list SKUs for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $customer = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + protected $purchase_option; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase $create_entitlement_purchase + * List SKUs for CreateEntitlement purchase. + * @type \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase $change_offer_purchase + * List SKUs for ChangeOffer purchase with a new SKU. + * @type string $customer + * Required. The resource name of the customer to list SKUs for. + * Format: accounts/{account_id}/customers/{customer_id}. + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * List SKUs for CreateEntitlement purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2; + * @return \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase|null + */ + public function getCreateEntitlementPurchase() + { + return $this->readOneof(2); + } + + public function hasCreateEntitlementPurchase() + { + return $this->hasOneof(2); + } + + /** + * List SKUs for CreateEntitlement purchase. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase create_entitlement_purchase = 2; + * @param \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase $var + * @return $this + */ + public function setCreateEntitlementPurchase($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\CreateEntitlementPurchase::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * List SKUs for ChangeOffer purchase with a new SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3; + * @return \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase|null + */ + public function getChangeOfferPurchase() + { + return $this->readOneof(3); + } + + public function hasChangeOfferPurchase() + { + return $this->hasOneof(3); + } + + /** + * List SKUs for ChangeOffer purchase with a new SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase change_offer_purchase = 3; + * @param \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase $var + * @return $this + */ + public function setChangeOfferPurchase($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The resource name of the customer to list SKUs for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Required. The resource name of the customer to list SKUs for. + * Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * + * 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 token for a page of results other than the first page. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token for a page of results other than the first page. + * + * 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. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * @return string + */ + public function getPurchaseOption() + { + return $this->whichOneof("purchase_option"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase.php new file mode 100644 index 000000000000..7acedb503545 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase + */ +class ChangeOfferPurchase extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entitlement = ''; + /** + * Required. Change Type for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $change_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entitlement + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type int $change_type + * Required. Change Type for the entitlement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Required. Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + + /** + * Required. Change Type for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * Required. Change Type for the entitlement. + * + * Generated from protobuf field .google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest\ChangeOfferPurchase\ChangeType::class); + $this->change_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeOfferPurchase::class, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest_ChangeOfferPurchase::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase/ChangeType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase/ChangeType.php new file mode 100644 index 000000000000..7b0262b62d94 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/ChangeOfferPurchase/ChangeType.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType + */ +class ChangeType +{ + /** + * Not used. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * SKU is an upgrade on the current entitlement. + * + * Generated from protobuf enum UPGRADE = 1; + */ + const UPGRADE = 1; + /** + * SKU is a downgrade on the current entitlement. + * + * Generated from protobuf enum DOWNGRADE = 2; + */ + const DOWNGRADE = 2; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::UPGRADE => 'UPGRADE', + self::DOWNGRADE => 'DOWNGRADE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeType::class, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest_ChangeOfferPurchase_ChangeType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/CreateEntitlementPurchase.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/CreateEntitlementPurchase.php new file mode 100644 index 000000000000..8eb66ed03322 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusRequest/CreateEntitlementPurchase.php @@ -0,0 +1,79 @@ +google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase + */ +class CreateEntitlementPurchase extends \Google\Protobuf\Internal\Message +{ + /** + * Required. List SKUs belonging to this Product. + * Format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated from protobuf field string product = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $product = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $product + * Required. List SKUs belonging to this Product. + * Format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. List SKUs belonging to this Product. + * Format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated from protobuf field string product = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProduct() + { + return $this->product; + } + + /** + * Required. List SKUs belonging to this Product. + * Format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated from protobuf field string product = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkString($var, True); + $this->product = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CreateEntitlementPurchase::class, \Google\Cloud\Channel\V1\ListPurchasableSkusRequest_CreateEntitlementPurchase::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusResponse.php new file mode 100644 index 000000000000..fd65e62e7733 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListPurchasableSkusResponse.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ListPurchasableSkusResponse + */ +class ListPurchasableSkusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1; + */ + private $purchasable_skus; + /** + * A token to retrieve 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\Channel\V1\PurchasableSku>|\Google\Protobuf\Internal\RepeatedField $purchasable_skus + * The list of SKUs requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPurchasableSkus() + { + return $this->purchasable_skus; + } + + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1; + * @param array<\Google\Cloud\Channel\V1\PurchasableSku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPurchasableSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\PurchasableSku::class); + $this->purchasable_skus = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsRequest.php new file mode 100644 index 000000000000..160f89efe401 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsRequest.php @@ -0,0 +1,229 @@ +google.cloud.channel.v1.ListReportsRequest + */ +class ListReportsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that specifies a page of results beyond the first page. + * Obtained through + * [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + + /** + * @param string $parent Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} + * + * @return \Google\Cloud\Channel\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 resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} + * @type int $page_size + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. + * @type string $page_token + * Optional. A token that specifies a page of results beyond the first page. + * Obtained through + * [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] + * call. + * @type string $language_code + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_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; + } + + /** + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. + * + * 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 of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. + * + * 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 that specifies a page of results beyond the first page. + * Obtained through + * [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] + * call. + * + * 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 that specifies a page of results beyond the first page. + * Obtained through + * [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] + * of the previous + * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] + * 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. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsResponse.php new file mode 100644 index 000000000000..bdb57f30e133 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListReportsResponse.php @@ -0,0 +1,111 @@ +google.cloud.channel.v1.ListReportsResponse + */ +class ListReportsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The reports available to the partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Report reports = 1; + */ + private $reports; + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve 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\Channel\V1\Report>|\Google\Protobuf\Internal\RepeatedField $reports + * The reports available to the partner. + * @type string $next_page_token + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The reports available to the partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Report reports = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReports() + { + return $this->reports; + } + + /** + * The reports available to the partner. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Report reports = 1; + * @param array<\Google\Cloud\Channel\V1\Report>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Report::class); + $this->reports = $arr; + + return $this; + } + + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pass this token to + * [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + * to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusRequest.php new file mode 100644 index 000000000000..9c824a3ea220 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusRequest.php @@ -0,0 +1,178 @@ +google.cloud.channel.v1.ListSkuGroupBillableSkusRequest + */ +class ListSkuGroupBillableSkusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the SKU group. + * Format: accounts/{account}/skuGroups/{sku_group}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of SKUs to return. The service may return + * fewer than this value. If unspecified, returns a maximum of 100000 SKUs. + * The maximum value is 100000; values above 100000 will be coerced to 100000. + * + * 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 beyond the first page. + * Obtained through + * [ListSkuGroupBillableSkus.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Resource name of the SKU group. + * Format: accounts/{account}/skuGroups/{sku_group}. Please see + * {@see CloudChannelServiceClient::skuGroupName()} for help formatting this field. + * + * @return \Google\Cloud\Channel\V1\ListSkuGroupBillableSkusRequest + * + * @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 SKU group. + * Format: accounts/{account}/skuGroups/{sku_group}. + * @type int $page_size + * Optional. The maximum number of SKUs to return. The service may return + * fewer than this value. If unspecified, returns a maximum of 100000 SKUs. + * The maximum value is 100000; values above 100000 will be coerced to 100000. + * @type string $page_token + * Optional. A token identifying a page of results beyond the first page. + * Obtained through + * [ListSkuGroupBillableSkus.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus] + * call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the SKU group. + * Format: accounts/{account}/skuGroups/{sku_group}. + * + * Generated 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 SKU group. + * Format: accounts/{account}/skuGroups/{sku_group}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 SKUs to return. The service may return + * fewer than this value. If unspecified, returns a maximum of 100000 SKUs. + * The maximum value is 100000; values above 100000 will be coerced to 100000. + * + * 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 SKUs to return. The service may return + * fewer than this value. If unspecified, returns a maximum of 100000 SKUs. + * The maximum value is 100000; values above 100000 will be coerced to 100000. + * + * 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 beyond the first page. + * Obtained through + * [ListSkuGroupBillableSkus.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus] + * call. + * + * 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 beyond the first page. + * Obtained through + * [ListSkuGroupBillableSkus.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus] + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusResponse.php new file mode 100644 index 000000000000..245a4050adcd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupBillableSkusResponse.php @@ -0,0 +1,109 @@ +google.cloud.channel.v1.ListSkuGroupBillableSkusResponse + */ +class ListSkuGroupBillableSkusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of billable SKUs in the requested SKU group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillableSku billable_skus = 1; + */ + private $billable_skus; + /** + * A token to retrieve the next page of results. + * Pass to [ListSkuGroupBillableSkus.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\Channel\V1\BillableSku>|\Google\Protobuf\Internal\RepeatedField $billable_skus + * The list of billable SKUs in the requested SKU group. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that + * page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of billable SKUs in the requested SKU group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillableSku billable_skus = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBillableSkus() + { + return $this->billable_skus; + } + + /** + * The list of billable SKUs in the requested SKU group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillableSku billable_skus = 1; + * @param array<\Google\Cloud\Channel\V1\BillableSku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBillableSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\BillableSku::class); + $this->billable_skus = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to [ListSkuGroupBillableSkus.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 the next page of results. + * Pass to [ListSkuGroupBillableSkus.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsRequest.php new file mode 100644 index 000000000000..65e3e7dc0499 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsRequest.php @@ -0,0 +1,181 @@ +google.cloud.channel.v1.ListSkuGroupsRequest + */ +class ListSkuGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the account from which to list SKU groups. + * Parent uses the format: accounts/{account}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The maximum number of SKU groups to return. The service may + * return fewer than this value. If unspecified, returns a maximum of 1000 SKU + * groups. 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 token identifying a page of results beyond the first page. + * Obtained through + * [ListSkuGroups.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The resource name of the account from which to list SKU groups. + * Parent uses the format: accounts/{account}. + * + * @return \Google\Cloud\Channel\V1\ListSkuGroupsRequest + * + * @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 account from which to list SKU groups. + * Parent uses the format: accounts/{account}. + * @type int $page_size + * Optional. The maximum number of SKU groups to return. The service may + * return fewer than this value. If unspecified, returns a maximum of 1000 SKU + * groups. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A token identifying a page of results beyond the first page. + * Obtained through + * [ListSkuGroups.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups] + * call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the account from which to list SKU groups. + * Parent uses the format: accounts/{account}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the account from which to list SKU groups. + * Parent uses the format: accounts/{account}. + * + * 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; + } + + /** + * Optional. The maximum number of SKU groups to return. The service may + * return fewer than this value. If unspecified, returns a maximum of 1000 SKU + * groups. 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 SKU groups to return. The service may + * return fewer than this value. If unspecified, returns a maximum of 1000 SKU + * groups. 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 token identifying a page of results beyond the first page. + * Obtained through + * [ListSkuGroups.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups] + * call. + * + * 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 beyond the first page. + * Obtained through + * [ListSkuGroups.next_page_token][] of the previous + * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups] + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsResponse.php new file mode 100644 index 000000000000..87b8f7893987 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkuGroupsResponse.php @@ -0,0 +1,109 @@ +google.cloud.channel.v1.ListSkuGroupsResponse + */ +class ListSkuGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of SKU groups requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuGroup sku_groups = 1; + */ + private $sku_groups; + /** + * A token to retrieve the next page of results. + * Pass to [ListSkuGroups.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\Channel\V1\SkuGroup>|\Google\Protobuf\Internal\RepeatedField $sku_groups + * The list of SKU groups requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to [ListSkuGroups.page_token][] to obtain that + * page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of SKU groups requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuGroup sku_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkuGroups() + { + return $this->sku_groups; + } + + /** + * The list of SKU groups requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuGroup sku_groups = 1; + * @param array<\Google\Cloud\Channel\V1\SkuGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkuGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\SkuGroup::class); + $this->sku_groups = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to [ListSkuGroups.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 the next page of results. + * Pass to [ListSkuGroups.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusRequest.php new file mode 100644 index 000000000000..c094f5fdd9cc --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusRequest.php @@ -0,0 +1,235 @@ +google.cloud.channel.v1.ListSkusRequest + */ +class ListSkusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Product to list SKUs for. + * Parent uses the format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Resource name of the reseller. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = ''; + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token for a page of results other than the first page. + * Optional. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Product to list SKUs for. + * Parent uses the format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * @type string $account + * Required. Resource name of the reseller. + * Format: accounts/{account_id}. + * @type int $page_size + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * @type string $page_token + * Optional. A token for a page of results other than the first page. + * Optional. + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Product to list SKUs for. + * Parent uses the format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated 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 Product to list SKUs for. + * Parent uses the format: products/{product_id}. + * Supports products/- to retrieve SKUs for all products. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 name of the reseller. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. Resource name of the reseller. + * Format: accounts/{account_id}. + * + * Generated from protobuf field string account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 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 token for a page of results other than the first page. + * Optional. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token for a page of results other than the first page. + * Optional. + * + * 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. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusResponse.php new file mode 100644 index 000000000000..cd46fcbcc0b6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSkusResponse.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ListSkusResponse + */ +class ListSkusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Sku skus = 1; + */ + private $skus; + /** + * A token to retrieve 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\Channel\V1\Sku>|\Google\Protobuf\Internal\RepeatedField $skus + * The list of SKUs requested. + * @type string $next_page_token + * A token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Sku skus = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkus() + { + return $this->skus; + } + + /** + * The list of SKUs requested. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Sku skus = 1; + * @param array<\Google\Cloud\Channel\V1\Sku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Sku::class); + $this->skus = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersRequest.php new file mode 100644 index 000000000000..916494ae8b29 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersRequest.php @@ -0,0 +1,159 @@ +google.cloud.channel.v1.ListSubscribersRequest + */ +class ListSubscribersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = ''; + /** + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 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 `ListSubscribers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSubscribers` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. Resource name of the account. + * @type int $page_size + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListSubscribers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSubscribers` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 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 service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 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 `ListSubscribers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSubscribers` 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 `ListSubscribers` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSubscribers` 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersResponse.php new file mode 100644 index 000000000000..3563be1f102a --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListSubscribersResponse.php @@ -0,0 +1,139 @@ +google.cloud.channel.v1.ListSubscribersResponse + */ +class ListSubscribersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the topic registered with the reseller. + * + * Generated from protobuf field string topic = 1; + */ + protected $topic = ''; + /** + * List of service accounts which have subscriber access to the topic. + * + * Generated from protobuf field repeated string service_accounts = 2; + */ + private $service_accounts; + /** + * 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 = 3; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $topic + * Name of the topic registered with the reseller. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_accounts + * List of service accounts which have subscriber access to the topic. + * @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\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Name of the topic registered with the reseller. + * + * Generated from protobuf field string topic = 1; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Name of the topic registered with the reseller. + * + * 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; + } + + /** + * List of service accounts which have subscriber access to the topic. + * + * Generated from protobuf field repeated string service_accounts = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAccounts() + { + return $this->service_accounts; + } + + /** + * List of service accounts which have subscriber access to the topic. + * + * Generated from protobuf field repeated string service_accounts = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAccounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_accounts = $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 = 3; + * @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 = 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersRequest.php new file mode 100644 index 000000000000..363c3f884897 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersRequest.php @@ -0,0 +1,364 @@ +google.cloud.channel.v1.ListTransferableOffersRequest + */ +class ListTransferableOffersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's account. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 offers. + * The maximum value is 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] + * call. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Required. The SKU to look up Offers for. + * + * Generated from protobuf field string sku = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $sku = ''; + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + /** + * Optional. The Billing Account to look up Offers for. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be left + * empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $billing_account = ''; + protected $transferred_customer_identity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_identity_id + * Customer's Cloud Identity ID + * @type string $customer_name + * A reseller should create a customer and use the resource name of + * that customer here. + * @type string $parent + * Required. The resource name of the reseller's account. + * @type int $page_size + * Requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 offers. + * The maximum value is 1000; the server will coerce values above 1000. + * @type string $page_token + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] + * call. + * @type string $sku + * Required. The SKU to look up Offers for. + * @type string $language_code + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * @type string $billing_account + * Optional. The Billing Account to look up Offers for. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be left + * empty for single currency accounts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 4; + * @return string + */ + public function getCloudIdentityId() + { + return $this->readOneof(4); + } + + public function hasCloudIdentityId() + { + return $this->hasOneof(4); + } + + /** + * Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 4; + * @param string $var + * @return $this + */ + public function setCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A reseller should create a customer and use the resource name of + * that customer here. + * + * Generated from protobuf field string customer_name = 5; + * @return string + */ + public function getCustomerName() + { + return $this->readOneof(5); + } + + public function hasCustomerName() + { + return $this->hasOneof(5); + } + + /** + * A reseller should create a customer and use the resource name of + * that customer here. + * + * Generated from protobuf field string customer_name = 5; + * @param string $var + * @return $this + */ + public function setCustomerName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. The resource name of the reseller's account. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller's account. + * + * 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; + } + + /** + * Requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 offers. + * The maximum value is 1000; the server will coerce values above 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 offers. + * The maximum value is 1000; the server will coerce values above 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 for a page of results other than the first page. + * Obtained using + * [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] + * call. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] + * 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; + } + + /** + * Required. The SKU to look up Offers for. + * + * Generated from protobuf field string sku = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSku() + { + return $this->sku; + } + + /** + * Required. The SKU to look up Offers for. + * + * Generated from protobuf field string sku = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkString($var, True); + $this->sku = $var; + + return $this; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * + * Generated from protobuf field string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Optional. The Billing Account to look up Offers for. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be left + * empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Optional. The Billing Account to look up Offers for. Format: + * accounts/{account_id}/billingAccounts/{billing_account_id}. + * This field is only relevant for multi-currency accounts. It should be left + * empty for single currency accounts. + * + * Generated from protobuf field string billing_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + + /** + * @return string + */ + public function getTransferredCustomerIdentity() + { + return $this->whichOneof("transferred_customer_identity"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersResponse.php new file mode 100644 index 000000000000..fcd6a9486696 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableOffersResponse.php @@ -0,0 +1,118 @@ +google.cloud.channel.v1.ListTransferableOffersResponse + */ +class ListTransferableOffersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Information about Offers for a customer that can be used for + * transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableOffer transferable_offers = 1; + */ + private $transferable_offers; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.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\Channel\V1\TransferableOffer>|\Google\Protobuf\Internal\RepeatedField $transferable_offers + * Information about Offers for a customer that can be used for + * transfer. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Information about Offers for a customer that can be used for + * transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableOffer transferable_offers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTransferableOffers() + { + return $this->transferable_offers; + } + + /** + * Information about Offers for a customer that can be used for + * transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableOffer transferable_offers = 1; + * @param array<\Google\Cloud\Channel\V1\TransferableOffer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTransferableOffers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\TransferableOffer::class); + $this->transferable_offers = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.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 the next page of results. + * Pass to + * [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusRequest.php new file mode 100644 index 000000000000..05204cef05ba --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusRequest.php @@ -0,0 +1,348 @@ +google.cloud.channel.v1.ListTransferableSkusRequest + */ +class ListTransferableSkusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 SKUs. + * The maximum value is 1000; the server will coerce values above 1000. + * Optional. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] + * call. Optional. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $auth_token = ''; + /** + * The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * Optional. + * + * Generated from protobuf field string language_code = 6; + */ + protected $language_code = ''; + protected $transferred_customer_identity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_identity_id + * Customer's Cloud Identity ID + * @type string $customer_name + * A reseller is required to create a customer and use the resource name of + * the created customer here. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type string $parent + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * @type int $page_size + * The requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 SKUs. + * The maximum value is 1000; the server will coerce values above 1000. + * Optional. + * @type string $page_token + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] + * call. Optional. + * @type string $auth_token + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * @type string $language_code + * The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * Optional. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 4; + * @return string + */ + public function getCloudIdentityId() + { + return $this->readOneof(4); + } + + public function hasCloudIdentityId() + { + return $this->hasOneof(4); + } + + /** + * Customer's Cloud Identity ID + * + * Generated from protobuf field string cloud_identity_id = 4; + * @param string $var + * @return $this + */ + public function setCloudIdentityId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A reseller is required to create a customer and use the resource name of + * the created customer here. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer_name = 7; + * @return string + */ + public function getCustomerName() + { + return $this->readOneof(7); + } + + public function hasCustomerName() + { + return $this->hasOneof(7); + } + + /** + * A reseller is required to create a customer and use the resource name of + * the created customer here. + * Customer_name uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer_name = 7; + * @param string $var + * @return $this + */ + public function setCustomerName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The reseller account's resource name. + * Parent uses the format: accounts/{account_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; + } + + /** + * The requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 SKUs. + * The maximum value is 1000; the server will coerce values above 1000. + * Optional. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The requested page size. Server might return fewer results than requested. + * If unspecified, returns at most 100 SKUs. + * The maximum value is 1000; the server will coerce values above 1000. + * Optional. + * + * 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 for a page of results other than the first page. + * Obtained using + * [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] + * call. Optional. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A token for a page of results other than the first page. + * Obtained using + * [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] + * of the previous + * [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] + * call. Optional. + * + * 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. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAuthToken() + { + return $this->auth_token; + } + + /** + * Optional. The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAuthToken($var) + { + GPBUtil::checkString($var, True); + $this->auth_token = $var; + + return $this; + } + + /** + * The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * Optional. + * + * Generated from protobuf field string language_code = 6; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The BCP-47 language code. For example, "en-US". The + * response will localize in the corresponding language code, if specified. + * The default value is "en-US". + * Optional. + * + * Generated from protobuf field string language_code = 6; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * @return string + */ + public function getTransferredCustomerIdentity() + { + return $this->whichOneof("transferred_customer_identity"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusResponse.php new file mode 100644 index 000000000000..b5dfcfb615c9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ListTransferableSkusResponse.php @@ -0,0 +1,114 @@ +google.cloud.channel.v1.ListTransferableSkusResponse + */ +class ListTransferableSkusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Information about existing SKUs for a customer that needs a transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableSku transferable_skus = 1; + */ + private $transferable_skus; + /** + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.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\Channel\V1\TransferableSku>|\Google\Protobuf\Internal\RepeatedField $transferable_skus + * Information about existing SKUs for a customer that needs a transfer. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.page_token] + * to obtain that page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Information about existing SKUs for a customer that needs a transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableSku transferable_skus = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTransferableSkus() + { + return $this->transferable_skus; + } + + /** + * Information about existing SKUs for a customer that needs a transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.TransferableSku transferable_skus = 1; + * @param array<\Google\Cloud\Channel\V1\TransferableSku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTransferableSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\TransferableSku::class); + $this->transferable_skus = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass to + * [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.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 the next page of results. + * Pass to + * [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/LookupOfferRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/LookupOfferRequest.php new file mode 100644 index 000000000000..8eb68a43266d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/LookupOfferRequest.php @@ -0,0 +1,75 @@ +google.cloud.channel.v1.LookupOfferRequest + */ +class LookupOfferRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to retrieve the Offer. + * Entitlement uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entitlement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entitlement + * Required. The resource name of the entitlement to retrieve the Offer. + * Entitlement uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to retrieve the Offer. + * Entitlement uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Required. The resource name of the entitlement to retrieve the Offer. + * Entitlement uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MarketingInfo.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MarketingInfo.php new file mode 100644 index 000000000000..1c6e7fc83818 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MarketingInfo.php @@ -0,0 +1,145 @@ +google.cloud.channel.v1.MarketingInfo + */ +class MarketingInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Human readable name. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * Human readable description. Description can contain HTML. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Default logo. + * + * Generated from protobuf field .google.cloud.channel.v1.Media default_logo = 3; + */ + protected $default_logo = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Human readable name. + * @type string $description + * Human readable description. Description can contain HTML. + * @type \Google\Cloud\Channel\V1\Media $default_logo + * Default logo. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Products::initOnce(); + parent::__construct($data); + } + + /** + * Human readable name. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Human readable name. + * + * 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; + } + + /** + * Human readable description. Description can contain HTML. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Human readable description. Description can contain HTML. + * + * 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; + } + + /** + * Default logo. + * + * Generated from protobuf field .google.cloud.channel.v1.Media default_logo = 3; + * @return \Google\Cloud\Channel\V1\Media|null + */ + public function getDefaultLogo() + { + return $this->default_logo; + } + + public function hasDefaultLogo() + { + return isset($this->default_logo); + } + + public function clearDefaultLogo() + { + unset($this->default_logo); + } + + /** + * Default logo. + * + * Generated from protobuf field .google.cloud.channel.v1.Media default_logo = 3; + * @param \Google\Cloud\Channel\V1\Media $var + * @return $this + */ + public function setDefaultLogo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Media::class); + $this->default_logo = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Media.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Media.php new file mode 100644 index 000000000000..a3d12df4edce --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Media.php @@ -0,0 +1,135 @@ +google.cloud.channel.v1.Media + */ +class Media extends \Google\Protobuf\Internal\Message +{ + /** + * Title of the media. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * URL of the media. + * + * Generated from protobuf field string content = 2; + */ + protected $content = ''; + /** + * Type of the media. + * + * Generated from protobuf field .google.cloud.channel.v1.MediaType type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * Title of the media. + * @type string $content + * URL of the media. + * @type int $type + * Type of the media. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Products::initOnce(); + parent::__construct($data); + } + + /** + * Title of the media. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Title of the media. + * + * 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; + } + + /** + * URL of the media. + * + * Generated from protobuf field string content = 2; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * URL of the media. + * + * Generated from protobuf field string content = 2; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Type of the media. + * + * Generated from protobuf field .google.cloud.channel.v1.MediaType type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the media. + * + * Generated from protobuf field .google.cloud.channel.v1.MediaType type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\MediaType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MediaType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MediaType.php new file mode 100644 index 000000000000..670a867eabcf --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/MediaType.php @@ -0,0 +1,54 @@ +google.cloud.channel.v1.MediaType + */ +class MediaType +{ + /** + * Not used. + * + * Generated from protobuf enum MEDIA_TYPE_UNSPECIFIED = 0; + */ + const MEDIA_TYPE_UNSPECIFIED = 0; + /** + * Type of image. + * + * Generated from protobuf enum MEDIA_TYPE_IMAGE = 1; + */ + const MEDIA_TYPE_IMAGE = 1; + + private static $valueToName = [ + self::MEDIA_TYPE_UNSPECIFIED => 'MEDIA_TYPE_UNSPECIFIED', + self::MEDIA_TYPE_IMAGE => 'MEDIA_TYPE_IMAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/Offer.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Offer.php new file mode 100644 index 000000000000..0e6cfd19b61e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Offer.php @@ -0,0 +1,439 @@ +google.cloud.channel.v1.Offer + */ +class Offer extends \Google\Protobuf\Internal\Message +{ + /** + * Resource Name of the Offer. + * Format: accounts/{account_id}/offers/{offer_id} + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Marketing information for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + */ + protected $marketing_info = null; + /** + * SKU the offer is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 3; + */ + protected $sku = null; + /** + * Describes the payment plan for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Plan plan = 4; + */ + protected $plan = null; + /** + * Constraints on transacting the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Constraints constraints = 5; + */ + protected $constraints = null; + /** + * Price for each monetizable resource type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6; + */ + private $price_by_resources; + /** + * Start of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + */ + protected $start_time = null; + /** + * Output only. End of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Parameters required to use current Offer to purchase. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9; + */ + private $parameter_definitions; + /** + * The deal code of the offer to get a special promotion or discount. + * + * Generated from protobuf field string deal_code = 12; + */ + protected $deal_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource Name of the Offer. + * Format: accounts/{account_id}/offers/{offer_id} + * @type \Google\Cloud\Channel\V1\MarketingInfo $marketing_info + * Marketing information for the Offer. + * @type \Google\Cloud\Channel\V1\Sku $sku + * SKU the offer is associated with. + * @type \Google\Cloud\Channel\V1\Plan $plan + * Describes the payment plan for the Offer. + * @type \Google\Cloud\Channel\V1\Constraints $constraints + * Constraints on transacting the Offer. + * @type array<\Google\Cloud\Channel\V1\PriceByResource>|\Google\Protobuf\Internal\RepeatedField $price_by_resources + * Price for each monetizable resource type. + * @type \Google\Protobuf\Timestamp $start_time + * Start of the Offer validity time. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. End of the Offer validity time. + * @type array<\Google\Cloud\Channel\V1\ParameterDefinition>|\Google\Protobuf\Internal\RepeatedField $parameter_definitions + * Parameters required to use current Offer to purchase. + * @type string $deal_code + * The deal code of the offer to get a special promotion or discount. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Resource Name of the Offer. + * Format: accounts/{account_id}/offers/{offer_id} + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource Name of the Offer. + * Format: accounts/{account_id}/offers/{offer_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; + } + + /** + * Marketing information for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @return \Google\Cloud\Channel\V1\MarketingInfo|null + */ + public function getMarketingInfo() + { + return $this->marketing_info; + } + + public function hasMarketingInfo() + { + return isset($this->marketing_info); + } + + public function clearMarketingInfo() + { + unset($this->marketing_info); + } + + /** + * Marketing information for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @param \Google\Cloud\Channel\V1\MarketingInfo $var + * @return $this + */ + public function setMarketingInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\MarketingInfo::class); + $this->marketing_info = $var; + + return $this; + } + + /** + * SKU the offer is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 3; + * @return \Google\Cloud\Channel\V1\Sku|null + */ + public function getSku() + { + return $this->sku; + } + + public function hasSku() + { + return isset($this->sku); + } + + public function clearSku() + { + unset($this->sku); + } + + /** + * SKU the offer is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 3; + * @param \Google\Cloud\Channel\V1\Sku $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class); + $this->sku = $var; + + return $this; + } + + /** + * Describes the payment plan for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Plan plan = 4; + * @return \Google\Cloud\Channel\V1\Plan|null + */ + public function getPlan() + { + return $this->plan; + } + + public function hasPlan() + { + return isset($this->plan); + } + + public function clearPlan() + { + unset($this->plan); + } + + /** + * Describes the payment plan for the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Plan plan = 4; + * @param \Google\Cloud\Channel\V1\Plan $var + * @return $this + */ + public function setPlan($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Plan::class); + $this->plan = $var; + + return $this; + } + + /** + * Constraints on transacting the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Constraints constraints = 5; + * @return \Google\Cloud\Channel\V1\Constraints|null + */ + public function getConstraints() + { + return $this->constraints; + } + + public function hasConstraints() + { + return isset($this->constraints); + } + + public function clearConstraints() + { + unset($this->constraints); + } + + /** + * Constraints on transacting the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Constraints constraints = 5; + * @param \Google\Cloud\Channel\V1\Constraints $var + * @return $this + */ + public function setConstraints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Constraints::class); + $this->constraints = $var; + + return $this; + } + + /** + * Price for each monetizable resource type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPriceByResources() + { + return $this->price_by_resources; + } + + /** + * Price for each monetizable resource type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceByResource price_by_resources = 6; + * @param array<\Google\Cloud\Channel\V1\PriceByResource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPriceByResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\PriceByResource::class); + $this->price_by_resources = $arr; + + return $this; + } + + /** + * Start of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @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 of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @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. End of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.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. End of the Offer validity time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.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; + } + + /** + * Parameters required to use current Offer to purchase. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameterDefinitions() + { + return $this->parameter_definitions; + } + + /** + * Parameters required to use current Offer to purchase. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ParameterDefinition parameter_definitions = 9; + * @param array<\Google\Cloud\Channel\V1\ParameterDefinition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameterDefinitions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\ParameterDefinition::class); + $this->parameter_definitions = $arr; + + return $this; + } + + /** + * The deal code of the offer to get a special promotion or discount. + * + * Generated from protobuf field string deal_code = 12; + * @return string + */ + public function getDealCode() + { + return $this->deal_code; + } + + /** + * The deal code of the offer to get a special promotion or discount. + * + * Generated from protobuf field string deal_code = 12; + * @param string $var + * @return $this + */ + public function setDealCode($var) + { + GPBUtil::checkString($var, True); + $this->deal_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata.php new file mode 100644 index 000000000000..7461d6f4f391 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata.php @@ -0,0 +1,68 @@ +google.cloud.channel.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The RPC that initiated this Long Running Operation. + * + * Generated from protobuf field .google.cloud.channel.v1.OperationMetadata.OperationType operation_type = 1; + */ + protected $operation_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $operation_type + * The RPC that initiated this Long Running Operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Operations::initOnce(); + parent::__construct($data); + } + + /** + * The RPC that initiated this Long Running Operation. + * + * Generated from protobuf field .google.cloud.channel.v1.OperationMetadata.OperationType operation_type = 1; + * @return int + */ + public function getOperationType() + { + return $this->operation_type; + } + + /** + * The RPC that initiated this Long Running Operation. + * + * Generated from protobuf field .google.cloud.channel.v1.OperationMetadata.OperationType operation_type = 1; + * @param int $var + * @return $this + */ + public function setOperationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\OperationMetadata\OperationType::class); + $this->operation_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata/OperationType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata/OperationType.php new file mode 100644 index 000000000000..02fc51efeccd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/OperationMetadata/OperationType.php @@ -0,0 +1,127 @@ +google.cloud.channel.v1.OperationMetadata.OperationType + */ +class OperationType +{ + /** + * Not used. + * + * Generated from protobuf enum OPERATION_TYPE_UNSPECIFIED = 0; + */ + const OPERATION_TYPE_UNSPECIFIED = 0; + /** + * Long Running Operation was triggered by CreateEntitlement. + * + * Generated from protobuf enum CREATE_ENTITLEMENT = 1; + */ + const CREATE_ENTITLEMENT = 1; + /** + * Long Running Operation was triggered by ChangeRenewalSettings. + * + * Generated from protobuf enum CHANGE_RENEWAL_SETTINGS = 3; + */ + const CHANGE_RENEWAL_SETTINGS = 3; + /** + * Long Running Operation was triggered by StartPaidService. + * + * Generated from protobuf enum START_PAID_SERVICE = 5; + */ + const START_PAID_SERVICE = 5; + /** + * Long Running Operation was triggered by ActivateEntitlement. + * + * Generated from protobuf enum ACTIVATE_ENTITLEMENT = 7; + */ + const ACTIVATE_ENTITLEMENT = 7; + /** + * Long Running Operation was triggered by SuspendEntitlement. + * + * Generated from protobuf enum SUSPEND_ENTITLEMENT = 8; + */ + const SUSPEND_ENTITLEMENT = 8; + /** + * Long Running Operation was triggered by CancelEntitlement. + * + * Generated from protobuf enum CANCEL_ENTITLEMENT = 9; + */ + const CANCEL_ENTITLEMENT = 9; + /** + * Long Running Operation was triggered by TransferEntitlements. + * + * Generated from protobuf enum TRANSFER_ENTITLEMENTS = 10; + */ + const TRANSFER_ENTITLEMENTS = 10; + /** + * Long Running Operation was triggered by TransferEntitlementsToGoogle. + * + * Generated from protobuf enum TRANSFER_ENTITLEMENTS_TO_GOOGLE = 11; + */ + const TRANSFER_ENTITLEMENTS_TO_GOOGLE = 11; + /** + * Long Running Operation was triggered by ChangeOffer. + * + * Generated from protobuf enum CHANGE_OFFER = 14; + */ + const CHANGE_OFFER = 14; + /** + * Long Running Operation was triggered by ChangeParameters. + * + * Generated from protobuf enum CHANGE_PARAMETERS = 15; + */ + const CHANGE_PARAMETERS = 15; + /** + * Long Running Operation was triggered by ProvisionCloudIdentity. + * + * Generated from protobuf enum PROVISION_CLOUD_IDENTITY = 16; + */ + const PROVISION_CLOUD_IDENTITY = 16; + + private static $valueToName = [ + self::OPERATION_TYPE_UNSPECIFIED => 'OPERATION_TYPE_UNSPECIFIED', + self::CREATE_ENTITLEMENT => 'CREATE_ENTITLEMENT', + self::CHANGE_RENEWAL_SETTINGS => 'CHANGE_RENEWAL_SETTINGS', + self::START_PAID_SERVICE => 'START_PAID_SERVICE', + self::ACTIVATE_ENTITLEMENT => 'ACTIVATE_ENTITLEMENT', + self::SUSPEND_ENTITLEMENT => 'SUSPEND_ENTITLEMENT', + self::CANCEL_ENTITLEMENT => 'CANCEL_ENTITLEMENT', + self::TRANSFER_ENTITLEMENTS => 'TRANSFER_ENTITLEMENTS', + self::TRANSFER_ENTITLEMENTS_TO_GOOGLE => 'TRANSFER_ENTITLEMENTS_TO_GOOGLE', + self::CHANGE_OFFER => 'CHANGE_OFFER', + self::CHANGE_PARAMETERS => 'CHANGE_PARAMETERS', + self::PROVISION_CLOUD_IDENTITY => 'PROVISION_CLOUD_IDENTITY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OperationType::class, \Google\Cloud\Channel\V1\OperationMetadata_OperationType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Parameter.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Parameter.php new file mode 100644 index 000000000000..575fe49a1a56 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Parameter.php @@ -0,0 +1,153 @@ +google.cloud.channel.v1.Parameter + */ +class Parameter extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Value of the parameter. + * + * Generated from protobuf field .google.cloud.channel.v1.Value value = 2; + */ + protected $value = null; + /** + * Output only. Specifies whether this parameter is allowed to be changed. For + * example, for a Google Workspace Business Starter entitlement in commitment + * plan, num_units is editable when entitlement is active. + * + * Generated from protobuf field bool editable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $editable = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the parameter. + * @type \Google\Cloud\Channel\V1\Value $value + * Value of the parameter. + * @type bool $editable + * Output only. Specifies whether this parameter is allowed to be changed. For + * example, for a Google Workspace Business Starter entitlement in commitment + * plan, num_units is editable when entitlement is active. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the parameter. + * + * 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; + } + + /** + * Value of the parameter. + * + * Generated from protobuf field .google.cloud.channel.v1.Value value = 2; + * @return \Google\Cloud\Channel\V1\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Value of the parameter. + * + * Generated from protobuf field .google.cloud.channel.v1.Value value = 2; + * @param \Google\Cloud\Channel\V1\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Value::class); + $this->value = $var; + + return $this; + } + + /** + * Output only. Specifies whether this parameter is allowed to be changed. For + * example, for a Google Workspace Business Starter entitlement in commitment + * plan, num_units is editable when entitlement is active. + * + * Generated from protobuf field bool editable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getEditable() + { + return $this->editable; + } + + /** + * Output only. Specifies whether this parameter is allowed to be changed. For + * example, for a Google Workspace Business Starter entitlement in commitment + * plan, num_units is editable when entitlement is active. + * + * Generated from protobuf field bool editable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setEditable($var) + { + GPBUtil::checkBool($var); + $this->editable = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition.php new file mode 100644 index 000000000000..40201811f065 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition.php @@ -0,0 +1,286 @@ +google.cloud.channel.v1.ParameterDefinition + */ +class ParameterDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Data type of the parameter. Minimal value, Maximum value and allowed values + * will use specified data type here. + * + * Generated from protobuf field .google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2; + */ + protected $parameter_type = 0; + /** + * Minimal value of the parameter, if applicable. Inclusive. For example, + * minimal commitment when purchasing Anthos is 0.01. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value min_value = 3; + */ + protected $min_value = null; + /** + * Maximum value of the parameter, if applicable. Inclusive. For example, + * maximum seats when purchasing Google Workspace Business Standard. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value max_value = 4; + */ + protected $max_value = null; + /** + * If not empty, parameter values must be drawn from this list. + * For example, [us-west1, us-west2, ...] + * Applicable to STRING parameter type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Value allowed_values = 5; + */ + private $allowed_values; + /** + * If set to true, parameter is optional to purchase this Offer. + * + * Generated from protobuf field bool optional = 6; + */ + protected $optional = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the parameter. + * @type int $parameter_type + * Data type of the parameter. Minimal value, Maximum value and allowed values + * will use specified data type here. + * @type \Google\Cloud\Channel\V1\Value $min_value + * Minimal value of the parameter, if applicable. Inclusive. For example, + * minimal commitment when purchasing Anthos is 0.01. + * Applicable to INT64 and DOUBLE parameter types. + * @type \Google\Cloud\Channel\V1\Value $max_value + * Maximum value of the parameter, if applicable. Inclusive. For example, + * maximum seats when purchasing Google Workspace Business Standard. + * Applicable to INT64 and DOUBLE parameter types. + * @type array<\Google\Cloud\Channel\V1\Value>|\Google\Protobuf\Internal\RepeatedField $allowed_values + * If not empty, parameter values must be drawn from this list. + * For example, [us-west1, us-west2, ...] + * Applicable to STRING parameter type. + * @type bool $optional + * If set to true, parameter is optional to purchase this Offer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the parameter. + * + * 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 type of the parameter. Minimal value, Maximum value and allowed values + * will use specified data type here. + * + * Generated from protobuf field .google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2; + * @return int + */ + public function getParameterType() + { + return $this->parameter_type; + } + + /** + * Data type of the parameter. Minimal value, Maximum value and allowed values + * will use specified data type here. + * + * Generated from protobuf field .google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2; + * @param int $var + * @return $this + */ + public function setParameterType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ParameterDefinition\ParameterType::class); + $this->parameter_type = $var; + + return $this; + } + + /** + * Minimal value of the parameter, if applicable. Inclusive. For example, + * minimal commitment when purchasing Anthos is 0.01. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value min_value = 3; + * @return \Google\Cloud\Channel\V1\Value|null + */ + public function getMinValue() + { + return $this->min_value; + } + + public function hasMinValue() + { + return isset($this->min_value); + } + + public function clearMinValue() + { + unset($this->min_value); + } + + /** + * Minimal value of the parameter, if applicable. Inclusive. For example, + * minimal commitment when purchasing Anthos is 0.01. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value min_value = 3; + * @param \Google\Cloud\Channel\V1\Value $var + * @return $this + */ + public function setMinValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Value::class); + $this->min_value = $var; + + return $this; + } + + /** + * Maximum value of the parameter, if applicable. Inclusive. For example, + * maximum seats when purchasing Google Workspace Business Standard. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value max_value = 4; + * @return \Google\Cloud\Channel\V1\Value|null + */ + public function getMaxValue() + { + return $this->max_value; + } + + public function hasMaxValue() + { + return isset($this->max_value); + } + + public function clearMaxValue() + { + unset($this->max_value); + } + + /** + * Maximum value of the parameter, if applicable. Inclusive. For example, + * maximum seats when purchasing Google Workspace Business Standard. + * Applicable to INT64 and DOUBLE parameter types. + * + * Generated from protobuf field .google.cloud.channel.v1.Value max_value = 4; + * @param \Google\Cloud\Channel\V1\Value $var + * @return $this + */ + public function setMaxValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Value::class); + $this->max_value = $var; + + return $this; + } + + /** + * If not empty, parameter values must be drawn from this list. + * For example, [us-west1, us-west2, ...] + * Applicable to STRING parameter type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Value allowed_values = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowedValues() + { + return $this->allowed_values; + } + + /** + * If not empty, parameter values must be drawn from this list. + * For example, [us-west1, us-west2, ...] + * Applicable to STRING parameter type. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Value allowed_values = 5; + * @param array<\Google\Cloud\Channel\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowedValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Value::class); + $this->allowed_values = $arr; + + return $this; + } + + /** + * If set to true, parameter is optional to purchase this Offer. + * + * Generated from protobuf field bool optional = 6; + * @return bool + */ + public function getOptional() + { + return $this->optional; + } + + /** + * If set to true, parameter is optional to purchase this Offer. + * + * Generated from protobuf field bool optional = 6; + * @param bool $var + * @return $this + */ + public function setOptional($var) + { + GPBUtil::checkBool($var); + $this->optional = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition/ParameterType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition/ParameterType.php new file mode 100644 index 000000000000..91e6f0756017 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ParameterDefinition/ParameterType.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.ParameterDefinition.ParameterType + */ +class ParameterType +{ + /** + * Not used. + * + * Generated from protobuf enum PARAMETER_TYPE_UNSPECIFIED = 0; + */ + const PARAMETER_TYPE_UNSPECIFIED = 0; + /** + * Int64 type. + * + * Generated from protobuf enum INT64 = 1; + */ + const INT64 = 1; + /** + * String type. + * + * Generated from protobuf enum STRING = 2; + */ + const STRING = 2; + /** + * Double type. + * + * Generated from protobuf enum DOUBLE = 3; + */ + const DOUBLE = 3; + /** + * Boolean type. + * + * Generated from protobuf enum BOOLEAN = 4; + */ + const BOOLEAN = 4; + + private static $valueToName = [ + self::PARAMETER_TYPE_UNSPECIFIED => 'PARAMETER_TYPE_UNSPECIFIED', + self::INT64 => 'INT64', + self::STRING => 'STRING', + self::DOUBLE => 'DOUBLE', + self::BOOLEAN => 'BOOLEAN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ParameterType::class, \Google\Cloud\Channel\V1\ParameterDefinition_ParameterType::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentPlan.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentPlan.php new file mode 100644 index 000000000000..1870c6504905 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentPlan.php @@ -0,0 +1,82 @@ +google.cloud.channel.v1.PaymentPlan + */ +class PaymentPlan +{ + /** + * Not used. + * + * Generated from protobuf enum PAYMENT_PLAN_UNSPECIFIED = 0; + */ + const PAYMENT_PLAN_UNSPECIFIED = 0; + /** + * Commitment. + * + * Generated from protobuf enum COMMITMENT = 1; + */ + const COMMITMENT = 1; + /** + * No commitment. + * + * Generated from protobuf enum FLEXIBLE = 2; + */ + const FLEXIBLE = 2; + /** + * Free. + * + * Generated from protobuf enum FREE = 3; + */ + const FREE = 3; + /** + * Trial. + * + * Generated from protobuf enum TRIAL = 4; + */ + const TRIAL = 4; + /** + * Price and ordering not available through API. + * + * Generated from protobuf enum OFFLINE = 5; + */ + const OFFLINE = 5; + + private static $valueToName = [ + self::PAYMENT_PLAN_UNSPECIFIED => 'PAYMENT_PLAN_UNSPECIFIED', + self::COMMITMENT => 'COMMITMENT', + self::FLEXIBLE => 'FLEXIBLE', + self::FREE => 'FREE', + self::TRIAL => 'TRIAL', + self::OFFLINE => 'OFFLINE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentType.php new file mode 100644 index 000000000000..16882376781a --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PaymentType.php @@ -0,0 +1,61 @@ +google.cloud.channel.v1.PaymentType + */ +class PaymentType +{ + /** + * Not used. + * + * Generated from protobuf enum PAYMENT_TYPE_UNSPECIFIED = 0; + */ + const PAYMENT_TYPE_UNSPECIFIED = 0; + /** + * Prepay. Amount has to be paid before service is rendered. + * + * Generated from protobuf enum PREPAY = 1; + */ + const PREPAY = 1; + /** + * Postpay. Reseller is charged at the end of the Payment cycle. + * + * Generated from protobuf enum POSTPAY = 2; + */ + const POSTPAY = 2; + + private static $valueToName = [ + self::PAYMENT_TYPE_UNSPECIFIED => 'PAYMENT_TYPE_UNSPECIFIED', + self::PREPAY => 'PREPAY', + self::POSTPAY => 'POSTPAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/PercentageAdjustment.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PercentageAdjustment.php new file mode 100644 index 000000000000..4e93c4c2f951 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PercentageAdjustment.php @@ -0,0 +1,93 @@ +google.cloud.channel.v1.PercentageAdjustment + */ +class PercentageAdjustment extends \Google\Protobuf\Internal\Message +{ + /** + * The percentage of the bill to adjust. + * For example: + * Mark down by 1% => "-1.00" + * Mark up by 1% => "1.00" + * Pass-Through => "0.00" + * + * Generated from protobuf field .google.type.Decimal percentage = 2; + */ + protected $percentage = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Decimal $percentage + * The percentage of the bill to adjust. + * For example: + * Mark down by 1% => "-1.00" + * Mark up by 1% => "1.00" + * Pass-Through => "0.00" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * The percentage of the bill to adjust. + * For example: + * Mark down by 1% => "-1.00" + * Mark up by 1% => "1.00" + * Pass-Through => "0.00" + * + * Generated from protobuf field .google.type.Decimal percentage = 2; + * @return \Google\Type\Decimal|null + */ + public function getPercentage() + { + return $this->percentage; + } + + public function hasPercentage() + { + return isset($this->percentage); + } + + public function clearPercentage() + { + unset($this->percentage); + } + + /** + * The percentage of the bill to adjust. + * For example: + * Mark down by 1% => "-1.00" + * Mark up by 1% => "1.00" + * Pass-Through => "0.00" + * + * Generated from protobuf field .google.type.Decimal percentage = 2; + * @param \Google\Type\Decimal $var + * @return $this + */ + public function setPercentage($var) + { + GPBUtil::checkMessage($var, \Google\Type\Decimal::class); + $this->percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Period.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Period.php new file mode 100644 index 000000000000..0981fae6f873 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Period.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.Period + */ +class Period extends \Google\Protobuf\Internal\Message +{ + /** + * Total duration of Period Type defined. + * + * Generated from protobuf field int32 duration = 1; + */ + protected $duration = 0; + /** + * Period Type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 2; + */ + protected $period_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $duration + * Total duration of Period Type defined. + * @type int $period_type + * Period Type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Total duration of Period Type defined. + * + * Generated from protobuf field int32 duration = 1; + * @return int + */ + public function getDuration() + { + return $this->duration; + } + + /** + * Total duration of Period Type defined. + * + * Generated from protobuf field int32 duration = 1; + * @param int $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkInt32($var); + $this->duration = $var; + + return $this; + } + + /** + * Period Type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 2; + * @return int + */ + public function getPeriodType() + { + return $this->period_type; + } + + /** + * Period Type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 2; + * @param int $var + * @return $this + */ + public function setPeriodType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\PeriodType::class); + $this->period_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PeriodType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PeriodType.php new file mode 100644 index 000000000000..7eefa4c3b44e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PeriodType.php @@ -0,0 +1,68 @@ +google.cloud.channel.v1.PeriodType + */ +class PeriodType +{ + /** + * Not used. + * + * Generated from protobuf enum PERIOD_TYPE_UNSPECIFIED = 0; + */ + const PERIOD_TYPE_UNSPECIFIED = 0; + /** + * Day. + * + * Generated from protobuf enum DAY = 1; + */ + const DAY = 1; + /** + * Month. + * + * Generated from protobuf enum MONTH = 2; + */ + const MONTH = 2; + /** + * Year. + * + * Generated from protobuf enum YEAR = 3; + */ + const YEAR = 3; + + private static $valueToName = [ + self::PERIOD_TYPE_UNSPECIFIED => 'PERIOD_TYPE_UNSPECIFIED', + self::DAY => 'DAY', + self::MONTH => 'MONTH', + self::YEAR => '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); + } +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Plan.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Plan.php new file mode 100644 index 000000000000..36dfc4a38969 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Plan.php @@ -0,0 +1,251 @@ +google.cloud.channel.v1.Plan + */ +class Plan extends \Google\Protobuf\Internal\Message +{ + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 1; + */ + protected $payment_plan = 0; + /** + * Specifies when the payment needs to happen. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentType payment_type = 2; + */ + protected $payment_type = 0; + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 3; + */ + protected $payment_cycle = null; + /** + * Present for Offers with a trial period. + * For trial-only Offers, a paid service needs to start before the trial + * period ends for continued service. + * For Regular Offers with a trial period, the regular pricing goes into + * effect when trial period ends, or if paid service is started before the end + * of the trial period. + * + * Generated from protobuf field .google.cloud.channel.v1.Period trial_period = 4; + */ + protected $trial_period = null; + /** + * Reseller Billing account to charge after an offer transaction. + * Only present for Google Cloud offers. + * + * Generated from protobuf field string billing_account = 5; + */ + protected $billing_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $payment_plan + * Describes how a reseller will be billed. + * @type int $payment_type + * Specifies when the payment needs to happen. + * @type \Google\Cloud\Channel\V1\Period $payment_cycle + * Describes how frequently the reseller will be billed, such as + * once per month. + * @type \Google\Cloud\Channel\V1\Period $trial_period + * Present for Offers with a trial period. + * For trial-only Offers, a paid service needs to start before the trial + * period ends for continued service. + * For Regular Offers with a trial period, the regular pricing goes into + * effect when trial period ends, or if paid service is started before the end + * of the trial period. + * @type string $billing_account + * Reseller Billing account to charge after an offer transaction. + * Only present for Google Cloud offers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 1; + * @return int + */ + public function getPaymentPlan() + { + return $this->payment_plan; + } + + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 1; + * @param int $var + * @return $this + */ + public function setPaymentPlan($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\PaymentPlan::class); + $this->payment_plan = $var; + + return $this; + } + + /** + * Specifies when the payment needs to happen. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentType payment_type = 2; + * @return int + */ + public function getPaymentType() + { + return $this->payment_type; + } + + /** + * Specifies when the payment needs to happen. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentType payment_type = 2; + * @param int $var + * @return $this + */ + public function setPaymentType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\PaymentType::class); + $this->payment_type = $var; + + return $this; + } + + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 3; + * @return \Google\Cloud\Channel\V1\Period|null + */ + public function getPaymentCycle() + { + return $this->payment_cycle; + } + + public function hasPaymentCycle() + { + return isset($this->payment_cycle); + } + + public function clearPaymentCycle() + { + unset($this->payment_cycle); + } + + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 3; + * @param \Google\Cloud\Channel\V1\Period $var + * @return $this + */ + public function setPaymentCycle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Period::class); + $this->payment_cycle = $var; + + return $this; + } + + /** + * Present for Offers with a trial period. + * For trial-only Offers, a paid service needs to start before the trial + * period ends for continued service. + * For Regular Offers with a trial period, the regular pricing goes into + * effect when trial period ends, or if paid service is started before the end + * of the trial period. + * + * Generated from protobuf field .google.cloud.channel.v1.Period trial_period = 4; + * @return \Google\Cloud\Channel\V1\Period|null + */ + public function getTrialPeriod() + { + return $this->trial_period; + } + + public function hasTrialPeriod() + { + return isset($this->trial_period); + } + + public function clearTrialPeriod() + { + unset($this->trial_period); + } + + /** + * Present for Offers with a trial period. + * For trial-only Offers, a paid service needs to start before the trial + * period ends for continued service. + * For Regular Offers with a trial period, the regular pricing goes into + * effect when trial period ends, or if paid service is started before the end + * of the trial period. + * + * Generated from protobuf field .google.cloud.channel.v1.Period trial_period = 4; + * @param \Google\Cloud\Channel\V1\Period $var + * @return $this + */ + public function setTrialPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Period::class); + $this->trial_period = $var; + + return $this; + } + + /** + * Reseller Billing account to charge after an offer transaction. + * Only present for Google Cloud offers. + * + * Generated from protobuf field string billing_account = 5; + * @return string + */ + public function getBillingAccount() + { + return $this->billing_account; + } + + /** + * Reseller Billing account to charge after an offer transaction. + * Only present for Google Cloud offers. + * + * Generated from protobuf field string billing_account = 5; + * @param string $var + * @return $this + */ + public function setBillingAccount($var) + { + GPBUtil::checkString($var, True); + $this->billing_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Price.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Price.php new file mode 100644 index 000000000000..eca9e4739ee9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Price.php @@ -0,0 +1,193 @@ +google.cloud.channel.v1.Price + */ +class Price extends \Google\Protobuf\Internal\Message +{ + /** + * Base price. + * + * Generated from protobuf field .google.type.Money base_price = 1; + */ + protected $base_price = null; + /** + * Discount percentage, represented as decimal. + * For example, a 20% discount will be represent as 0.2. + * + * Generated from protobuf field double discount = 2; + */ + protected $discount = 0.0; + /** + * Effective Price after applying the discounts. + * + * Generated from protobuf field .google.type.Money effective_price = 3; + */ + protected $effective_price = null; + /** + * Link to external price list, such as link to Google Voice rate card. + * + * Generated from protobuf field string external_price_uri = 4; + */ + protected $external_price_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Money $base_price + * Base price. + * @type float $discount + * Discount percentage, represented as decimal. + * For example, a 20% discount will be represent as 0.2. + * @type \Google\Type\Money $effective_price + * Effective Price after applying the discounts. + * @type string $external_price_uri + * Link to external price list, such as link to Google Voice rate card. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Base price. + * + * Generated from protobuf field .google.type.Money base_price = 1; + * @return \Google\Type\Money|null + */ + public function getBasePrice() + { + return $this->base_price; + } + + public function hasBasePrice() + { + return isset($this->base_price); + } + + public function clearBasePrice() + { + unset($this->base_price); + } + + /** + * Base price. + * + * Generated from protobuf field .google.type.Money base_price = 1; + * @param \Google\Type\Money $var + * @return $this + */ + public function setBasePrice($var) + { + GPBUtil::checkMessage($var, \Google\Type\Money::class); + $this->base_price = $var; + + return $this; + } + + /** + * Discount percentage, represented as decimal. + * For example, a 20% discount will be represent as 0.2. + * + * Generated from protobuf field double discount = 2; + * @return float + */ + public function getDiscount() + { + return $this->discount; + } + + /** + * Discount percentage, represented as decimal. + * For example, a 20% discount will be represent as 0.2. + * + * Generated from protobuf field double discount = 2; + * @param float $var + * @return $this + */ + public function setDiscount($var) + { + GPBUtil::checkDouble($var); + $this->discount = $var; + + return $this; + } + + /** + * Effective Price after applying the discounts. + * + * Generated from protobuf field .google.type.Money effective_price = 3; + * @return \Google\Type\Money|null + */ + public function getEffectivePrice() + { + return $this->effective_price; + } + + public function hasEffectivePrice() + { + return isset($this->effective_price); + } + + public function clearEffectivePrice() + { + unset($this->effective_price); + } + + /** + * Effective Price after applying the discounts. + * + * Generated from protobuf field .google.type.Money effective_price = 3; + * @param \Google\Type\Money $var + * @return $this + */ + public function setEffectivePrice($var) + { + GPBUtil::checkMessage($var, \Google\Type\Money::class); + $this->effective_price = $var; + + return $this; + } + + /** + * Link to external price list, such as link to Google Voice rate card. + * + * Generated from protobuf field string external_price_uri = 4; + * @return string + */ + public function getExternalPriceUri() + { + return $this->external_price_uri; + } + + /** + * Link to external price list, such as link to Google Voice rate card. + * + * Generated from protobuf field string external_price_uri = 4; + * @param string $var + * @return $this + */ + public function setExternalPriceUri($var) + { + GPBUtil::checkString($var, True); + $this->external_price_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceByResource.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceByResource.php new file mode 100644 index 000000000000..c7716c2f5df3 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceByResource.php @@ -0,0 +1,145 @@ +google.cloud.channel.v1.PriceByResource + */ +class PriceByResource extends \Google\Protobuf\Internal\Message +{ + /** + * Resource Type. Example: SEAT + * + * Generated from protobuf field .google.cloud.channel.v1.ResourceType resource_type = 1; + */ + protected $resource_type = 0; + /** + * Price of the Offer. Present if there are no price phases. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 2; + */ + protected $price = null; + /** + * Specifies the price by time range. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PricePhase price_phases = 3; + */ + private $price_phases; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $resource_type + * Resource Type. Example: SEAT + * @type \Google\Cloud\Channel\V1\Price $price + * Price of the Offer. Present if there are no price phases. + * @type array<\Google\Cloud\Channel\V1\PricePhase>|\Google\Protobuf\Internal\RepeatedField $price_phases + * Specifies the price by time range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Resource Type. Example: SEAT + * + * Generated from protobuf field .google.cloud.channel.v1.ResourceType resource_type = 1; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Resource Type. Example: SEAT + * + * Generated from protobuf field .google.cloud.channel.v1.ResourceType resource_type = 1; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * Price of the Offer. Present if there are no price phases. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 2; + * @return \Google\Cloud\Channel\V1\Price|null + */ + public function getPrice() + { + return $this->price; + } + + public function hasPrice() + { + return isset($this->price); + } + + public function clearPrice() + { + unset($this->price); + } + + /** + * Price of the Offer. Present if there are no price phases. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 2; + * @param \Google\Cloud\Channel\V1\Price $var + * @return $this + */ + public function setPrice($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Price::class); + $this->price = $var; + + return $this; + } + + /** + * Specifies the price by time range. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PricePhase price_phases = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPricePhases() + { + return $this->price_phases; + } + + /** + * Specifies the price by time range. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PricePhase price_phases = 3; + * @param array<\Google\Cloud\Channel\V1\PricePhase>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPricePhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\PricePhase::class); + $this->price_phases = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PricePhase.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PricePhase.php new file mode 100644 index 000000000000..f96fecb48948 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PricePhase.php @@ -0,0 +1,215 @@ +google.cloud.channel.v1.PricePhase + */ +class PricePhase extends \Google\Protobuf\Internal\Message +{ + /** + * Defines the phase period type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 1; + */ + protected $period_type = 0; + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 first_period = 2; + */ + protected $first_period = 0; + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 last_period = 3; + */ + protected $last_period = 0; + /** + * Price of the phase. Present if there are no price tiers. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 4; + */ + protected $price = null; + /** + * Price by the resource tiers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; + */ + private $price_tiers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $period_type + * Defines the phase period type. + * @type int $first_period + * Defines first period for the phase. + * @type int $last_period + * Defines first period for the phase. + * @type \Google\Cloud\Channel\V1\Price $price + * Price of the phase. Present if there are no price tiers. + * @type array<\Google\Cloud\Channel\V1\PriceTier>|\Google\Protobuf\Internal\RepeatedField $price_tiers + * Price by the resource tiers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * Defines the phase period type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 1; + * @return int + */ + public function getPeriodType() + { + return $this->period_type; + } + + /** + * Defines the phase period type. + * + * Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 1; + * @param int $var + * @return $this + */ + public function setPeriodType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\PeriodType::class); + $this->period_type = $var; + + return $this; + } + + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 first_period = 2; + * @return int + */ + public function getFirstPeriod() + { + return $this->first_period; + } + + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 first_period = 2; + * @param int $var + * @return $this + */ + public function setFirstPeriod($var) + { + GPBUtil::checkInt32($var); + $this->first_period = $var; + + return $this; + } + + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 last_period = 3; + * @return int + */ + public function getLastPeriod() + { + return $this->last_period; + } + + /** + * Defines first period for the phase. + * + * Generated from protobuf field int32 last_period = 3; + * @param int $var + * @return $this + */ + public function setLastPeriod($var) + { + GPBUtil::checkInt32($var); + $this->last_period = $var; + + return $this; + } + + /** + * Price of the phase. Present if there are no price tiers. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 4; + * @return \Google\Cloud\Channel\V1\Price|null + */ + public function getPrice() + { + return $this->price; + } + + public function hasPrice() + { + return isset($this->price); + } + + public function clearPrice() + { + unset($this->price); + } + + /** + * Price of the phase. Present if there are no price tiers. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 4; + * @param \Google\Cloud\Channel\V1\Price $var + * @return $this + */ + public function setPrice($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Price::class); + $this->price = $var; + + return $this; + } + + /** + * Price by the resource tiers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPriceTiers() + { + return $this->price_tiers; + } + + /** + * Price by the resource tiers. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; + * @param array<\Google\Cloud\Channel\V1\PriceTier>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPriceTiers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\PriceTier::class); + $this->price_tiers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceTier.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceTier.php new file mode 100644 index 000000000000..841cafd24ee5 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PriceTier.php @@ -0,0 +1,150 @@ +google.cloud.channel.v1.PriceTier + */ +class PriceTier extends \Google\Protobuf\Internal\Message +{ + /** + * First resource for which the tier price applies. + * + * Generated from protobuf field int32 first_resource = 1; + */ + protected $first_resource = 0; + /** + * Last resource for which the tier price applies. + * + * Generated from protobuf field int32 last_resource = 2; + */ + protected $last_resource = 0; + /** + * Price of the tier. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 3; + */ + protected $price = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $first_resource + * First resource for which the tier price applies. + * @type int $last_resource + * Last resource for which the tier price applies. + * @type \Google\Cloud\Channel\V1\Price $price + * Price of the tier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Offers::initOnce(); + parent::__construct($data); + } + + /** + * First resource for which the tier price applies. + * + * Generated from protobuf field int32 first_resource = 1; + * @return int + */ + public function getFirstResource() + { + return $this->first_resource; + } + + /** + * First resource for which the tier price applies. + * + * Generated from protobuf field int32 first_resource = 1; + * @param int $var + * @return $this + */ + public function setFirstResource($var) + { + GPBUtil::checkInt32($var); + $this->first_resource = $var; + + return $this; + } + + /** + * Last resource for which the tier price applies. + * + * Generated from protobuf field int32 last_resource = 2; + * @return int + */ + public function getLastResource() + { + return $this->last_resource; + } + + /** + * Last resource for which the tier price applies. + * + * Generated from protobuf field int32 last_resource = 2; + * @param int $var + * @return $this + */ + public function setLastResource($var) + { + GPBUtil::checkInt32($var); + $this->last_resource = $var; + + return $this; + } + + /** + * Price of the tier. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 3; + * @return \Google\Cloud\Channel\V1\Price|null + */ + public function getPrice() + { + return $this->price; + } + + public function hasPrice() + { + return isset($this->price); + } + + public function clearPrice() + { + unset($this->price); + } + + /** + * Price of the tier. + * + * Generated from protobuf field .google.cloud.channel.v1.Price price = 3; + * @param \Google\Cloud\Channel\V1\Price $var + * @return $this + */ + public function setPrice($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Price::class); + $this->price = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Product.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Product.php new file mode 100644 index 000000000000..c83cb84c0406 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Product.php @@ -0,0 +1,116 @@ +google.cloud.channel.v1.Product + */ +class Product extends \Google\Protobuf\Internal\Message +{ + /** + * Resource Name of the Product. + * Format: products/{product_id} + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Marketing information for the product. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + */ + protected $marketing_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource Name of the Product. + * Format: products/{product_id} + * @type \Google\Cloud\Channel\V1\MarketingInfo $marketing_info + * Marketing information for the product. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Products::initOnce(); + parent::__construct($data); + } + + /** + * Resource Name of the Product. + * Format: products/{product_id} + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource Name of the Product. + * Format: products/{product_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; + } + + /** + * Marketing information for the product. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @return \Google\Cloud\Channel\V1\MarketingInfo|null + */ + public function getMarketingInfo() + { + return $this->marketing_info; + } + + public function hasMarketingInfo() + { + return isset($this->marketing_info); + } + + public function clearMarketingInfo() + { + unset($this->marketing_info); + } + + /** + * Marketing information for the product. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @param \Google\Cloud\Channel\V1\MarketingInfo $var + * @return $this + */ + public function setMarketingInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\MarketingInfo::class); + $this->marketing_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PromotionalOrderType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PromotionalOrderType.php new file mode 100644 index 000000000000..4249ca8ca55f --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PromotionalOrderType.php @@ -0,0 +1,68 @@ +google.cloud.channel.v1.PromotionalOrderType + */ +class PromotionalOrderType +{ + /** + * Not used. + * + * Generated from protobuf enum PROMOTIONAL_TYPE_UNSPECIFIED = 0; + */ + const PROMOTIONAL_TYPE_UNSPECIFIED = 0; + /** + * Order used for new customers, trial conversions and upgrades. + * + * Generated from protobuf enum NEW_UPGRADE = 1; + */ + const NEW_UPGRADE = 1; + /** + * All orders for transferring an existing customer. + * + * Generated from protobuf enum TRANSFER = 2; + */ + const TRANSFER = 2; + /** + * Orders for modifying an existing customer's promotion on the same SKU. + * + * Generated from protobuf enum PROMOTION_SWITCH = 3; + */ + const PROMOTION_SWITCH = 3; + + private static $valueToName = [ + self::PROMOTIONAL_TYPE_UNSPECIFIED => 'PROMOTIONAL_TYPE_UNSPECIFIED', + self::NEW_UPGRADE => 'NEW_UPGRADE', + self::TRANSFER => 'TRANSFER', + self::PROMOTION_SWITCH => 'PROMOTION_SWITCH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionCloudIdentityRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionCloudIdentityRequest.php new file mode 100644 index 000000000000..e2d118f9e89c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionCloudIdentityRequest.php @@ -0,0 +1,194 @@ +google.cloud.channel.v1.ProvisionCloudIdentityRequest + */ +class ProvisionCloudIdentityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $customer = ''; + /** + * CloudIdentity-specific customer information. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 2; + */ + protected $cloud_identity_info = null; + /** + * Admin user information. + * + * Generated from protobuf field .google.cloud.channel.v1.AdminUser user = 3; + */ + protected $user = null; + /** + * Validate the request and preview the review, but do not post it. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $customer + * Required. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * @type \Google\Cloud\Channel\V1\CloudIdentityInfo $cloud_identity_info + * CloudIdentity-specific customer information. + * @type \Google\Cloud\Channel\V1\AdminUser $user + * Admin user information. + * @type bool $validate_only + * Validate the request and preview the review, but do not post it. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Required. Resource name of the customer. + * Format: accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * CloudIdentity-specific customer information. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 2; + * @return \Google\Cloud\Channel\V1\CloudIdentityInfo|null + */ + public function getCloudIdentityInfo() + { + return $this->cloud_identity_info; + } + + public function hasCloudIdentityInfo() + { + return isset($this->cloud_identity_info); + } + + public function clearCloudIdentityInfo() + { + unset($this->cloud_identity_info); + } + + /** + * CloudIdentity-specific customer information. + * + * Generated from protobuf field .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 2; + * @param \Google\Cloud\Channel\V1\CloudIdentityInfo $var + * @return $this + */ + public function setCloudIdentityInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CloudIdentityInfo::class); + $this->cloud_identity_info = $var; + + return $this; + } + + /** + * Admin user information. + * + * Generated from protobuf field .google.cloud.channel.v1.AdminUser user = 3; + * @return \Google\Cloud\Channel\V1\AdminUser|null + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + public function clearUser() + { + unset($this->user); + } + + /** + * Admin user information. + * + * Generated from protobuf field .google.cloud.channel.v1.AdminUser user = 3; + * @param \Google\Cloud\Channel\V1\AdminUser $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\AdminUser::class); + $this->user = $var; + + return $this; + } + + /** + * Validate the request and preview the review, but do not post it. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Validate the request and preview the review, but do not post it. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionedService.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionedService.php new file mode 100644 index 000000000000..1f8430dca72e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ProvisionedService.php @@ -0,0 +1,151 @@ +google.cloud.channel.v1.ProvisionedService + */ +class ProvisionedService extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Provisioning ID of the entitlement. For Google Workspace, this + * is the underlying Subscription ID. For Google Cloud, this is the Billing + * Account ID of the billing subaccount. + * + * Generated from protobuf field string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $provisioning_id = ''; + /** + * Output only. The product pertaining to the provisioning resource as + * specified in the Offer. + * + * Generated from protobuf field string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $product_id = ''; + /** + * Output only. The SKU pertaining to the provisioning resource as specified + * in the Offer. + * + * Generated from protobuf field string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sku_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $provisioning_id + * Output only. Provisioning ID of the entitlement. For Google Workspace, this + * is the underlying Subscription ID. For Google Cloud, this is the Billing + * Account ID of the billing subaccount. + * @type string $product_id + * Output only. The product pertaining to the provisioning resource as + * specified in the Offer. + * @type string $sku_id + * Output only. The SKU pertaining to the provisioning resource as specified + * in the Offer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Provisioning ID of the entitlement. For Google Workspace, this + * is the underlying Subscription ID. For Google Cloud, this is the Billing + * Account ID of the billing subaccount. + * + * Generated from protobuf field string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getProvisioningId() + { + return $this->provisioning_id; + } + + /** + * Output only. Provisioning ID of the entitlement. For Google Workspace, this + * is the underlying Subscription ID. For Google Cloud, this is the Billing + * Account ID of the billing subaccount. + * + * Generated from protobuf field string provisioning_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setProvisioningId($var) + { + GPBUtil::checkString($var, True); + $this->provisioning_id = $var; + + return $this; + } + + /** + * Output only. The product pertaining to the provisioning resource as + * specified in the Offer. + * + * Generated from protobuf field string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getProductId() + { + return $this->product_id; + } + + /** + * Output only. The product pertaining to the provisioning resource as + * specified in the Offer. + * + * Generated from protobuf field string product_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setProductId($var) + { + GPBUtil::checkString($var, True); + $this->product_id = $var; + + return $this; + } + + /** + * Output only. The SKU pertaining to the provisioning resource as specified + * in the Offer. + * + * Generated from protobuf field string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkuId() + { + return $this->sku_id; + } + + /** + * Output only. The SKU pertaining to the provisioning resource as specified + * in the Offer. + * + * Generated from protobuf field string sku_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkuId($var) + { + GPBUtil::checkString($var, True); + $this->sku_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableOffer.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableOffer.php new file mode 100644 index 000000000000..3a5e9a979bfd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableOffer.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.PurchasableOffer + */ +class PurchasableOffer extends \Google\Protobuf\Internal\Message +{ + /** + * Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + */ + protected $offer = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\Offer $offer + * Offer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + * @return \Google\Cloud\Channel\V1\Offer|null + */ + public function getOffer() + { + return $this->offer; + } + + public function hasOffer() + { + return isset($this->offer); + } + + public function clearOffer() + { + unset($this->offer); + } + + /** + * Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + * @param \Google\Cloud\Channel\V1\Offer $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Offer::class); + $this->offer = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableSku.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableSku.php new file mode 100644 index 000000000000..d3050a9580e5 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/PurchasableSku.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.PurchasableSku + */ +class PurchasableSku extends \Google\Protobuf\Internal\Message +{ + /** + * SKU + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 1; + */ + protected $sku = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\Sku $sku + * SKU + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * SKU + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 1; + * @return \Google\Cloud\Channel\V1\Sku|null + */ + public function getSku() + { + return $this->sku; + } + + public function hasSku() + { + return isset($this->sku); + } + + public function clearSku() + { + unset($this->sku); + } + + /** + * SKU + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 1; + * @param \Google\Cloud\Channel\V1\Sku $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class); + $this->sku = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsRequest.php new file mode 100644 index 000000000000..19ff11ad09c1 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsRequest.php @@ -0,0 +1,109 @@ +google.cloud.channel.v1.QueryEligibleBillingAccountsRequest + */ +class QueryEligibleBillingAccountsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the customer to list eligible billing + * accounts for. Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $customer = ''; + /** + * Required. List of SKUs to list eligible billing accounts for. At least one + * SKU is required. Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $skus; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $customer + * Required. The resource name of the customer to list eligible billing + * accounts for. Format: accounts/{account_id}/customers/{customer_id}. + * @type array|\Google\Protobuf\Internal\RepeatedField $skus + * Required. List of SKUs to list eligible billing accounts for. At least one + * SKU is required. Format: products/{product_id}/skus/{sku_id}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the customer to list eligible billing + * accounts for. Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * Required. The resource name of the customer to list eligible billing + * accounts for. Format: accounts/{account_id}/customers/{customer_id}. + * + * Generated from protobuf field string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * Required. List of SKUs to list eligible billing accounts for. At least one + * SKU is required. Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkus() + { + return $this->skus; + } + + /** + * Required. List of SKUs to list eligible billing accounts for. At least one + * SKU is required. Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->skus = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsResponse.php new file mode 100644 index 000000000000..02ebd10688cd --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/QueryEligibleBillingAccountsResponse.php @@ -0,0 +1,79 @@ +google.cloud.channel.v1.QueryEligibleBillingAccountsResponse + */ +class QueryEligibleBillingAccountsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of SKU purchase groups where each group represents a set of SKUs that + * must be purchased using the same billing account. Each SKU from + * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU + * group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1; + */ + private $sku_purchase_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Channel\V1\SkuPurchaseGroup>|\Google\Protobuf\Internal\RepeatedField $sku_purchase_groups + * List of SKU purchase groups where each group represents a set of SKUs that + * must be purchased using the same billing account. Each SKU from + * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU + * group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of SKU purchase groups where each group represents a set of SKUs that + * must be purchased using the same billing account. Each SKU from + * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU + * group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkuPurchaseGroups() + { + return $this->sku_purchase_groups; + } + + /** + * List of SKU purchase groups where each group represents a set of SKUs that + * must be purchased using the same billing account. Each SKU from + * [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU + * group. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.SkuPurchaseGroup sku_purchase_groups = 1; + * @param array<\Google\Cloud\Channel\V1\SkuPurchaseGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkuPurchaseGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\SkuPurchaseGroup::class); + $this->sku_purchase_groups = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RebillingBasis.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RebillingBasis.php new file mode 100644 index 000000000000..93b6514d661d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RebillingBasis.php @@ -0,0 +1,64 @@ +google.cloud.channel.v1.RebillingBasis + */ +class RebillingBasis +{ + /** + * Not used. + * + * Generated from protobuf enum REBILLING_BASIS_UNSPECIFIED = 0; + */ + const REBILLING_BASIS_UNSPECIFIED = 0; + /** + * Use the list cost, also known as the MSRP. + * + * Generated from protobuf enum COST_AT_LIST = 1; + */ + const COST_AT_LIST = 1; + /** + * Pass through all discounts except the Reseller Program Discount. If this is + * the default cost base and no adjustments are specified, the output cost + * will be exactly what the customer would see if they viewed the bill in the + * Google Cloud Console. + * + * Generated from protobuf enum DIRECT_CUSTOMER_COST = 2; + */ + const DIRECT_CUSTOMER_COST = 2; + + private static $valueToName = [ + self::REBILLING_BASIS_UNSPECIFIED => 'REBILLING_BASIS_UNSPECIFIED', + self::COST_AT_LIST => 'COST_AT_LIST', + self::DIRECT_CUSTOMER_COST => 'DIRECT_CUSTOMER_COST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberRequest.php new file mode 100644 index 000000000000..ffcb4b546cdf --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberRequest.php @@ -0,0 +1,105 @@ +google.cloud.channel.v1.RegisterSubscriberRequest + */ +class RegisterSubscriberRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = ''; + /** + * Required. Service account that provides subscriber access to the registered + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. Resource name of the account. + * @type string $service_account + * Required. Service account that provides subscriber access to the registered + * topic. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Required. Service account that provides subscriber access to the registered + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Required. Service account that provides subscriber access to the registered + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberResponse.php new file mode 100644 index 000000000000..e7fac5047d10 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RegisterSubscriberResponse.php @@ -0,0 +1,67 @@ +google.cloud.channel.v1.RegisterSubscriberResponse + */ +class RegisterSubscriberResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the topic the subscriber will listen to. + * + * Generated from protobuf field string topic = 1; + */ + protected $topic = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $topic + * Name of the topic the subscriber will listen to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Name of the topic the subscriber will listen to. + * + * Generated from protobuf field string topic = 1; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Name of the topic the subscriber will listen to. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/RenewalSettings.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RenewalSettings.php new file mode 100644 index 000000000000..21463761196e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RenewalSettings.php @@ -0,0 +1,187 @@ +google.cloud.channel.v1.RenewalSettings + */ +class RenewalSettings extends \Google\Protobuf\Internal\Message +{ + /** + * If false, the plan will be completed at the end date. + * + * Generated from protobuf field bool enable_renewal = 1; + */ + protected $enable_renewal = false; + /** + * If true and enable_renewal = true, the unit (for example seats or licenses) + * will be set to the number of active units at renewal time. + * + * Generated from protobuf field bool resize_unit_count = 2; + */ + protected $resize_unit_count = false; + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 5; + */ + protected $payment_plan = 0; + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 6; + */ + protected $payment_cycle = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_renewal + * If false, the plan will be completed at the end date. + * @type bool $resize_unit_count + * If true and enable_renewal = true, the unit (for example seats or licenses) + * will be set to the number of active units at renewal time. + * @type int $payment_plan + * Describes how a reseller will be billed. + * @type \Google\Cloud\Channel\V1\Period $payment_cycle + * Describes how frequently the reseller will be billed, such as + * once per month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * If false, the plan will be completed at the end date. + * + * Generated from protobuf field bool enable_renewal = 1; + * @return bool + */ + public function getEnableRenewal() + { + return $this->enable_renewal; + } + + /** + * If false, the plan will be completed at the end date. + * + * Generated from protobuf field bool enable_renewal = 1; + * @param bool $var + * @return $this + */ + public function setEnableRenewal($var) + { + GPBUtil::checkBool($var); + $this->enable_renewal = $var; + + return $this; + } + + /** + * If true and enable_renewal = true, the unit (for example seats or licenses) + * will be set to the number of active units at renewal time. + * + * Generated from protobuf field bool resize_unit_count = 2; + * @return bool + */ + public function getResizeUnitCount() + { + return $this->resize_unit_count; + } + + /** + * If true and enable_renewal = true, the unit (for example seats or licenses) + * will be set to the number of active units at renewal time. + * + * Generated from protobuf field bool resize_unit_count = 2; + * @param bool $var + * @return $this + */ + public function setResizeUnitCount($var) + { + GPBUtil::checkBool($var); + $this->resize_unit_count = $var; + + return $this; + } + + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 5; + * @return int + */ + public function getPaymentPlan() + { + return $this->payment_plan; + } + + /** + * Describes how a reseller will be billed. + * + * Generated from protobuf field .google.cloud.channel.v1.PaymentPlan payment_plan = 5; + * @param int $var + * @return $this + */ + public function setPaymentPlan($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\PaymentPlan::class); + $this->payment_plan = $var; + + return $this; + } + + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 6; + * @return \Google\Cloud\Channel\V1\Period|null + */ + public function getPaymentCycle() + { + return $this->payment_cycle; + } + + public function hasPaymentCycle() + { + return isset($this->payment_cycle); + } + + public function clearPaymentCycle() + { + unset($this->payment_cycle); + } + + /** + * Describes how frequently the reseller will be billed, such as + * once per month. + * + * Generated from protobuf field .google.cloud.channel.v1.Period payment_cycle = 6; + * @param \Google\Cloud\Channel\V1\Period $var + * @return $this + */ + public function setPaymentCycle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Period::class); + $this->payment_cycle = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Report.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Report.php new file mode 100644 index 000000000000..04a3efe4173a --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Report.php @@ -0,0 +1,196 @@ +google.cloud.channel.v1.Report + */ +class Report extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * A human-readable name for this report. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The list of columns included in the report. This defines the schema of + * the report results. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Column columns = 3; + */ + private $columns; + /** + * A description of other aspects of the report, such as the products + * it supports. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * @type string $display_name + * A human-readable name for this report. + * @type array<\Google\Cloud\Channel\V1\Column>|\Google\Protobuf\Internal\RepeatedField $columns + * The list of columns included in the report. This defines the schema of + * the report results. + * @type string $description + * A description of other aspects of the report, such as the products + * it supports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * + * 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 human-readable name for this report. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * A human-readable name for this report. + * + * 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 list of columns included in the report. This defines the schema of + * the report results. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Column columns = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * The list of columns included in the report. This defines the schema of + * the report results. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Column columns = 3; + * @param array<\Google\Cloud\Channel\V1\Column>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Column::class); + $this->columns = $arr; + + return $this; + } + + /** + * A description of other aspects of the report, such as the products + * it supports. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of other aspects of the report, such as the products + * it supports. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportJob.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportJob.php new file mode 100644 index 000000000000..245877cf8eb9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportJob.php @@ -0,0 +1,122 @@ +google.cloud.channel.v1.ReportJob + */ +class ReportJob extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of a report job. + * Name uses the format: + * `accounts/{account_id}/reportJobs/{report_job_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * The current status of report generation. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus report_status = 2; + */ + protected $report_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of a report job. + * Name uses the format: + * `accounts/{account_id}/reportJobs/{report_job_id}` + * @type \Google\Cloud\Channel\V1\ReportStatus $report_status + * The current status of report generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of a report job. + * Name uses the format: + * `accounts/{account_id}/reportJobs/{report_job_id}` + * + * 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 a report job. + * Name uses the format: + * `accounts/{account_id}/reportJobs/{report_job_id}` + * + * 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; + } + + /** + * The current status of report generation. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus report_status = 2; + * @return \Google\Cloud\Channel\V1\ReportStatus|null + */ + public function getReportStatus() + { + return $this->report_status; + } + + public function hasReportStatus() + { + return isset($this->report_status); + } + + public function clearReportStatus() + { + unset($this->report_status); + } + + /** + * The current status of report generation. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus report_status = 2; + * @param \Google\Cloud\Channel\V1\ReportStatus $var + * @return $this + */ + public function setReportStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ReportStatus::class); + $this->report_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportResultsMetadata.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportResultsMetadata.php new file mode 100644 index 000000000000..2f8ccb027c37 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportResultsMetadata.php @@ -0,0 +1,219 @@ +google.cloud.channel.v1.ReportResultsMetadata + */ +class ReportResultsMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Details of the completed report. + * + * Generated from protobuf field .google.cloud.channel.v1.Report report = 1; + */ + protected $report = null; + /** + * The total number of rows of data in the final report. + * + * Generated from protobuf field int64 row_count = 2; + */ + protected $row_count = 0; + /** + * The date range of reported usage. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 3; + */ + protected $date_range = null; + /** + * The usage dates immediately preceding `date_range` with the same duration. + * Use this to calculate trending usage and costs. This is only populated if + * you request trending data. + * For example, if `date_range` is July 1-15, `preceding_date_range` will be + * June 16-30. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange preceding_date_range = 4; + */ + protected $preceding_date_range = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\Report $report + * Details of the completed report. + * @type int|string $row_count + * The total number of rows of data in the final report. + * @type \Google\Cloud\Channel\V1\DateRange $date_range + * The date range of reported usage. + * @type \Google\Cloud\Channel\V1\DateRange $preceding_date_range + * The usage dates immediately preceding `date_range` with the same duration. + * Use this to calculate trending usage and costs. This is only populated if + * you request trending data. + * For example, if `date_range` is July 1-15, `preceding_date_range` will be + * June 16-30. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Details of the completed report. + * + * Generated from protobuf field .google.cloud.channel.v1.Report report = 1; + * @return \Google\Cloud\Channel\V1\Report|null + */ + public function getReport() + { + return $this->report; + } + + public function hasReport() + { + return isset($this->report); + } + + public function clearReport() + { + unset($this->report); + } + + /** + * Details of the completed report. + * + * Generated from protobuf field .google.cloud.channel.v1.Report report = 1; + * @param \Google\Cloud\Channel\V1\Report $var + * @return $this + */ + public function setReport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Report::class); + $this->report = $var; + + return $this; + } + + /** + * The total number of rows of data in the final report. + * + * Generated from protobuf field int64 row_count = 2; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The total number of rows of data in the final report. + * + * Generated from protobuf field int64 row_count = 2; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + + /** + * The date range of reported usage. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 3; + * @return \Google\Cloud\Channel\V1\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 date range of reported usage. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 3; + * @param \Google\Cloud\Channel\V1\DateRange $var + * @return $this + */ + public function setDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\DateRange::class); + $this->date_range = $var; + + return $this; + } + + /** + * The usage dates immediately preceding `date_range` with the same duration. + * Use this to calculate trending usage and costs. This is only populated if + * you request trending data. + * For example, if `date_range` is July 1-15, `preceding_date_range` will be + * June 16-30. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange preceding_date_range = 4; + * @return \Google\Cloud\Channel\V1\DateRange|null + */ + public function getPrecedingDateRange() + { + return $this->preceding_date_range; + } + + public function hasPrecedingDateRange() + { + return isset($this->preceding_date_range); + } + + public function clearPrecedingDateRange() + { + unset($this->preceding_date_range); + } + + /** + * The usage dates immediately preceding `date_range` with the same duration. + * Use this to calculate trending usage and costs. This is only populated if + * you request trending data. + * For example, if `date_range` is July 1-15, `preceding_date_range` will be + * June 16-30. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange preceding_date_range = 4; + * @param \Google\Cloud\Channel\V1\DateRange $var + * @return $this + */ + public function setPrecedingDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\DateRange::class); + $this->preceding_date_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus.php new file mode 100644 index 000000000000..021129ceb758 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus.php @@ -0,0 +1,156 @@ +google.cloud.channel.v1.ReportStatus + */ +class ReportStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The current state of the report generation process. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus.State state = 1; + */ + protected $state = 0; + /** + * The report generation's start time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The report generation's completion time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * The current state of the report generation process. + * @type \Google\Protobuf\Timestamp $start_time + * The report generation's start time. + * @type \Google\Protobuf\Timestamp $end_time + * The report generation's completion time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The current state of the report generation process. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The current state of the report generation process. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportStatus.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\ReportStatus\State::class); + $this->state = $var; + + return $this; + } + + /** + * The report generation's start time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 report generation's start time. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 report generation's completion time. + * + * 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); + } + + /** + * The report generation's completion time. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus/State.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus/State.php new file mode 100644 index 000000000000..95fb415f2513 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportStatus/State.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.ReportStatus.State + */ +class State +{ + /** + * Not used. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Report processing started. + * + * Generated from protobuf enum STARTED = 1; + */ + const STARTED = 1; + /** + * Data generated from the report is being staged. + * + * Generated from protobuf enum WRITING = 2; + */ + const WRITING = 2; + /** + * Report data is available for access. + * + * Generated from protobuf enum AVAILABLE = 3; + */ + const AVAILABLE = 3; + /** + * Report failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::STARTED => 'STARTED', + self::WRITING => 'WRITING', + self::AVAILABLE => 'AVAILABLE', + 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\Channel\V1\ReportStatus_State::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportValue.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportValue.php new file mode 100644 index 000000000000..5633371d8210 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ReportValue.php @@ -0,0 +1,250 @@ +google.cloud.channel.v1.ReportValue + */ +class ReportValue extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $string_value + * A value of type `string`. + * @type int|string $int_value + * A value of type `int`. + * @type \Google\Type\Decimal $decimal_value + * A value of type `google.type.Decimal`, representing non-integer numeric + * values. + * @type \Google\Type\Money $money_value + * A value of type `google.type.Money` (currency code, whole units, decimal + * units). + * @type \Google\Type\Date $date_value + * A value of type `google.type.Date` (year, month, day). + * @type \Google\Type\DateTime $date_time_value + * A value of type `google.type.DateTime` (year, month, day, hour, minute, + * second, and UTC offset or timezone.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * A value of type `string`. + * + * Generated from protobuf field string string_value = 1; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(1); + } + + public function hasStringValue() + { + return $this->hasOneof(1); + } + + /** + * A value of type `string`. + * + * Generated from protobuf field string string_value = 1; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A value of type `int`. + * + * Generated from protobuf field int64 int_value = 2; + * @return int|string + */ + public function getIntValue() + { + return $this->readOneof(2); + } + + public function hasIntValue() + { + return $this->hasOneof(2); + } + + /** + * A value of type `int`. + * + * Generated from protobuf field int64 int_value = 2; + * @param int|string $var + * @return $this + */ + public function setIntValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A value of type `google.type.Decimal`, representing non-integer numeric + * values. + * + * Generated from protobuf field .google.type.Decimal decimal_value = 3; + * @return \Google\Type\Decimal|null + */ + public function getDecimalValue() + { + return $this->readOneof(3); + } + + public function hasDecimalValue() + { + return $this->hasOneof(3); + } + + /** + * A value of type `google.type.Decimal`, representing non-integer numeric + * values. + * + * Generated from protobuf field .google.type.Decimal decimal_value = 3; + * @param \Google\Type\Decimal $var + * @return $this + */ + public function setDecimalValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\Decimal::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A value of type `google.type.Money` (currency code, whole units, decimal + * units). + * + * Generated from protobuf field .google.type.Money money_value = 4; + * @return \Google\Type\Money|null + */ + public function getMoneyValue() + { + return $this->readOneof(4); + } + + public function hasMoneyValue() + { + return $this->hasOneof(4); + } + + /** + * A value of type `google.type.Money` (currency code, whole units, decimal + * units). + * + * Generated from protobuf field .google.type.Money money_value = 4; + * @param \Google\Type\Money $var + * @return $this + */ + public function setMoneyValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\Money::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A value of type `google.type.Date` (year, month, day). + * + * Generated from protobuf field .google.type.Date date_value = 5; + * @return \Google\Type\Date|null + */ + public function getDateValue() + { + return $this->readOneof(5); + } + + public function hasDateValue() + { + return $this->hasOneof(5); + } + + /** + * A value of type `google.type.Date` (year, month, day). + * + * Generated from protobuf field .google.type.Date date_value = 5; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDateValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * A value of type `google.type.DateTime` (year, month, day, hour, minute, + * second, and UTC offset or timezone.) + * + * Generated from protobuf field .google.type.DateTime date_time_value = 6; + * @return \Google\Type\DateTime|null + */ + public function getDateTimeValue() + { + return $this->readOneof(6); + } + + public function hasDateTimeValue() + { + return $this->hasOneof(6); + } + + /** + * A value of type `google.type.DateTime` (year, month, day, hour, minute, + * second, and UTC offset or timezone.) + * + * Generated from protobuf field .google.type.DateTime date_time_value = 6; + * @param \Google\Type\DateTime $var + * @return $this + */ + public function setDateTimeValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\DateTime::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingAdjustment.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingAdjustment.php new file mode 100644 index 000000000000..8bba14f1a351 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingAdjustment.php @@ -0,0 +1,75 @@ +google.cloud.channel.v1.RepricingAdjustment + */ +class RepricingAdjustment extends \Google\Protobuf\Internal\Message +{ + protected $adjustment; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\PercentageAdjustment $percentage_adjustment + * Flat markup or markdown on an entire bill. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Flat markup or markdown on an entire bill. + * + * Generated from protobuf field .google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2; + * @return \Google\Cloud\Channel\V1\PercentageAdjustment|null + */ + public function getPercentageAdjustment() + { + return $this->readOneof(2); + } + + public function hasPercentageAdjustment() + { + return $this->hasOneof(2); + } + + /** + * Flat markup or markdown on an entire bill. + * + * Generated from protobuf field .google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2; + * @param \Google\Cloud\Channel\V1\PercentageAdjustment $var + * @return $this + */ + public function setPercentageAdjustment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\PercentageAdjustment::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getAdjustment() + { + return $this->whichOneof("adjustment"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingCondition.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingCondition.php new file mode 100644 index 000000000000..61a84f17d466 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingCondition.php @@ -0,0 +1,76 @@ +google.cloud.channel.v1.RepricingCondition + */ +class RepricingCondition extends \Google\Protobuf\Internal\Message +{ + protected $condition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\SkuGroupCondition $sku_group_condition + * SKU Group condition for override. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * SKU Group condition for override. + * + * Generated from protobuf field .google.cloud.channel.v1.SkuGroupCondition sku_group_condition = 1; + * @return \Google\Cloud\Channel\V1\SkuGroupCondition|null + */ + public function getSkuGroupCondition() + { + return $this->readOneof(1); + } + + public function hasSkuGroupCondition() + { + return $this->hasOneof(1); + } + + /** + * SKU Group condition for override. + * + * Generated from protobuf field .google.cloud.channel.v1.SkuGroupCondition sku_group_condition = 1; + * @param \Google\Cloud\Channel\V1\SkuGroupCondition $var + * @return $this + */ + public function setSkuGroupCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\SkuGroupCondition::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getCondition() + { + return $this->whichOneof("condition"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig.php new file mode 100644 index 000000000000..0bc37787a020 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig.php @@ -0,0 +1,340 @@ +google.cloud.channel.v1.RepricingConfig + */ +class RepricingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The YearMonth when these adjustments activate. The Day field + * needs to be "0" since we only accept YearMonth repricing boundaries. + * + * Generated from protobuf field .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $effective_invoice_month = null; + /** + * Required. Information about the adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $adjustment = null; + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for this bill. Specifies the relative cost based on repricing costs you + * will apply. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rebilling_basis = 0; + /** + * The conditional overrides to apply for this configuration. If you list + * multiple overrides, only the first valid override is used. If you don't + * list any overrides, the API uses the normal adjustment and rebilling basis. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6; + */ + private $conditional_overrides; + protected $granularity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity $entitlement_granularity + * Applies the repricing configuration at the entitlement level. + * Note: If a + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * using + * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity] + * becomes effective, then no existing or future + * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity] + * will apply to the + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. + * This is the recommended value for both + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * and + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]. + * @type \Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity $channel_partner_granularity + * Applies the repricing configuration at the channel partner level. + * Only + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * supports this value. Deprecated: This is no longer supported. Use + * [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity] + * instead. + * @type \Google\Type\Date $effective_invoice_month + * Required. The YearMonth when these adjustments activate. The Day field + * needs to be "0" since we only accept YearMonth repricing boundaries. + * @type \Google\Cloud\Channel\V1\RepricingAdjustment $adjustment + * Required. Information about the adjustment. + * @type int $rebilling_basis + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for this bill. Specifies the relative cost based on repricing costs you + * will apply. + * @type array<\Google\Cloud\Channel\V1\ConditionalOverride>|\Google\Protobuf\Internal\RepeatedField $conditional_overrides + * The conditional overrides to apply for this configuration. If you list + * multiple overrides, only the first valid override is used. If you don't + * list any overrides, the API uses the normal adjustment and rebilling basis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Applies the repricing configuration at the entitlement level. + * Note: If a + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * using + * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity] + * becomes effective, then no existing or future + * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity] + * will apply to the + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. + * This is the recommended value for both + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * and + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * @return \Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity|null + */ + public function getEntitlementGranularity() + { + return $this->readOneof(4); + } + + public function hasEntitlementGranularity() + { + return $this->hasOneof(4); + } + + /** + * Applies the repricing configuration at the entitlement level. + * Note: If a + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * using + * [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity] + * becomes effective, then no existing or future + * [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity] + * will apply to the + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. + * This is the recommended value for both + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * and + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * @param \Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity $var + * @return $this + */ + public function setEntitlementGranularity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Applies the repricing configuration at the channel partner level. + * Only + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * supports this value. Deprecated: This is no longer supported. Use + * [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity] + * instead. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true]; + * @return \Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity|null + * @deprecated + */ + public function getChannelPartnerGranularity() + { + @trigger_error('channel_partner_granularity is deprecated.', E_USER_DEPRECATED); + return $this->readOneof(5); + } + + public function hasChannelPartnerGranularity() + { + @trigger_error('channel_partner_granularity is deprecated.', E_USER_DEPRECATED); + return $this->hasOneof(5); + } + + /** + * Applies the repricing configuration at the channel partner level. + * Only + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * supports this value. Deprecated: This is no longer supported. Use + * [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity] + * instead. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true]; + * @param \Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity $var + * @return $this + * @deprecated + */ + public function setChannelPartnerGranularity($var) + { + @trigger_error('channel_partner_granularity is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. The YearMonth when these adjustments activate. The Day field + * needs to be "0" since we only accept YearMonth repricing boundaries. + * + * Generated from protobuf field .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Date|null + */ + public function getEffectiveInvoiceMonth() + { + return $this->effective_invoice_month; + } + + public function hasEffectiveInvoiceMonth() + { + return isset($this->effective_invoice_month); + } + + public function clearEffectiveInvoiceMonth() + { + unset($this->effective_invoice_month); + } + + /** + * Required. The YearMonth when these adjustments activate. The Day field + * needs to be "0" since we only accept YearMonth repricing boundaries. + * + * Generated from protobuf field .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setEffectiveInvoiceMonth($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->effective_invoice_month = $var; + + return $this; + } + + /** + * Required. Information about the adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\RepricingAdjustment|null + */ + public function getAdjustment() + { + return $this->adjustment; + } + + public function hasAdjustment() + { + return isset($this->adjustment); + } + + public function clearAdjustment() + { + unset($this->adjustment); + } + + /** + * Required. Information about the adjustment. + * + * Generated from protobuf field .google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\RepricingAdjustment $var + * @return $this + */ + public function setAdjustment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\RepricingAdjustment::class); + $this->adjustment = $var; + + return $this; + } + + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for this bill. Specifies the relative cost based on repricing costs you + * will apply. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getRebillingBasis() + { + return $this->rebilling_basis; + } + + /** + * Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + * use for this bill. Specifies the relative cost based on repricing costs you + * will apply. + * + * Generated from protobuf field .google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setRebillingBasis($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\RebillingBasis::class); + $this->rebilling_basis = $var; + + return $this; + } + + /** + * The conditional overrides to apply for this configuration. If you list + * multiple overrides, only the first valid override is used. If you don't + * list any overrides, the API uses the normal adjustment and rebilling basis. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConditionalOverrides() + { + return $this->conditional_overrides; + } + + /** + * The conditional overrides to apply for this configuration. If you list + * multiple overrides, only the first valid override is used. If you don't + * list any overrides, the API uses the normal adjustment and rebilling basis. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6; + * @param array<\Google\Cloud\Channel\V1\ConditionalOverride>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConditionalOverrides($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\ConditionalOverride::class); + $this->conditional_overrides = $arr; + + return $this; + } + + /** + * @return string + */ + public function getGranularity() + { + return $this->whichOneof("granularity"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/ChannelPartnerGranularity.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/ChannelPartnerGranularity.php new file mode 100644 index 000000000000..ff858e98f8b8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/ChannelPartnerGranularity.php @@ -0,0 +1,42 @@ +google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity + */ +class ChannelPartnerGranularity extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChannelPartnerGranularity::class, \Google\Cloud\Channel\V1\RepricingConfig_ChannelPartnerGranularity::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/EntitlementGranularity.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/EntitlementGranularity.php new file mode 100644 index 000000000000..92b015a25d1d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RepricingConfig/EntitlementGranularity.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.RepricingConfig.EntitlementGranularity + */ +class EntitlementGranularity extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + */ + protected $entitlement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entitlement + * Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getEntitlement() + { + return $this->entitlement; + } + + /** + * Resource name of the entitlement. + * Format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntitlement($var) + { + GPBUtil::checkString($var, True); + $this->entitlement = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EntitlementGranularity::class, \Google\Cloud\Channel\V1\RepricingConfig_EntitlementGranularity::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ResourceType.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ResourceType.php new file mode 100644 index 000000000000..c99bb7ebaf9c --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/ResourceType.php @@ -0,0 +1,101 @@ +google.cloud.channel.v1.ResourceType + */ +class ResourceType +{ + /** + * Not used. + * + * Generated from protobuf enum RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Seat. + * + * Generated from protobuf enum SEAT = 1; + */ + const SEAT = 1; + /** + * Monthly active user. + * + * Generated from protobuf enum MAU = 2; + */ + const MAU = 2; + /** + * GB (used for storage SKUs). + * + * Generated from protobuf enum GB = 3; + */ + const GB = 3; + /** + * Active licensed users(for Voice SKUs). + * + * Generated from protobuf enum LICENSED_USER = 4; + */ + const LICENSED_USER = 4; + /** + * Voice usage. + * + * Generated from protobuf enum MINUTES = 5; + */ + const MINUTES = 5; + /** + * For IaaS SKUs like Google Cloud, monetization is based on usage accrued on + * your billing account irrespective of the type of monetizable resource. This + * enum represents an aggregated resource/container for all usage SKUs on a + * billing account. Currently, only applicable to Google Cloud. + * + * Generated from protobuf enum IAAS_USAGE = 6; + */ + const IAAS_USAGE = 6; + /** + * For Google Cloud subscriptions like Anthos or SAP. + * + * Generated from protobuf enum SUBSCRIPTION = 7; + */ + const SUBSCRIPTION = 7; + + private static $valueToName = [ + self::RESOURCE_TYPE_UNSPECIFIED => 'RESOURCE_TYPE_UNSPECIFIED', + self::SEAT => 'SEAT', + self::MAU => 'MAU', + self::GB => 'GB', + self::LICENSED_USER => 'LICENSED_USER', + self::MINUTES => 'MINUTES', + self::IAAS_USAGE => 'IAAS_USAGE', + self::SUBSCRIPTION => 'SUBSCRIPTION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Channel/v1/proto/src/Google/Cloud/Channel/V1/Row.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Row.php new file mode 100644 index 000000000000..cb52b8c5617d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Row.php @@ -0,0 +1,106 @@ +google.cloud.channel.v1.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * The list of values in the row. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ReportValue values = 1; + */ + private $values; + /** + * The key for the partition this row belongs to. This field is empty + * if the report is not partitioned. + * + * Generated from protobuf field string partition_key = 2; + */ + protected $partition_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Channel\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $values + * The list of values in the row. + * @type string $partition_key + * The key for the partition this row belongs to. This field is empty + * if the report is not partitioned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * The list of values in the row. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ReportValue values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The list of values in the row. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.ReportValue values = 1; + * @param array<\Google\Cloud\Channel\V1\ReportValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\ReportValue::class); + $this->values = $arr; + + return $this; + } + + /** + * The key for the partition this row belongs to. This field is empty + * if the report is not partitioned. + * + * Generated from protobuf field string partition_key = 2; + * @return string + */ + public function getPartitionKey() + { + return $this->partition_key; + } + + /** + * The key for the partition this row belongs to. This field is empty + * if the report is not partitioned. + * + * Generated from protobuf field string partition_key = 2; + * @param string $var + * @return $this + */ + public function setPartitionKey($var) + { + GPBUtil::checkString($var, True); + $this->partition_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobRequest.php new file mode 100644 index 000000000000..a451d37eced4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobRequest.php @@ -0,0 +1,237 @@ +google.cloud.channel.v1.RunReportJobRequest + */ +class RunReportJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The range of usage or invoice dates to include in the result. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $date_range = null; + /** + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. + * Filters support logical operators (AND, OR, NOT) and conditional operators + * (=, !=, <, >, <=, and >=) using `column_id` as keys. + * For example: + * `(customer:"accounts/C123abc/customers/S456def" OR + * customer:"accounts/C123abc/customers/S789ghi") AND + * invoice_start_date.year >= 2022` + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/reports/{report_id} + * @type \Google\Cloud\Channel\V1\DateRange $date_range + * Optional. The range of usage or invoice dates to include in the result. + * @type string $filter + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. + * Filters support logical operators (AND, OR, NOT) and conditional operators + * (=, !=, <, >, <=, and >=) using `column_id` as keys. + * For example: + * `(customer:"accounts/C123abc/customers/S456def" OR + * customer:"accounts/C123abc/customers/S789ghi") AND + * invoice_start_date.year >= 2022` + * @type string $language_code + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/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's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, + * `613bf59q`). + * Name uses the format: + * accounts/{account_id}/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; + } + + /** + * Optional. The range of usage or invoice dates to include in the result. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Channel\V1\DateRange|null + */ + public function getDateRange() + { + return $this->date_range; + } + + public function hasDateRange() + { + return isset($this->date_range); + } + + public function clearDateRange() + { + unset($this->date_range); + } + + /** + * Optional. The range of usage or invoice dates to include in the result. + * + * Generated from protobuf field .google.cloud.channel.v1.DateRange date_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Channel\V1\DateRange $var + * @return $this + */ + public function setDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\DateRange::class); + $this->date_range = $var; + + return $this; + } + + /** + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. + * Filters support logical operators (AND, OR, NOT) and conditional operators + * (=, !=, <, >, <=, and >=) using `column_id` as keys. + * For example: + * `(customer:"accounts/C123abc/customers/S456def" OR + * customer:"accounts/C123abc/customers/S789ghi") AND + * invoice_start_date.year >= 2022` + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. + * Filters support logical operators (AND, OR, NOT) and conditional operators + * (=, !=, <, >, <=, and >=) using `column_id` as keys. + * For example: + * `(customer:"accounts/C123abc/customers/S456def" OR + * customer:"accounts/C123abc/customers/S789ghi") AND + * invoice_start_date.year >= 2022` + * + * 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 BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The BCP-47 language code, such as "en-US". If specified, the + * response is localized to the corresponding language code if the + * original data sources support it. + * Default is "en-US". + * + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobResponse.php new file mode 100644 index 000000000000..f1ec1a139add --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/RunReportJobResponse.php @@ -0,0 +1,139 @@ +google.cloud.channel.v1.RunReportJobResponse + */ +class RunReportJobResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Pass `report_job.name` to + * [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] + * to retrieve the report's results. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportJob report_job = 1; + */ + protected $report_job = null; + /** + * The metadata for the report's results (display name, columns, row count, + * and date range). If you view this before the operation finishes, + * you may see incomplete data. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 2; + */ + protected $report_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\ReportJob $report_job + * Pass `report_job.name` to + * [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] + * to retrieve the report's results. + * @type \Google\Cloud\Channel\V1\ReportResultsMetadata $report_metadata + * The metadata for the report's results (display name, columns, row count, + * and date range). If you view this before the operation finishes, + * you may see incomplete data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce(); + parent::__construct($data); + } + + /** + * Pass `report_job.name` to + * [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] + * to retrieve the report's results. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportJob report_job = 1; + * @return \Google\Cloud\Channel\V1\ReportJob|null + */ + public function getReportJob() + { + return $this->report_job; + } + + public function hasReportJob() + { + return isset($this->report_job); + } + + public function clearReportJob() + { + unset($this->report_job); + } + + /** + * Pass `report_job.name` to + * [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] + * to retrieve the report's results. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportJob report_job = 1; + * @param \Google\Cloud\Channel\V1\ReportJob $var + * @return $this + */ + public function setReportJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ReportJob::class); + $this->report_job = $var; + + return $this; + } + + /** + * The metadata for the report's results (display name, columns, row count, + * and date range). If you view this before the operation finishes, + * you may see incomplete data. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 2; + * @return \Google\Cloud\Channel\V1\ReportResultsMetadata|null + */ + public function getReportMetadata() + { + return $this->report_metadata; + } + + public function hasReportMetadata() + { + return isset($this->report_metadata); + } + + public function clearReportMetadata() + { + unset($this->report_metadata); + } + + /** + * The metadata for the report's results (display name, columns, row count, + * and date range). If you view this before the operation finishes, + * you may see incomplete data. + * + * Generated from protobuf field .google.cloud.channel.v1.ReportResultsMetadata report_metadata = 2; + * @param \Google\Cloud\Channel\V1\ReportResultsMetadata $var + * @return $this + */ + public function setReportMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ReportResultsMetadata::class); + $this->report_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Sku.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Sku.php new file mode 100644 index 000000000000..3ae247f17f69 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Sku.php @@ -0,0 +1,162 @@ +google.cloud.channel.v1.Sku + */ +class Sku extends \Google\Protobuf\Internal\Message +{ + /** + * Resource Name of the SKU. + * Format: products/{product_id}/skus/{sku_id} + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Marketing information for the SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + */ + protected $marketing_info = null; + /** + * Product the SKU is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Product product = 3; + */ + protected $product = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource Name of the SKU. + * Format: products/{product_id}/skus/{sku_id} + * @type \Google\Cloud\Channel\V1\MarketingInfo $marketing_info + * Marketing information for the SKU. + * @type \Google\Cloud\Channel\V1\Product $product + * Product the SKU is associated with. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Products::initOnce(); + parent::__construct($data); + } + + /** + * Resource Name of the SKU. + * Format: products/{product_id}/skus/{sku_id} + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource Name of the SKU. + * Format: products/{product_id}/skus/{sku_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; + } + + /** + * Marketing information for the SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @return \Google\Cloud\Channel\V1\MarketingInfo|null + */ + public function getMarketingInfo() + { + return $this->marketing_info; + } + + public function hasMarketingInfo() + { + return isset($this->marketing_info); + } + + public function clearMarketingInfo() + { + unset($this->marketing_info); + } + + /** + * Marketing information for the SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2; + * @param \Google\Cloud\Channel\V1\MarketingInfo $var + * @return $this + */ + public function setMarketingInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\MarketingInfo::class); + $this->marketing_info = $var; + + return $this; + } + + /** + * Product the SKU is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Product product = 3; + * @return \Google\Cloud\Channel\V1\Product|null + */ + public function getProduct() + { + return $this->product; + } + + public function hasProduct() + { + return isset($this->product); + } + + public function clearProduct() + { + unset($this->product); + } + + /** + * Product the SKU is associated with. + * + * Generated from protobuf field .google.cloud.channel.v1.Product product = 3; + * @param \Google\Cloud\Channel\V1\Product $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Product::class); + $this->product = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroup.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroup.php new file mode 100644 index 000000000000..e5f1ae738189 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroup.php @@ -0,0 +1,113 @@ +google.cloud.channel.v1.SkuGroup + */ +class SkuGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Unique human readable identifier for the SKU group. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * @type string $display_name + * Unique human readable identifier for the SKU group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * 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; + } + + /** + * Unique human readable identifier for the SKU group. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Unique human readable identifier for the SKU group. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroupCondition.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroupCondition.php new file mode 100644 index 000000000000..1bf2635f43c8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuGroupCondition.php @@ -0,0 +1,84 @@ +google.cloud.channel.v1.SkuGroupCondition + */ +class SkuGroupCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies a SKU group (https://cloud.google.com/skus/sku-groups). + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * Generated from protobuf field string sku_group = 1; + */ + protected $sku_group = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sku_group + * Specifies a SKU group (https://cloud.google.com/skus/sku-groups). + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Repricing::initOnce(); + parent::__construct($data); + } + + /** + * Specifies a SKU group (https://cloud.google.com/skus/sku-groups). + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * Generated from protobuf field string sku_group = 1; + * @return string + */ + public function getSkuGroup() + { + return $this->sku_group; + } + + /** + * Specifies a SKU group (https://cloud.google.com/skus/sku-groups). + * Resource name of SKU group. Format: + * accounts/{account}/skuGroups/{sku_group}. + * Example: + * "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + * + * Generated from protobuf field string sku_group = 1; + * @param string $var + * @return $this + */ + public function setSkuGroup($var) + { + GPBUtil::checkString($var, True); + $this->sku_group = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuPurchaseGroup.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuPurchaseGroup.php new file mode 100644 index 000000000000..2801c420a6db --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SkuPurchaseGroup.php @@ -0,0 +1,106 @@ +google.cloud.channel.v1.SkuPurchaseGroup + */ +class SkuPurchaseGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Resource names of the SKUs included in this group. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 1; + */ + private $skus; + /** + * List of billing accounts that are eligible to purhcase these SKUs. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; + */ + private $billing_account_purchase_infos; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $skus + * Resource names of the SKUs included in this group. + * Format: products/{product_id}/skus/{sku_id}. + * @type array<\Google\Cloud\Channel\V1\BillingAccountPurchaseInfo>|\Google\Protobuf\Internal\RepeatedField $billing_account_purchase_infos + * List of billing accounts that are eligible to purhcase these SKUs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Resource names of the SKUs included in this group. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkus() + { + return $this->skus; + } + + /** + * Resource names of the SKUs included in this group. + * Format: products/{product_id}/skus/{sku_id}. + * + * Generated from protobuf field repeated string skus = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->skus = $arr; + + return $this; + } + + /** + * List of billing accounts that are eligible to purhcase these SKUs. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBillingAccountPurchaseInfos() + { + return $this->billing_account_purchase_infos; + } + + /** + * List of billing accounts that are eligible to purhcase these SKUs. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; + * @param array<\Google\Cloud\Channel\V1\BillingAccountPurchaseInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBillingAccountPurchaseInfos($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\BillingAccountPurchaseInfo::class); + $this->billing_account_purchase_infos = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/StartPaidServiceRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/StartPaidServiceRequest.php new file mode 100644 index 000000000000..82eac90f8f87 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/StartPaidServiceRequest.php @@ -0,0 +1,146 @@ +google.cloud.channel.v1.StartPaidServiceRequest + */ +class StartPaidServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entitlement to start a paid service for. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 $name + * Required. The name of the entitlement to start a paid service for. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entitlement to start a paid service for. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to start a paid service for. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/SubscriberEvent.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SubscriberEvent.php new file mode 100644 index 000000000000..392eba08f806 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SubscriberEvent.php @@ -0,0 +1,109 @@ +google.cloud.channel.v1.SubscriberEvent + */ +class SubscriberEvent extends \Google\Protobuf\Internal\Message +{ + protected $event; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\CustomerEvent $customer_event + * Customer event sent as part of Pub/Sub event to partners. + * @type \Google\Cloud\Channel\V1\EntitlementEvent $entitlement_event + * Entitlement event sent as part of Pub/Sub event to partners. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\SubscriberEvent::initOnce(); + parent::__construct($data); + } + + /** + * Customer event sent as part of Pub/Sub event to partners. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerEvent customer_event = 1; + * @return \Google\Cloud\Channel\V1\CustomerEvent|null + */ + public function getCustomerEvent() + { + return $this->readOneof(1); + } + + public function hasCustomerEvent() + { + return $this->hasOneof(1); + } + + /** + * Customer event sent as part of Pub/Sub event to partners. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerEvent customer_event = 1; + * @param \Google\Cloud\Channel\V1\CustomerEvent $var + * @return $this + */ + public function setCustomerEvent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CustomerEvent::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Entitlement event sent as part of Pub/Sub event to partners. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent entitlement_event = 2; + * @return \Google\Cloud\Channel\V1\EntitlementEvent|null + */ + public function getEntitlementEvent() + { + return $this->readOneof(2); + } + + public function hasEntitlementEvent() + { + return $this->hasOneof(2); + } + + /** + * Entitlement event sent as part of Pub/Sub event to partners. + * + * Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent entitlement_event = 2; + * @param \Google\Cloud\Channel\V1\EntitlementEvent $var + * @return $this + */ + public function setEntitlementEvent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\EntitlementEvent::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEvent() + { + return $this->whichOneof("event"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SuspendEntitlementRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SuspendEntitlementRequest.php new file mode 100644 index 000000000000..ba1d384acd84 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/SuspendEntitlementRequest.php @@ -0,0 +1,146 @@ +google.cloud.channel.v1.SuspendEntitlementRequest + */ +class SuspendEntitlementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entitlement to suspend. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 $name + * Required. The resource name of the entitlement to suspend. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entitlement to suspend. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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 entitlement to suspend. + * Name uses the format: + * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + * + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility.php new file mode 100644 index 000000000000..18eddc51f72e --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility.php @@ -0,0 +1,135 @@ +google.cloud.channel.v1.TransferEligibility + */ +class TransferEligibility extends \Google\Protobuf\Internal\Message +{ + /** + * Whether reseller is eligible to transfer the SKU. + * + * Generated from protobuf field bool is_eligible = 1; + */ + protected $is_eligible = false; + /** + * Localized description if reseller is not eligible to transfer the SKU. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Specified the reason for ineligibility. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility.Reason ineligibility_reason = 3; + */ + protected $ineligibility_reason = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $is_eligible + * Whether reseller is eligible to transfer the SKU. + * @type string $description + * Localized description if reseller is not eligible to transfer the SKU. + * @type int $ineligibility_reason + * Specified the reason for ineligibility. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Whether reseller is eligible to transfer the SKU. + * + * Generated from protobuf field bool is_eligible = 1; + * @return bool + */ + public function getIsEligible() + { + return $this->is_eligible; + } + + /** + * Whether reseller is eligible to transfer the SKU. + * + * Generated from protobuf field bool is_eligible = 1; + * @param bool $var + * @return $this + */ + public function setIsEligible($var) + { + GPBUtil::checkBool($var); + $this->is_eligible = $var; + + return $this; + } + + /** + * Localized description if reseller is not eligible to transfer the SKU. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Localized description if reseller is not eligible to transfer the SKU. + * + * 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; + } + + /** + * Specified the reason for ineligibility. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility.Reason ineligibility_reason = 3; + * @return int + */ + public function getIneligibilityReason() + { + return $this->ineligibility_reason; + } + + /** + * Specified the reason for ineligibility. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility.Reason ineligibility_reason = 3; + * @param int $var + * @return $this + */ + public function setIneligibilityReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\TransferEligibility\Reason::class); + $this->ineligibility_reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility/Reason.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility/Reason.php new file mode 100644 index 000000000000..fbf7b3b8ba02 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEligibility/Reason.php @@ -0,0 +1,79 @@ +google.cloud.channel.v1.TransferEligibility.Reason + */ +class Reason +{ + /** + * Not used. + * + * Generated from protobuf enum REASON_UNSPECIFIED = 0; + */ + const REASON_UNSPECIFIED = 0; + /** + * Reseller needs to accept TOS before transferring the SKU. + * + * Generated from protobuf enum PENDING_TOS_ACCEPTANCE = 1; + */ + const PENDING_TOS_ACCEPTANCE = 1; + /** + * Reseller not eligible to sell the SKU. + * + * Generated from protobuf enum SKU_NOT_ELIGIBLE = 2; + */ + const SKU_NOT_ELIGIBLE = 2; + /** + * SKU subscription is suspended + * + * Generated from protobuf enum SKU_SUSPENDED = 3; + */ + const SKU_SUSPENDED = 3; + /** + * The reseller is not authorized to transact on this Product. See + * https://support.google.com/channelservices/answer/9759265 + * + * Generated from protobuf enum CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4; + */ + const CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4; + + private static $valueToName = [ + self::REASON_UNSPECIFIED => 'REASON_UNSPECIFIED', + self::PENDING_TOS_ACCEPTANCE => 'PENDING_TOS_ACCEPTANCE', + self::SKU_NOT_ELIGIBLE => 'SKU_NOT_ELIGIBLE', + self::SKU_SUSPENDED => 'SKU_SUSPENDED', + self::CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU => 'CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Reason::class, \Google\Cloud\Channel\V1\TransferEligibility_Reason::class); + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsRequest.php new file mode 100644 index 000000000000..2efec2e1cb22 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsRequest.php @@ -0,0 +1,226 @@ +google.cloud.channel.v1.TransferEntitlementsRequest + */ +class TransferEntitlementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The new entitlements to create or transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entitlements; + /** + * The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4; + */ + protected $auth_token = ''; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $entitlements + * Required. The new entitlements to create or transfer. + * @type string $auth_token + * The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_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; + } + + /** + * Required. The new entitlements to create or transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlements() + { + return $this->entitlements; + } + + /** + * Required. The new entitlements to create or transfer. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Entitlement::class); + $this->entitlements = $arr; + + return $this; + } + + /** + * The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4; + * @return string + */ + public function getAuthToken() + { + return $this->auth_token; + } + + /** + * The super admin of the resold customer generates this token to + * authorize a reseller to access their Cloud Identity and purchase + * entitlements on their behalf. You can omit this token after authorization. + * See https://support.google.com/a/answer/7643790 for more details. + * + * Generated from protobuf field string auth_token = 4; + * @param string $var + * @return $this + */ + public function setAuthToken($var) + { + GPBUtil::checkString($var, True); + $this->auth_token = $var; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * + * Generated from protobuf field string request_id = 6 [(.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsResponse.php new file mode 100644 index 000000000000..a645c4d15a78 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsResponse.php @@ -0,0 +1,69 @@ +google.cloud.channel.v1.TransferEntitlementsResponse + */ +class TransferEntitlementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The transferred entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + */ + private $entitlements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $entitlements + * The transferred entitlements. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The transferred entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlements() + { + return $this->entitlements; + } + + /** + * The transferred entitlements. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 1; + * @param array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Entitlement::class); + $this->entitlements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsToGoogleRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsToGoogleRequest.php new file mode 100644 index 000000000000..38c52a6d370d --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferEntitlementsToGoogleRequest.php @@ -0,0 +1,180 @@ +google.cloud.channel.v1.TransferEntitlementsToGoogleRequest + */ +class TransferEntitlementsToGoogleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The entitlements to transfer to Google. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entitlements; + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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 resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * @type array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $entitlements + * Required. The entitlements to transfer to Google. + * @type string $request_id + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * with the exception that zero UUID is not supported + * (`00000000-0000-0000-0000-000000000000`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_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; + } + + /** + * Required. The entitlements to transfer to Google. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlements() + { + return $this->entitlements; + } + + /** + * Required. The entitlements to transfer to Google. + * + * Generated from protobuf field repeated .google.cloud.channel.v1.Entitlement entitlements = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Channel\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Entitlement::class); + $this->entitlements = $arr; + + return $this; + } + + /** + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. + * For example, 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 + * it received the original operation with the same request ID. If it did, it + * will ignore the second request. + * The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableOffer.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableOffer.php new file mode 100644 index 000000000000..1beb88ab7500 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableOffer.php @@ -0,0 +1,78 @@ +google.cloud.channel.v1.TransferableOffer + */ +class TransferableOffer extends \Google\Protobuf\Internal\Message +{ + /** + * Offer with parameter constraints updated to allow the Transfer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + */ + protected $offer = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\Offer $offer + * Offer with parameter constraints updated to allow the Transfer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Offer with parameter constraints updated to allow the Transfer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + * @return \Google\Cloud\Channel\V1\Offer|null + */ + public function getOffer() + { + return $this->offer; + } + + public function hasOffer() + { + return isset($this->offer); + } + + public function clearOffer() + { + unset($this->offer); + } + + /** + * Offer with parameter constraints updated to allow the Transfer. + * + * Generated from protobuf field .google.cloud.channel.v1.Offer offer = 1; + * @param \Google\Cloud\Channel\V1\Offer $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Offer::class); + $this->offer = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableSku.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableSku.php new file mode 100644 index 000000000000..95112a99b38b --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TransferableSku.php @@ -0,0 +1,171 @@ +google.cloud.channel.v1.TransferableSku + */ +class TransferableSku extends \Google\Protobuf\Internal\Message +{ + /** + * Describes the transfer eligibility of a SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility transfer_eligibility = 9; + */ + protected $transfer_eligibility = null; + /** + * The SKU pertaining to the provisioning resource as specified in the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 11; + */ + protected $sku = null; + /** + * Optional. The customer to transfer has an entitlement with the populated + * legacy SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $legacy_sku = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\TransferEligibility $transfer_eligibility + * Describes the transfer eligibility of a SKU. + * @type \Google\Cloud\Channel\V1\Sku $sku + * The SKU pertaining to the provisioning resource as specified in the Offer. + * @type \Google\Cloud\Channel\V1\Sku $legacy_sku + * Optional. The customer to transfer has an entitlement with the populated + * legacy SKU. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Describes the transfer eligibility of a SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility transfer_eligibility = 9; + * @return \Google\Cloud\Channel\V1\TransferEligibility|null + */ + public function getTransferEligibility() + { + return $this->transfer_eligibility; + } + + public function hasTransferEligibility() + { + return isset($this->transfer_eligibility); + } + + public function clearTransferEligibility() + { + unset($this->transfer_eligibility); + } + + /** + * Describes the transfer eligibility of a SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.TransferEligibility transfer_eligibility = 9; + * @param \Google\Cloud\Channel\V1\TransferEligibility $var + * @return $this + */ + public function setTransferEligibility($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\TransferEligibility::class); + $this->transfer_eligibility = $var; + + return $this; + } + + /** + * The SKU pertaining to the provisioning resource as specified in the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 11; + * @return \Google\Cloud\Channel\V1\Sku|null + */ + public function getSku() + { + return $this->sku; + } + + public function hasSku() + { + return isset($this->sku); + } + + public function clearSku() + { + unset($this->sku); + } + + /** + * The SKU pertaining to the provisioning resource as specified in the Offer. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku sku = 11; + * @param \Google\Cloud\Channel\V1\Sku $var + * @return $this + */ + public function setSku($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class); + $this->sku = $var; + + return $this; + } + + /** + * Optional. The customer to transfer has an entitlement with the populated + * legacy SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Channel\V1\Sku|null + */ + public function getLegacySku() + { + return $this->legacy_sku; + } + + public function hasLegacySku() + { + return isset($this->legacy_sku); + } + + public function clearLegacySku() + { + unset($this->legacy_sku); + } + + /** + * Optional. The customer to transfer has an entitlement with the populated + * legacy SKU. + * + * Generated from protobuf field .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Channel\V1\Sku $var + * @return $this + */ + public function setLegacySku($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class); + $this->legacy_sku = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TrialSettings.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TrialSettings.php new file mode 100644 index 000000000000..5f1fca083b18 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/TrialSettings.php @@ -0,0 +1,127 @@ +google.cloud.channel.v1.TrialSettings + */ +class TrialSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Determines if the entitlement is in a trial or not: + * * `true` - The entitlement is in trial. + * * `false` - The entitlement is not in trial. + * + * Generated from protobuf field bool trial = 1; + */ + protected $trial = false; + /** + * Date when the trial ends. The value is in milliseconds + * using the UNIX Epoch format. See an example [Epoch + * converter](https://www.epochconverter.com). + * + * 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 bool $trial + * Determines if the entitlement is in a trial or not: + * * `true` - The entitlement is in trial. + * * `false` - The entitlement is not in trial. + * @type \Google\Protobuf\Timestamp $end_time + * Date when the trial ends. The value is in milliseconds + * using the UNIX Epoch format. See an example [Epoch + * converter](https://www.epochconverter.com). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce(); + parent::__construct($data); + } + + /** + * Determines if the entitlement is in a trial or not: + * * `true` - The entitlement is in trial. + * * `false` - The entitlement is not in trial. + * + * Generated from protobuf field bool trial = 1; + * @return bool + */ + public function getTrial() + { + return $this->trial; + } + + /** + * Determines if the entitlement is in a trial or not: + * * `true` - The entitlement is in trial. + * * `false` - The entitlement is not in trial. + * + * Generated from protobuf field bool trial = 1; + * @param bool $var + * @return $this + */ + public function setTrial($var) + { + GPBUtil::checkBool($var); + $this->trial = $var; + + return $this; + } + + /** + * Date when the trial ends. The value is in milliseconds + * using the UNIX Epoch format. See an example [Epoch + * converter](https://www.epochconverter.com). + * + * 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); + } + + /** + * Date when the trial ends. The value is in milliseconds + * using the UNIX Epoch format. See an example [Epoch + * converter](https://www.epochconverter.com). + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberRequest.php new file mode 100644 index 000000000000..f3a29099fb12 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberRequest.php @@ -0,0 +1,105 @@ +google.cloud.channel.v1.UnregisterSubscriberRequest + */ +class UnregisterSubscriberRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = ''; + /** + * Required. Service account to unregister from subscriber access to the + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. Resource name of the account. + * @type string $service_account + * Required. Service account to unregister from subscriber access to the + * topic. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. Resource name of the account. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Required. Service account to unregister from subscriber access to the + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Required. Service account to unregister from subscriber access to the + * topic. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberResponse.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberResponse.php new file mode 100644 index 000000000000..205cd1b6a9a5 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UnregisterSubscriberResponse.php @@ -0,0 +1,67 @@ +google.cloud.channel.v1.UnregisterSubscriberResponse + */ +class UnregisterSubscriberResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the topic the service account subscriber access was removed from. + * + * Generated from protobuf field string topic = 1; + */ + protected $topic = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $topic + * Name of the topic the service account subscriber access was removed from. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Name of the topic the service account subscriber access was removed from. + * + * Generated from protobuf field string topic = 1; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Name of the topic the service account subscriber access was removed from. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerLinkRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerLinkRequest.php new file mode 100644 index 000000000000..937fbbd95ee9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerLinkRequest.php @@ -0,0 +1,176 @@ +google.cloud.channel.v1.UpdateChannelPartnerLinkRequest + */ +class UpdateChannelPartnerLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the channel partner link to cancel. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_partner_link = null; + /** + * Required. The update mask that applies to the resource. + * The only allowable value for an update mask is + * channel_partner_link.link_state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the channel partner link to cancel. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * @type \Google\Cloud\Channel\V1\ChannelPartnerLink $channel_partner_link + * Required. The channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The update mask that applies to the resource. + * The only allowable value for an update mask is + * channel_partner_link.link_state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the channel partner link to cancel. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * 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 channel partner link to cancel. + * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} + * where {id} is the Cloud Identity ID of the partner. + * + * 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 channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\ChannelPartnerLink|null + */ + public function getChannelPartnerLink() + { + return $this->channel_partner_link; + } + + public function hasChannelPartnerLink() + { + return isset($this->channel_partner_link); + } + + public function clearChannelPartnerLink() + { + unset($this->channel_partner_link); + } + + /** + * Required. The channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\ChannelPartnerLink $var + * @return $this + */ + public function setChannelPartnerLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ChannelPartnerLink::class); + $this->channel_partner_link = $var; + + return $this; + } + + /** + * Required. The update mask that applies to the resource. + * The only allowable value for an update mask is + * channel_partner_link.link_state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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 that applies to the resource. + * The only allowable value for an update mask is + * channel_partner_link.link_state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerRepricingConfigRequest.php new file mode 100644 index 000000000000..1c40dbd6b6b0 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateChannelPartnerRepricingConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.channel.v1.UpdateChannelPartnerRepricingConfigRequest + */ +class UpdateChannelPartnerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_partner_repricing_config = null; + + /** + * @param \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig Required. The ChannelPartnerRepricingConfig object to update. + * + * @return \Google\Cloud\Channel\V1\UpdateChannelPartnerRepricingConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig): self + { + return (new self()) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channel_partner_repricing_config + * Required. The ChannelPartnerRepricingConfig object to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig|null + */ + public function getChannelPartnerRepricingConfig() + { + return $this->channel_partner_repricing_config; + } + + public function hasChannelPartnerRepricingConfig() + { + return isset($this->channel_partner_repricing_config); + } + + public function clearChannelPartnerRepricingConfig() + { + unset($this->channel_partner_repricing_config); + } + + /** + * Required. The ChannelPartnerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.ChannelPartnerRepricingConfig channel_partner_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $var + * @return $this + */ + public function setChannelPartnerRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig::class); + $this->channel_partner_repricing_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRepricingConfigRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRepricingConfigRequest.php new file mode 100644 index 000000000000..c169a27618de --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRepricingConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest + */ +class UpdateCustomerRepricingConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $customer_repricing_config = null; + + /** + * @param \Google\Cloud\Channel\V1\CustomerRepricingConfig $customerRepricingConfig Required. The CustomerRepricingConfig object to update. + * + * @return \Google\Cloud\Channel\V1\UpdateCustomerRepricingConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Channel\V1\CustomerRepricingConfig $customerRepricingConfig): self + { + return (new self()) + ->setCustomerRepricingConfig($customerRepricingConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Channel\V1\CustomerRepricingConfig $customer_repricing_config + * Required. The CustomerRepricingConfig object to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\CustomerRepricingConfig|null + */ + public function getCustomerRepricingConfig() + { + return $this->customer_repricing_config; + } + + public function hasCustomerRepricingConfig() + { + return isset($this->customer_repricing_config); + } + + public function clearCustomerRepricingConfig() + { + unset($this->customer_repricing_config); + } + + /** + * Required. The CustomerRepricingConfig object to update. + * + * Generated from protobuf field .google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\CustomerRepricingConfig $var + * @return $this + */ + public function setCustomerRepricingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CustomerRepricingConfig::class); + $this->customer_repricing_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRequest.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRequest.php new file mode 100644 index 000000000000..32d8bd00b166 --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/UpdateCustomerRequest.php @@ -0,0 +1,126 @@ +google.cloud.channel.v1.UpdateCustomerRequest + */ +class UpdateCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. New contents of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $customer = null; + /** + * The update mask that applies to the resource. + * Optional. + * + * 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 \Google\Cloud\Channel\V1\Customer $customer + * Required. New contents of the customer. + * @type \Google\Protobuf\FieldMask $update_mask + * The update mask that applies to the resource. + * Optional. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. New contents of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Channel\V1\Customer|null + */ + public function getCustomer() + { + return $this->customer; + } + + public function hasCustomer() + { + return isset($this->customer); + } + + public function clearCustomer() + { + unset($this->customer); + } + + /** + * Required. New contents of the customer. + * + * Generated from protobuf field .google.cloud.channel.v1.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Channel\V1\Customer $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Customer::class); + $this->customer = $var; + + return $this; + } + + /** + * The update mask that applies to the resource. + * Optional. + * + * 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); + } + + /** + * The update mask that applies to the resource. + * Optional. + * + * 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/Channel/v1/proto/src/Google/Cloud/Channel/V1/Value.php b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Value.php new file mode 100644 index 000000000000..4499f4542c0f --- /dev/null +++ b/owl-bot-staging/Channel/v1/proto/src/Google/Cloud/Channel/V1/Value.php @@ -0,0 +1,207 @@ +google.cloud.channel.v1.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Represents an int64 value. + * @type string $string_value + * Represents a string value. + * @type float $double_value + * Represents a double value. + * @type \Google\Protobuf\Any $proto_value + * Represents an 'Any' proto value. + * @type bool $bool_value + * Represents a boolean value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Channel\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Represents an int64 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); + } + + /** + * Represents an int64 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; + } + + /** + * Represents a string value. + * + * Generated from protobuf field string string_value = 2; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(2); + } + + public function hasStringValue() + { + return $this->hasOneof(2); + } + + /** + * Represents a string value. + * + * 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; + } + + /** + * Represents a double value. + * + * Generated from protobuf field double double_value = 3; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(3); + } + + public function hasDoubleValue() + { + return $this->hasOneof(3); + } + + /** + * Represents a double value. + * + * Generated from protobuf field double double_value = 3; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Represents an 'Any' proto value. + * + * Generated from protobuf field .google.protobuf.Any proto_value = 4; + * @return \Google\Protobuf\Any|null + */ + public function getProtoValue() + { + return $this->readOneof(4); + } + + public function hasProtoValue() + { + return $this->hasOneof(4); + } + + /** + * Represents an 'Any' proto value. + * + * Generated from protobuf field .google.protobuf.Any proto_value = 4; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setProtoValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Represents a boolean value. + * + * Generated from protobuf field bool bool_value = 5; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(5); + } + + public function hasBoolValue() + { + return $this->hasOneof(5); + } + + /** + * Represents a boolean value. + * + * Generated from protobuf field bool bool_value = 5; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/fetch_report_results.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/fetch_report_results.php new file mode 100644 index 000000000000..fd32a46d2988 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/fetch_report_results.php @@ -0,0 +1,84 @@ +setReportJob($formattedReportJob); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelReportsServiceClient->fetchReportResults($request); + + /** @var Row $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 +{ + $formattedReportJob = CloudChannelReportsServiceClient::reportJobName('[ACCOUNT]', '[REPORT_JOB]'); + + fetch_report_results_sample($formattedReportJob); +} +// [END cloudchannel_v1_generated_CloudChannelReportsService_FetchReportResults_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/list_reports.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/list_reports.php new file mode 100644 index 000000000000..7b5d597eb617 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/list_reports.php @@ -0,0 +1,81 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelReportsServiceClient->listReports($request); + + /** @var Report $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_reports_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelReportsService_ListReports_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/run_report_job.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/run_report_job.php new file mode 100644 index 000000000000..65395e26e1c6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelReportsServiceClient/run_report_job.php @@ -0,0 +1,115 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelReportsServiceClient->runReportJob($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var RunReportJobResponse $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 = CloudChannelReportsServiceClient::reportName('[ACCOUNT]', '[REPORT]'); + + run_report_job_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelReportsService_RunReportJob_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/activate_entitlement.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/activate_entitlement.php new file mode 100644 index 000000000000..d55e8d0f23b6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/activate_entitlement.php @@ -0,0 +1,110 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->activateEntitlement($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + + activate_entitlement_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/cancel_entitlement.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/cancel_entitlement.php new file mode 100644 index 000000000000..ba6d7d3bb3ce --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/cancel_entitlement.php @@ -0,0 +1,106 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->cancelEntitlement($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 +{ + $name = '[NAME]'; + + cancel_entitlement_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_offer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_offer.php new file mode 100644 index 000000000000..98ae2fecf937 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_offer.php @@ -0,0 +1,109 @@ +setName($name) + ->setOffer($formattedOffer); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->changeOffer($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + $formattedOffer = CloudChannelServiceClient::offerName('[ACCOUNT]', '[OFFER]'); + + change_offer_sample($name, $formattedOffer); +} +// [END cloudchannel_v1_generated_CloudChannelService_ChangeOffer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_parameters.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_parameters.php new file mode 100644 index 000000000000..eed8bec0ccfb --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_parameters.php @@ -0,0 +1,109 @@ +setName($name) + ->setParameters($parameters); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->changeParameters($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + + change_parameters_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_ChangeParameters_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_renewal_settings.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_renewal_settings.php new file mode 100644 index 000000000000..ce8343849478 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/change_renewal_settings.php @@ -0,0 +1,109 @@ +setName($name) + ->setRenewalSettings($renewalSettings); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->changeRenewalSettings($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + + change_renewal_settings_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/check_cloud_identity_accounts_exist.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/check_cloud_identity_accounts_exist.php new file mode 100644 index 000000000000..69e83adbbe2c --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/check_cloud_identity_accounts_exist.php @@ -0,0 +1,94 @@ +setParent($parent) + ->setDomain($domain); + + // Call the API and handle any network failures. + try { + /** @var CheckCloudIdentityAccountsExistResponse $response */ + $response = $cloudChannelServiceClient->checkCloudIdentityAccountsExist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $domain = '[DOMAIN]'; + + check_cloud_identity_accounts_exist_sample($parent, $domain); +} +// [END cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_link.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_link.php new file mode 100644 index 000000000000..9896bb7807d4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_link.php @@ -0,0 +1,110 @@ +setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId) + ->setLinkState($channelPartnerLinkLinkState); + $request = (new CreateChannelPartnerLinkRequest()) + ->setParent($parent) + ->setChannelPartnerLink($channelPartnerLink); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerLink $response */ + $response = $cloudChannelServiceClient->createChannelPartnerLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $channelPartnerLinkResellerCloudIdentityId = '[RESELLER_CLOUD_IDENTITY_ID]'; + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + + create_channel_partner_link_sample( + $parent, + $channelPartnerLinkResellerCloudIdentityId, + $channelPartnerLinkLinkState + ); +} +// [END cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_repricing_config.php new file mode 100644 index 000000000000..8598f46809d0 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_channel_partner_repricing_config.php @@ -0,0 +1,140 @@ +setEffectiveInvoiceMonth($channelPartnerRepricingConfigRepricingConfigEffectiveInvoiceMonth) + ->setAdjustment($channelPartnerRepricingConfigRepricingConfigAdjustment) + ->setRebillingBasis($channelPartnerRepricingConfigRepricingConfigRebillingBasis); + $channelPartnerRepricingConfig = (new ChannelPartnerRepricingConfig()) + ->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new CreateChannelPartnerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerRepricingConfig $response */ + $response = $cloudChannelServiceClient->createChannelPartnerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudChannelServiceClient::channelPartnerLinkName( + '[ACCOUNT]', + '[CHANNEL_PARTNER_LINK]' + ); + $channelPartnerRepricingConfigRepricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + + create_channel_partner_repricing_config_sample( + $formattedParent, + $channelPartnerRepricingConfigRepricingConfigRebillingBasis + ); +} +// [END cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer.php new file mode 100644 index 000000000000..29d8babedb3b --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer.php @@ -0,0 +1,101 @@ +setOrgDisplayName($customerOrgDisplayName) + ->setOrgPostalAddress($customerOrgPostalAddress) + ->setDomain($customerDomain); + $request = (new CreateCustomerRequest()) + ->setParent($parent) + ->setCustomer($customer); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudChannelServiceClient->createCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $customerOrgDisplayName = '[ORG_DISPLAY_NAME]'; + $customerDomain = '[DOMAIN]'; + + create_customer_sample($parent, $customerOrgDisplayName, $customerDomain); +} +// [END cloudchannel_v1_generated_CloudChannelService_CreateCustomer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer_repricing_config.php new file mode 100644 index 000000000000..9a3a8f611868 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_customer_repricing_config.php @@ -0,0 +1,136 @@ +setEffectiveInvoiceMonth($customerRepricingConfigRepricingConfigEffectiveInvoiceMonth) + ->setAdjustment($customerRepricingConfigRepricingConfigAdjustment) + ->setRebillingBasis($customerRepricingConfigRepricingConfigRebillingBasis); + $customerRepricingConfig = (new CustomerRepricingConfig()) + ->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new CreateCustomerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setCustomerRepricingConfig($customerRepricingConfig); + + // Call the API and handle any network failures. + try { + /** @var CustomerRepricingConfig $response */ + $response = $cloudChannelServiceClient->createCustomerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + $customerRepricingConfigRepricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + + create_customer_repricing_config_sample( + $formattedParent, + $customerRepricingConfigRepricingConfigRebillingBasis + ); +} +// [END cloudchannel_v1_generated_CloudChannelService_CreateCustomerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_entitlement.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_entitlement.php new file mode 100644 index 000000000000..0b29523c3c43 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/create_entitlement.php @@ -0,0 +1,132 @@ +setOffer($formattedEntitlementOffer); + $request = (new CreateEntitlementRequest()) + ->setParent($formattedParent) + ->setEntitlement($entitlement); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->createEntitlement($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + $formattedEntitlementOffer = CloudChannelServiceClient::offerName('[ACCOUNT]', '[OFFER]'); + + create_entitlement_sample($formattedParent, $formattedEntitlementOffer); +} +// [END cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_channel_partner_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_channel_partner_repricing_config.php new file mode 100644 index 000000000000..fa6badfa7939 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_channel_partner_repricing_config.php @@ -0,0 +1,90 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $cloudChannelServiceClient->deleteChannelPartnerRepricingConfig($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 = CloudChannelServiceClient::channelPartnerRepricingConfigName( + '[ACCOUNT]', + '[CHANNEL_PARTNER]', + '[CHANNEL_PARTNER_REPRICING_CONFIG]' + ); + + delete_channel_partner_repricing_config_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_DeleteChannelPartnerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer.php new file mode 100644 index 000000000000..129bf42c89f4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $cloudChannelServiceClient->deleteCustomer($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 = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + delete_customer_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer_repricing_config.php new file mode 100644 index 000000000000..9ce0043019e9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/delete_customer_repricing_config.php @@ -0,0 +1,91 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $cloudChannelServiceClient->deleteCustomerRepricingConfig($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 = CloudChannelServiceClient::customerRepricingConfigName( + '[ACCOUNT]', + '[CUSTOMER]', + '[CUSTOMER_REPRICING_CONFIG]' + ); + + delete_customer_repricing_config_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_DeleteCustomerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_link.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_link.php new file mode 100644 index 000000000000..c245623b1c3e --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_link.php @@ -0,0 +1,86 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerLink $response */ + $response = $cloudChannelServiceClient->getChannelPartnerLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + + get_channel_partner_link_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_repricing_config.php new file mode 100644 index 000000000000..31e0aa5be4fb --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_channel_partner_repricing_config.php @@ -0,0 +1,93 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerRepricingConfig $response */ + $response = $cloudChannelServiceClient->getChannelPartnerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudChannelServiceClient::channelPartnerRepricingConfigName( + '[ACCOUNT]', + '[CHANNEL_PARTNER]', + '[CHANNEL_PARTNER_REPRICING_CONFIG]' + ); + + get_channel_partner_repricing_config_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer.php new file mode 100644 index 000000000000..33b536adb2ff --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudChannelServiceClient->getCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + get_customer_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_GetCustomer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer_repricing_config.php new file mode 100644 index 000000000000..5132cfdf5931 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_customer_repricing_config.php @@ -0,0 +1,93 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomerRepricingConfig $response */ + $response = $cloudChannelServiceClient->getCustomerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudChannelServiceClient::customerRepricingConfigName( + '[ACCOUNT]', + '[CUSTOMER]', + '[CUSTOMER_REPRICING_CONFIG]' + ); + + get_customer_repricing_config_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_GetCustomerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_entitlement.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_entitlement.php new file mode 100644 index 000000000000..2e9d2000681f --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/get_entitlement.php @@ -0,0 +1,87 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Entitlement $response */ + $response = $cloudChannelServiceClient->getEntitlement($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudChannelServiceClient::entitlementName( + '[ACCOUNT]', + '[CUSTOMER]', + '[ENTITLEMENT]' + ); + + get_entitlement_sample($formattedName); +} +// [END cloudchannel_v1_generated_CloudChannelService_GetEntitlement_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/import_customer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/import_customer.php new file mode 100644 index 000000000000..14ebeea23126 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/import_customer.php @@ -0,0 +1,99 @@ +setDomain($domain) + ->setParent($parent) + ->setOverwriteIfExists($overwriteIfExists); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudChannelServiceClient->importCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $domain = '[DOMAIN]'; + $parent = '[PARENT]'; + $overwriteIfExists = false; + + import_customer_sample($domain, $parent, $overwriteIfExists); +} +// [END cloudchannel_v1_generated_CloudChannelService_ImportCustomer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_links.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_links.php new file mode 100644 index 000000000000..ef40991c4e93 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_links.php @@ -0,0 +1,87 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listChannelPartnerLinks($request); + + /** @var ChannelPartnerLink $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_channel_partner_links_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_repricing_configs.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_repricing_configs.php new file mode 100644 index 000000000000..864a9c0a1f78 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_channel_partner_repricing_configs.php @@ -0,0 +1,107 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listChannelPartnerRepricingConfigs($request); + + /** @var ChannelPartnerRepricingConfig $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 = CloudChannelServiceClient::channelPartnerLinkName( + '[ACCOUNT]', + '[CHANNEL_PARTNER_LINK]' + ); + + list_channel_partner_repricing_configs_sample($formattedParent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerRepricingConfigs_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customer_repricing_configs.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customer_repricing_configs.php new file mode 100644 index 000000000000..d721e85fa819 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customer_repricing_configs.php @@ -0,0 +1,103 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listCustomerRepricingConfigs($request); + + /** @var CustomerRepricingConfig $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 = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + list_customer_repricing_configs_sample($formattedParent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListCustomerRepricingConfigs_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customers.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customers.php new file mode 100644 index 000000000000..08e895a4212f --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_customers.php @@ -0,0 +1,86 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listCustomers($request); + + /** @var Customer $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_customers_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListCustomers_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlement_changes.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlement_changes.php new file mode 100644 index 000000000000..6603209abc6d --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlement_changes.php @@ -0,0 +1,100 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listEntitlementChanges($request); + + /** @var EntitlementChange $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 = CloudChannelServiceClient::entitlementName( + '[ACCOUNT]', + '[CUSTOMER]', + '[ENTITLEMENT]' + ); + + list_entitlement_changes_sample($formattedParent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListEntitlementChanges_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlements.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlements.php new file mode 100644 index 000000000000..d3281ab2dc3a --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_entitlements.php @@ -0,0 +1,88 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listEntitlements($request); + + /** @var Entitlement $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 = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + list_entitlements_sample($formattedParent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListEntitlements_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_offers.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_offers.php new file mode 100644 index 000000000000..d297f72143b4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_offers.php @@ -0,0 +1,80 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listOffers($request); + + /** @var Offer $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_offers_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListOffers_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_products.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_products.php new file mode 100644 index 000000000000..336c79f84e46 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_products.php @@ -0,0 +1,80 @@ +setAccount($account); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listProducts($request); + + /** @var Product $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 +{ + $account = '[ACCOUNT]'; + + list_products_sample($account); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListProducts_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_offers.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_offers.php new file mode 100644 index 000000000000..14610a5b21f8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_offers.php @@ -0,0 +1,88 @@ +setCustomer($formattedCustomer); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listPurchasableOffers($request); + + /** @var PurchasableOffer $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 +{ + $formattedCustomer = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + list_purchasable_offers_sample($formattedCustomer); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_skus.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_skus.php new file mode 100644 index 000000000000..ec1339a2dd45 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_purchasable_skus.php @@ -0,0 +1,85 @@ +setCustomer($formattedCustomer); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listPurchasableSkus($request); + + /** @var PurchasableSku $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 +{ + $formattedCustomer = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + list_purchasable_skus_sample($formattedCustomer); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_group_billable_skus.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_group_billable_skus.php new file mode 100644 index 000000000000..f499ecfb3a93 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_group_billable_skus.php @@ -0,0 +1,95 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listSkuGroupBillableSkus($request); + + /** @var BillableSku $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 = CloudChannelServiceClient::skuGroupName('[ACCOUNT]', '[SKU_GROUP]'); + + list_sku_group_billable_skus_sample($formattedParent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListSkuGroupBillableSkus_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_groups.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_groups.php new file mode 100644 index 000000000000..d795bea63109 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_sku_groups.php @@ -0,0 +1,94 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listSkuGroups($request); + + /** @var SkuGroup $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_sku_groups_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListSkuGroups_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_skus.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_skus.php new file mode 100644 index 000000000000..319d2ef27495 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_skus.php @@ -0,0 +1,86 @@ +setParent($formattedParent) + ->setAccount($account); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listSkus($request); + + /** @var Sku $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 = CloudChannelServiceClient::productName('[PRODUCT]'); + $account = '[ACCOUNT]'; + + list_skus_sample($formattedParent, $account); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListSkus_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_subscribers.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_subscribers.php new file mode 100644 index 000000000000..a96039f37fb7 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_subscribers.php @@ -0,0 +1,90 @@ +setAccount($account); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listSubscribers($request); + + /** @var string $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $account = '[ACCOUNT]'; + + list_subscribers_sample($account); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_offers.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_offers.php new file mode 100644 index 000000000000..100ced0e6522 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_offers.php @@ -0,0 +1,99 @@ +setParent($parent) + ->setSku($sku); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listTransferableOffers($request); + + /** @var TransferableOffer $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]'; + $sku = '[SKU]'; + + list_transferable_offers_sample($parent, $sku); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_skus.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_skus.php new file mode 100644 index 000000000000..4023b85ffca7 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/list_transferable_skus.php @@ -0,0 +1,94 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudChannelServiceClient->listTransferableSkus($request); + + /** @var TransferableSku $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_transferable_skus_sample($parent); +} +// [END cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/lookup_offer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/lookup_offer.php new file mode 100644 index 000000000000..101f99bb2112 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/lookup_offer.php @@ -0,0 +1,86 @@ +setEntitlement($formattedEntitlement); + + // Call the API and handle any network failures. + try { + /** @var Offer $response */ + $response = $cloudChannelServiceClient->lookupOffer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedEntitlement = CloudChannelServiceClient::entitlementName( + '[ACCOUNT]', + '[CUSTOMER]', + '[ENTITLEMENT]' + ); + + lookup_offer_sample($formattedEntitlement); +} +// [END cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/provision_cloud_identity.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/provision_cloud_identity.php new file mode 100644 index 000000000000..e50b44bc56f4 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/provision_cloud_identity.php @@ -0,0 +1,107 @@ +setCustomer($formattedCustomer); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->provisionCloudIdentity($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Customer $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 +{ + $formattedCustomer = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + + provision_cloud_identity_sample($formattedCustomer); +} +// [END cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/query_eligible_billing_accounts.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/query_eligible_billing_accounts.php new file mode 100644 index 000000000000..6f2fe3d26aaa --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/query_eligible_billing_accounts.php @@ -0,0 +1,90 @@ +setCustomer($formattedCustomer) + ->setSkus($skus); + + // Call the API and handle any network failures. + try { + /** @var QueryEligibleBillingAccountsResponse $response */ + $response = $cloudChannelServiceClient->queryEligibleBillingAccounts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedCustomer = CloudChannelServiceClient::customerName('[ACCOUNT]', '[CUSTOMER]'); + $skusElement = '[SKUS]'; + + query_eligible_billing_accounts_sample($formattedCustomer, $skusElement); +} +// [END cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/register_subscriber.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/register_subscriber.php new file mode 100644 index 000000000000..836f1cf8fc10 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/register_subscriber.php @@ -0,0 +1,91 @@ +setAccount($account) + ->setServiceAccount($serviceAccount); + + // Call the API and handle any network failures. + try { + /** @var RegisterSubscriberResponse $response */ + $response = $cloudChannelServiceClient->registerSubscriber($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $account = '[ACCOUNT]'; + $serviceAccount = '[SERVICE_ACCOUNT]'; + + register_subscriber_sample($account, $serviceAccount); +} +// [END cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/start_paid_service.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/start_paid_service.php new file mode 100644 index 000000000000..e4aaa49fdfc9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/start_paid_service.php @@ -0,0 +1,107 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->startPaidService($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + + start_paid_service_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_StartPaidService_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/suspend_entitlement.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/suspend_entitlement.php new file mode 100644 index 000000000000..fdae53067879 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/suspend_entitlement.php @@ -0,0 +1,104 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->suspendEntitlement($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Entitlement $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 +{ + $name = '[NAME]'; + + suspend_entitlement_sample($name); +} +// [END cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements.php new file mode 100644 index 000000000000..fef854e18b59 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements.php @@ -0,0 +1,124 @@ +setOffer($formattedEntitlementsOffer); + $entitlements = [$entitlement,]; + $request = (new TransferEntitlementsRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->transferEntitlements($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var TransferEntitlementsResponse $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]'; + $formattedEntitlementsOffer = CloudChannelServiceClient::offerName('[ACCOUNT]', '[OFFER]'); + + transfer_entitlements_sample($parent, $formattedEntitlementsOffer); +} +// [END cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements_to_google.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements_to_google.php new file mode 100644 index 000000000000..3eda14cb4469 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/transfer_entitlements_to_google.php @@ -0,0 +1,120 @@ +setOffer($formattedEntitlementsOffer); + $entitlements = [$entitlement,]; + $request = (new TransferEntitlementsToGoogleRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudChannelServiceClient->transferEntitlementsToGoogle($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 +{ + $parent = '[PARENT]'; + $formattedEntitlementsOffer = CloudChannelServiceClient::offerName('[ACCOUNT]', '[OFFER]'); + + transfer_entitlements_to_google_sample($parent, $formattedEntitlementsOffer); +} +// [END cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/unregister_subscriber.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/unregister_subscriber.php new file mode 100644 index 000000000000..aa63bdedd1a9 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/unregister_subscriber.php @@ -0,0 +1,94 @@ +setAccount($account) + ->setServiceAccount($serviceAccount); + + // Call the API and handle any network failures. + try { + /** @var UnregisterSubscriberResponse $response */ + $response = $cloudChannelServiceClient->unregisterSubscriber($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $account = '[ACCOUNT]'; + $serviceAccount = '[SERVICE_ACCOUNT]'; + + unregister_subscriber_sample($account, $serviceAccount); +} +// [END cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_link.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_link.php new file mode 100644 index 000000000000..4741de2e6063 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_link.php @@ -0,0 +1,112 @@ +setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId) + ->setLinkState($channelPartnerLinkLinkState); + $updateMask = new FieldMask(); + $request = (new UpdateChannelPartnerLinkRequest()) + ->setName($name) + ->setChannelPartnerLink($channelPartnerLink) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerLink $response */ + $response = $cloudChannelServiceClient->updateChannelPartnerLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $channelPartnerLinkResellerCloudIdentityId = '[RESELLER_CLOUD_IDENTITY_ID]'; + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + + update_channel_partner_link_sample( + $name, + $channelPartnerLinkResellerCloudIdentityId, + $channelPartnerLinkLinkState + ); +} +// [END cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_repricing_config.php new file mode 100644 index 000000000000..1c733a1933c3 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_channel_partner_repricing_config.php @@ -0,0 +1,118 @@ +setEffectiveInvoiceMonth($channelPartnerRepricingConfigRepricingConfigEffectiveInvoiceMonth) + ->setAdjustment($channelPartnerRepricingConfigRepricingConfigAdjustment) + ->setRebillingBasis($channelPartnerRepricingConfigRepricingConfigRebillingBasis); + $channelPartnerRepricingConfig = (new ChannelPartnerRepricingConfig()) + ->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new UpdateChannelPartnerRepricingConfigRequest()) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + + // Call the API and handle any network failures. + try { + /** @var ChannelPartnerRepricingConfig $response */ + $response = $cloudChannelServiceClient->updateChannelPartnerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $channelPartnerRepricingConfigRepricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + + update_channel_partner_repricing_config_sample( + $channelPartnerRepricingConfigRepricingConfigRebillingBasis + ); +} +// [END cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer.php new file mode 100644 index 000000000000..0ee58b56fa86 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer.php @@ -0,0 +1,91 @@ +setOrgDisplayName($customerOrgDisplayName) + ->setOrgPostalAddress($customerOrgPostalAddress) + ->setDomain($customerDomain); + $request = (new UpdateCustomerRequest()) + ->setCustomer($customer); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudChannelServiceClient->updateCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $customerOrgDisplayName = '[ORG_DISPLAY_NAME]'; + $customerDomain = '[DOMAIN]'; + + update_customer_sample($customerOrgDisplayName, $customerDomain); +} +// [END cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_sync] diff --git a/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer_repricing_config.php b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer_repricing_config.php new file mode 100644 index 000000000000..6cd37fd949f0 --- /dev/null +++ b/owl-bot-staging/Channel/v1/samples/V1/CloudChannelServiceClient/update_customer_repricing_config.php @@ -0,0 +1,116 @@ +setEffectiveInvoiceMonth($customerRepricingConfigRepricingConfigEffectiveInvoiceMonth) + ->setAdjustment($customerRepricingConfigRepricingConfigAdjustment) + ->setRebillingBasis($customerRepricingConfigRepricingConfigRebillingBasis); + $customerRepricingConfig = (new CustomerRepricingConfig()) + ->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new UpdateCustomerRepricingConfigRequest()) + ->setCustomerRepricingConfig($customerRepricingConfig); + + // Call the API and handle any network failures. + try { + /** @var CustomerRepricingConfig $response */ + $response = $cloudChannelServiceClient->updateCustomerRepricingConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $customerRepricingConfigRepricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + + update_customer_repricing_config_sample($customerRepricingConfigRepricingConfigRebillingBasis); +} +// [END cloudchannel_v1_generated_CloudChannelService_UpdateCustomerRepricingConfig_sync] diff --git a/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelReportsServiceClient.php b/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelReportsServiceClient.php new file mode 100644 index 000000000000..2675c1d87dd8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelReportsServiceClient.php @@ -0,0 +1,423 @@ + fetchReportResultsAsync(FetchReportResultsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface runReportJobAsync(RunReportJobRequest $request, array $optionalArgs = []) + */ +final class CloudChannelReportsServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.channel.v1.CloudChannelReportsService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudchannel.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudchannel.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/apps.reports.usage.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cloud_channel_reports_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_channel_reports_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_channel_reports_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_channel_reports_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 report + * resource. + * + * @param string $account + * @param string $report + * + * @return string The formatted report resource. + */ + public static function reportName(string $account, string $report): string + { + return self::getPathTemplate('report')->render([ + 'account' => $account, + 'report' => $report, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a report_job + * resource. + * + * @param string $account + * @param string $reportJob + * + * @return string The formatted report_job resource. + */ + public static function reportJobName(string $account, string $reportJob): string + { + return self::getPathTemplate('reportJob')->render([ + 'account' => $account, + 'report_job' => $reportJob, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - report: accounts/{account}/reports/{report} + * - reportJob: accounts/{account}/reportJobs/{report_job} + * + * 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 'cloudchannel.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); + } + + /** + * Retrieves data generated by + * [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + * + * Deprecated: Please use [Export Channel Services data to + * BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) + * instead. + * + * The async variant is + * {@see CloudChannelReportsServiceClient::fetchReportResultsAsync()} . + * + * @example samples/V1/CloudChannelReportsServiceClient/fetch_report_results.php + * + * @param FetchReportResultsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function fetchReportResults(FetchReportResultsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('FetchReportResults', $request, $callOptions); + } + + /** + * Lists the reports that RunReportJob can run. These reports include an ID, + * a description, and the list of columns that will be in the result. + * + * Deprecated: Please use [Export Channel Services data to + * BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) + * instead. + * + * The async variant is {@see CloudChannelReportsServiceClient::listReportsAsync()} + * . + * + * @example samples/V1/CloudChannelReportsServiceClient/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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function listReports(ListReportsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReports', $request, $callOptions); + } + + /** + * Begins generation of data for a given report. The report + * identifier is a UID (for example, `613bf59q`). + * + * Possible error codes: + * + * * PERMISSION_DENIED: The user doesn't have access to this report. + * * INVALID_ARGUMENT: Required request parameters are missing + * or invalid. + * * NOT_FOUND: The report identifier was not found. + * * INTERNAL: Any non-user error related to a technical issue + * in the backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue + * in the backend. Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata contains an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * To get the results of report generation, call + * [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + * with the + * [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job]. + * + * Deprecated: Please use [Export Channel Services data to + * BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) + * instead. + * + * The async variant is + * {@see CloudChannelReportsServiceClient::runReportJobAsync()} . + * + * @example samples/V1/CloudChannelReportsServiceClient/run_report_job.php + * + * @param RunReportJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function runReportJob(RunReportJobRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RunReportJob', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelServiceClient.php b/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelServiceClient.php new file mode 100644 index 000000000000..2e0e403d3ada --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/Client/CloudChannelServiceClient.php @@ -0,0 +1,2733 @@ + activateEntitlementAsync(ActivateEntitlementRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelEntitlementAsync(CancelEntitlementRequest $request, array $optionalArgs = []) + * @method PromiseInterface changeOfferAsync(ChangeOfferRequest $request, array $optionalArgs = []) + * @method PromiseInterface changeParametersAsync(ChangeParametersRequest $request, array $optionalArgs = []) + * @method PromiseInterface changeRenewalSettingsAsync(ChangeRenewalSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface checkCloudIdentityAccountsExistAsync(CheckCloudIdentityAccountsExistRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChannelPartnerLinkAsync(CreateChannelPartnerLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChannelPartnerRepricingConfigAsync(CreateChannelPartnerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomerAsync(CreateCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomerRepricingConfigAsync(CreateCustomerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntitlementAsync(CreateEntitlementRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteChannelPartnerRepricingConfigAsync(DeleteChannelPartnerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCustomerAsync(DeleteCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCustomerRepricingConfigAsync(DeleteCustomerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChannelPartnerLinkAsync(GetChannelPartnerLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChannelPartnerRepricingConfigAsync(GetChannelPartnerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomerAsync(GetCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomerRepricingConfigAsync(GetCustomerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntitlementAsync(GetEntitlementRequest $request, array $optionalArgs = []) + * @method PromiseInterface importCustomerAsync(ImportCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChannelPartnerLinksAsync(ListChannelPartnerLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChannelPartnerRepricingConfigsAsync(ListChannelPartnerRepricingConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomerRepricingConfigsAsync(ListCustomerRepricingConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomersAsync(ListCustomersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitlementChangesAsync(ListEntitlementChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitlementsAsync(ListEntitlementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOffersAsync(ListOffersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProductsAsync(ListProductsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPurchasableOffersAsync(ListPurchasableOffersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPurchasableSkusAsync(ListPurchasableSkusRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSkuGroupBillableSkusAsync(ListSkuGroupBillableSkusRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSkuGroupsAsync(ListSkuGroupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSkusAsync(ListSkusRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSubscribersAsync(ListSubscribersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTransferableOffersAsync(ListTransferableOffersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTransferableSkusAsync(ListTransferableSkusRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupOfferAsync(LookupOfferRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionCloudIdentityAsync(ProvisionCloudIdentityRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryEligibleBillingAccountsAsync(QueryEligibleBillingAccountsRequest $request, array $optionalArgs = []) + * @method PromiseInterface registerSubscriberAsync(RegisterSubscriberRequest $request, array $optionalArgs = []) + * @method PromiseInterface startPaidServiceAsync(StartPaidServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface suspendEntitlementAsync(SuspendEntitlementRequest $request, array $optionalArgs = []) + * @method PromiseInterface transferEntitlementsAsync(TransferEntitlementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface transferEntitlementsToGoogleAsync(TransferEntitlementsToGoogleRequest $request, array $optionalArgs = []) + * @method PromiseInterface unregisterSubscriberAsync(UnregisterSubscriberRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateChannelPartnerLinkAsync(UpdateChannelPartnerLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateChannelPartnerRepricingConfigAsync(UpdateChannelPartnerRepricingConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomerAsync(UpdateCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomerRepricingConfigAsync(UpdateCustomerRepricingConfigRequest $request, array $optionalArgs = []) + */ +final class CloudChannelServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.channel.v1.CloudChannelService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudchannel.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudchannel.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/apps.order', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cloud_channel_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_channel_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_channel_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_channel_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 + * channel_partner_link resource. + * + * @param string $account + * @param string $channelPartnerLink + * + * @return string The formatted channel_partner_link resource. + */ + public static function channelPartnerLinkName(string $account, string $channelPartnerLink): string + { + return self::getPathTemplate('channelPartnerLink')->render([ + 'account' => $account, + 'channel_partner_link' => $channelPartnerLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * channel_partner_repricing_config resource. + * + * @param string $account + * @param string $channelPartner + * @param string $channelPartnerRepricingConfig + * + * @return string The formatted channel_partner_repricing_config resource. + */ + public static function channelPartnerRepricingConfigName(string $account, string $channelPartner, string $channelPartnerRepricingConfig): string + { + return self::getPathTemplate('channelPartnerRepricingConfig')->render([ + 'account' => $account, + 'channel_partner' => $channelPartner, + 'channel_partner_repricing_config' => $channelPartnerRepricingConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a customer + * resource. + * + * @param string $account + * @param string $customer + * + * @return string The formatted customer resource. + */ + public static function customerName(string $account, string $customer): string + { + return self::getPathTemplate('customer')->render([ + 'account' => $account, + 'customer' => $customer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * customer_repricing_config resource. + * + * @param string $account + * @param string $customer + * @param string $customerRepricingConfig + * + * @return string The formatted customer_repricing_config resource. + */ + public static function customerRepricingConfigName(string $account, string $customer, string $customerRepricingConfig): string + { + return self::getPathTemplate('customerRepricingConfig')->render([ + 'account' => $account, + 'customer' => $customer, + 'customer_repricing_config' => $customerRepricingConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entitlement + * resource. + * + * @param string $account + * @param string $customer + * @param string $entitlement + * + * @return string The formatted entitlement resource. + */ + public static function entitlementName(string $account, string $customer, string $entitlement): string + { + return self::getPathTemplate('entitlement')->render([ + 'account' => $account, + 'customer' => $customer, + 'entitlement' => $entitlement, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a offer + * resource. + * + * @param string $account + * @param string $offer + * + * @return string The formatted offer resource. + */ + public static function offerName(string $account, string $offer): string + { + return self::getPathTemplate('offer')->render([ + 'account' => $account, + 'offer' => $offer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a product + * resource. + * + * @param string $product + * + * @return string The formatted product resource. + */ + public static function productName(string $product): string + { + return self::getPathTemplate('product')->render([ + 'product' => $product, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a sku_group + * resource. + * + * @param string $account + * @param string $skuGroup + * + * @return string The formatted sku_group resource. + */ + public static function skuGroupName(string $account, string $skuGroup): string + { + return self::getPathTemplate('skuGroup')->render([ + 'account' => $account, + 'sku_group' => $skuGroup, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - channelPartnerLink: accounts/{account}/channelPartnerLinks/{channel_partner_link} + * - channelPartnerRepricingConfig: accounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config} + * - customer: accounts/{account}/customers/{customer} + * - customerRepricingConfig: accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config} + * - entitlement: accounts/{account}/customers/{customer}/entitlements/{entitlement} + * - offer: accounts/{account}/offers/{offer} + * - product: products/{product} + * - skuGroup: accounts/{account}/skuGroups/{sku_group} + * + * 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 'cloudchannel.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); + } + + /** + * Activates a previously suspended entitlement. Entitlements suspended for + * pending ToS acceptance can't be activated using this method. + * + * An entitlement activation is a long-running operation and it updates + * the state of the customer entitlement. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement resource not found. + * * SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated + * suspensions and entitlements that have accepted the TOS. + * * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE + * state. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is + * {@see CloudChannelServiceClient::activateEntitlementAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/activate_entitlement.php + * + * @param ActivateEntitlementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 activateEntitlement(ActivateEntitlementRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ActivateEntitlement', $request, $callOptions)->wait(); + } + + /** + * Cancels a previously fulfilled entitlement. + * + * An entitlement cancellation is a long-running operation. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * FAILED_PRECONDITION: There are Google Cloud projects linked to the + * Google Cloud entitlement's Cloud Billing subaccount. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement resource not found. + * * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace + * add-ons, or entitlements for Google Cloud's development platform. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The response will contain + * google.protobuf.Empty on success. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::cancelEntitlementAsync()} + * . + * + * @example samples/V1/CloudChannelServiceClient/cancel_entitlement.php + * + * @param CancelEntitlementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 cancelEntitlement(CancelEntitlementRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CancelEntitlement', $request, $callOptions)->wait(); + } + + /** + * Updates the Offer for an existing customer entitlement. + * + * An entitlement update is a long-running operation and it updates the + * entitlement as a result of fulfillment. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Offer or Entitlement resource not found. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::changeOfferAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/change_offer.php + * + * @param ChangeOfferRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 changeOffer(ChangeOfferRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ChangeOffer', $request, $callOptions)->wait(); + } + + /** + * Change parameters of the entitlement. + * + * An entitlement update is a long-running operation and it updates the + * entitlement as a result of fulfillment. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * For example, the number of seats being changed is greater than the allowed + * number of max seats, or decreasing seats for a commitment based plan. + * * NOT_FOUND: Entitlement resource not found. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::changeParametersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/change_parameters.php + * + * @param ChangeParametersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 changeParameters(ChangeParametersRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ChangeParameters', $request, $callOptions)->wait(); + } + + /** + * Updates the renewal settings for an existing customer entitlement. + * + * An entitlement update is a long-running operation and it updates the + * entitlement as a result of fulfillment. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement resource not found. + * * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a + * commitment plan. Can't enable or disable renewals for non-commitment plans. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is + * {@see CloudChannelServiceClient::changeRenewalSettingsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/change_renewal_settings.php + * + * @param ChangeRenewalSettingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 changeRenewalSettings(ChangeRenewalSettingsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ChangeRenewalSettings', $request, $callOptions)->wait(); + } + + /** + * Confirms the existence of Cloud Identity accounts based on the domain and + * if the Cloud Identity accounts are owned by the reseller. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * INVALID_VALUE: Invalid domain value in the request. + * + * Return value: + * A list of + * [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] + * resources for the domain (may be empty) + * + * Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if + * no + * [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] + * resources match the domain. + * + * The async variant is + * {@see CloudChannelServiceClient::checkCloudIdentityAccountsExistAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/check_cloud_identity_accounts_exist.php + * + * @param CheckCloudIdentityAccountsExistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CheckCloudIdentityAccountsExistResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function checkCloudIdentityAccountsExist(CheckCloudIdentityAccountsExistRequest $request, array $callOptions = []): CheckCloudIdentityAccountsExistResponse + { + return $this->startApiCall('CheckCloudIdentityAccountsExist', $request, $callOptions)->wait(); + } + + /** + * Initiates a channel partner link between a distributor and a reseller, or + * between resellers in an n-tier reseller channel. + * Invited partners need to follow the invite_link_uri provided in the + * response to accept. After accepting the invitation, a link is set up + * between the two parties. + * You must be a distributor to call this method. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already + * exists. + * * NOT_FOUND: No Cloud Identity customer exists for provided domain. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The new [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + * resource. + * + * The async variant is + * {@see CloudChannelServiceClient::createChannelPartnerLinkAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/create_channel_partner_link.php + * + * @param CreateChannelPartnerLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function createChannelPartnerLink(CreateChannelPartnerLinkRequest $request, array $callOptions = []): ChannelPartnerLink + { + return $this->startApiCall('CreateChannelPartnerLink', $request, $callOptions)->wait(); + } + + /** + * Creates a ChannelPartnerRepricingConfig. Call this method to set + * modifications for a specific ChannelPartner's bill. You can only create + * configs if the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is a future month. If needed, you can create a config for the current + * month, with some restrictions. + * + * When creating a config for a future month, make sure there are no existing + * configs for that + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * + * The following restrictions are for creating configs in the current month. + * + * * This functionality is reserved for recovering from an erroneous config, + * and should not be used for regular business cases. + * * The new config will not modify exports used with other configs. + * Changes to the config may be immediate, but may take up to 24 hours. + * * There is a limit of ten configs for any ChannelPartner or + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement], + * for any + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * * The contained + * [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config] + * value must be different from the value used in the current config for a + * ChannelPartner. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * INVALID_ARGUMENT: Missing or invalid required parameters in the + * request. Also displays if the updated config is for the current month or + * past months. + * * NOT_FOUND: The + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the updated + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::createChannelPartnerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/create_channel_partner_repricing_config.php + * + * @param CreateChannelPartnerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function createChannelPartnerRepricingConfig(CreateChannelPartnerRepricingConfigRequest $request, array $callOptions = []): ChannelPartnerRepricingConfig + { + return $this->startApiCall('CreateChannelPartnerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new [Customer][google.cloud.channel.v1.Customer] resource under + * the reseller or distributor account. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The reseller account making the request is different from the + * reseller account in the API request. + * * You are not authorized to create a customer. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: + * * Required request parameters are missing or invalid. + * * Domain field value doesn't match the primary email domain. + * + * Return value: + * The newly created [Customer][google.cloud.channel.v1.Customer] resource. + * + * The async variant is {@see CloudChannelServiceClient::createCustomerAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/create_customer.php + * + * @param CreateCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomer(CreateCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('CreateCustomer', $request, $callOptions)->wait(); + } + + /** + * Creates a CustomerRepricingConfig. Call this method to set modifications + * for a specific customer's bill. You can only create configs if the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is a future month. If needed, you can create a config for the current + * month, with some restrictions. + * + * When creating a config for a future month, make sure there are no existing + * configs for that + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * + * The following restrictions are for creating configs in the current month. + * + * * This functionality is reserved for recovering from an erroneous config, + * and should not be used for regular business cases. + * * The new config will not modify exports used with other configs. + * Changes to the config may be immediate, but may take up to 24 hours. + * * There is a limit of ten configs for any + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement], + * for any + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * * The contained + * [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config] + * value must be different from the value used in the current config for a + * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * INVALID_ARGUMENT: Missing or invalid required parameters in the + * request. Also displays if the updated config is for the current month or + * past months. + * * NOT_FOUND: The + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the updated + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::createCustomerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/create_customer_repricing_config.php + * + * @param CreateCustomerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomerRepricingConfig(CreateCustomerRepricingConfigRequest $request, array $callOptions = []): CustomerRepricingConfig + { + return $this->startApiCall('CreateCustomerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Creates an entitlement for a customer. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller. + * * The reseller is not authorized to transact on this Product. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: + * * Required request parameters are missing or invalid. + * * There is already a customer entitlement for a SKU from the same + * product family. + * * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact + * Google Channel support for further troubleshooting. + * * NOT_FOUND: The customer or offer resource was not found. + * * ALREADY_EXISTS: + * * The SKU was already purchased for the customer. + * * The customer's primary email already exists. Retry + * after changing the customer's primary contact email. + * * CONDITION_NOT_MET or FAILED_PRECONDITION: + * * The domain required for purchasing a SKU has not been verified. + * * A pre-requisite SKU required to purchase an Add-On SKU is missing. + * For example, Google Workspace Business Starter is required to purchase + * Vault or Drive. + * * (Developer accounts only) Reseller and resold domain must meet the + * following naming requirements: + * * Domain names must start with goog-test. + * * Domain names must include the reseller domain. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::createEntitlementAsync()} + * . + * + * @example samples/V1/CloudChannelServiceClient/create_entitlement.php + * + * @param CreateEntitlementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 createEntitlement(CreateEntitlementRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateEntitlement', $request, $callOptions)->wait(); + } + + /** + * Deletes the given + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * permanently. You can only delete configs if their + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is set to a date after the current month. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The account making the request does not own + * this customer. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * FAILED_PRECONDITION: The + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * is active or in the past. + * * NOT_FOUND: No + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * found for the name in the request. + * + * The async variant is + * {@see CloudChannelServiceClient::deleteChannelPartnerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/delete_channel_partner_repricing_config.php + * + * @param DeleteChannelPartnerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteChannelPartnerRepricingConfig(DeleteChannelPartnerRepricingConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteChannelPartnerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The account making the request does not own + * this customer. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * FAILED_PRECONDITION: The customer has existing entitlements. + * * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found + * for the name in the request. + * + * The async variant is {@see CloudChannelServiceClient::deleteCustomerAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/delete_customer.php + * + * @param DeleteCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteCustomer(DeleteCustomerRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteCustomer', $request, $callOptions)->wait(); + } + + /** + * Deletes the given + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * permanently. You can only delete configs if their + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is set to a date after the current month. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The account making the request does not own + * this customer. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * FAILED_PRECONDITION: The + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * is active or in the past. + * * NOT_FOUND: No + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * found for the name in the request. + * + * The async variant is + * {@see CloudChannelServiceClient::deleteCustomerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/delete_customer_repricing_config.php + * + * @param DeleteCustomerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteCustomerRepricingConfig(DeleteCustomerRepricingConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteCustomerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Returns the requested + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. + * You must be a distributor to call this method. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: ChannelPartnerLink resource not found because of an + * invalid channel partner link name. + * + * Return value: + * The [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + * resource. + * + * The async variant is + * {@see CloudChannelServiceClient::getChannelPartnerLinkAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/get_channel_partner_link.php + * + * @param GetChannelPartnerLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function getChannelPartnerLink(GetChannelPartnerLinkRequest $request, array $callOptions = []): ChannelPartnerLink + { + return $this->startApiCall('GetChannelPartnerLink', $request, $callOptions)->wait(); + } + + /** + * Gets information about how a Distributor modifies their bill before sending + * it to a ChannelPartner. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * NOT_FOUND: The + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * was not found. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::getChannelPartnerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/get_channel_partner_repricing_config.php + * + * @param GetChannelPartnerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getChannelPartnerRepricingConfig(GetChannelPartnerRepricingConfigRequest $request, array $callOptions = []): ChannelPartnerRepricingConfig + { + return $this->startApiCall('GetChannelPartnerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Returns the requested [Customer][google.cloud.channel.v1.Customer] + * resource. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The customer resource doesn't exist. Usually the result of an + * invalid name parameter. + * + * Return value: + * The [Customer][google.cloud.channel.v1.Customer] resource. + * + * The async variant is {@see CloudChannelServiceClient::getCustomerAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/get_customer.php + * + * @param GetCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomer(GetCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('GetCustomer', $request, $callOptions)->wait(); + } + + /** + * Gets information about how a Reseller modifies their bill before sending + * it to a Customer. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * NOT_FOUND: The + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * was not found. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::getCustomerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/get_customer_repricing_config.php + * + * @param GetCustomerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomerRepricingConfig(GetCustomerRepricingConfigRequest $request, array $callOptions = []): CustomerRepricingConfig + { + return $this->startApiCall('GetCustomerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] + * resource. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The customer entitlement was not found. + * + * Return value: + * The requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. + * + * The async variant is {@see CloudChannelServiceClient::getEntitlementAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/get_entitlement.php + * + * @param GetEntitlementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Entitlement + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntitlement(GetEntitlementRequest $request, array $callOptions = []): Entitlement + { + return $this->startApiCall('GetEntitlement', $request, $callOptions)->wait(); + } + + /** + * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud + * Identity associated with the provided Cloud Identity ID or domain before a + * TransferEntitlements call. If a linked Customer already exists and + * overwrite_if_exists is true, it will update that Customer's data. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The reseller account making the request is different from the + * reseller account in the API request. + * * You are not authorized to import the customer. See + * https://support.google.com/channelservices/answer/9759265 + * * NOT_FOUND: Cloud Identity doesn't exist or was deleted. + * * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is + * expired or invalid. + * * ALREADY_EXISTS: A customer already exists and has conflicting critical + * fields. Requires an overwrite. + * + * Return value: + * The [Customer][google.cloud.channel.v1.Customer]. + * + * The async variant is {@see CloudChannelServiceClient::importCustomerAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/import_customer.php + * + * @param ImportCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + */ + public function importCustomer(ImportCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('ImportCustomer', $request, $callOptions)->wait(); + } + + /** + * List [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s + * belonging to a distributor. You must be a distributor to call this method. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * The list of the distributor account's + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources. + * + * The async variant is + * {@see CloudChannelServiceClient::listChannelPartnerLinksAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_channel_partner_links.php + * + * @param ListChannelPartnerLinksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listChannelPartnerLinks(ListChannelPartnerLinksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListChannelPartnerLinks', $request, $callOptions); + } + + /** + * Lists information about how a Reseller modifies their bill before sending + * it to a ChannelPartner. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * NOT_FOUND: The + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * resources. The data for each resource is displayed in the ascending order + * of: + * + * * Channel Partner ID + * * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * * [ChannelPartnerRepricingConfig.update_time][google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time] + * + * If unsuccessful, returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::listChannelPartnerRepricingConfigsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_channel_partner_repricing_configs.php + * + * @param ListChannelPartnerRepricingConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listChannelPartnerRepricingConfigs(ListChannelPartnerRepricingConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListChannelPartnerRepricingConfigs', $request, $callOptions); + } + + /** + * Lists information about how a Reseller modifies their bill before sending + * it to a Customer. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * NOT_FOUND: The + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * resources. The data for each resource is displayed in the ascending order + * of: + * + * * Customer ID + * * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement] + * * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * * [CustomerRepricingConfig.update_time][google.cloud.channel.v1.CustomerRepricingConfig.update_time] + * + * If unsuccessful, returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::listCustomerRepricingConfigsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_customer_repricing_configs.php + * + * @param ListCustomerRepricingConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listCustomerRepricingConfigs(ListCustomerRepricingConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomerRepricingConfigs', $request, $callOptions); + } + + /** + * List [Customer][google.cloud.channel.v1.Customer]s. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * List of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if + * there are no customers. + * + * The async variant is {@see CloudChannelServiceClient::listCustomersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_customers.php + * + * @param ListCustomersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listCustomers(ListCustomersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomers', $request, $callOptions); + } + + /** + * List entitlement history. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request and the + * provided reseller account are different. + * * INVALID_ARGUMENT: Missing or invalid required fields in the request. + * * NOT_FOUND: The parent resource doesn't exist. Usually the result of an + * invalid name parameter. + * * INTERNAL: Any non-user error related to a technical issue in the backend. + * In this case, contact CloudChannel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * In this case, contact Cloud Channel support. + * + * Return value: + * List of [EntitlementChange][google.cloud.channel.v1.EntitlementChange]s. + * + * The async variant is + * {@see CloudChannelServiceClient::listEntitlementChangesAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_entitlement_changes.php + * + * @param ListEntitlementChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listEntitlementChanges(ListEntitlementChangesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntitlementChanges', $request, $callOptions); + } + + /** + * Lists [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a + * customer. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * A list of the customer's + * [Entitlement][google.cloud.channel.v1.Entitlement]s. + * + * The async variant is {@see CloudChannelServiceClient::listEntitlementsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_entitlements.php + * + * @param ListEntitlementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listEntitlements(ListEntitlementsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntitlements', $request, $callOptions); + } + + /** + * Lists the Offers the reseller can sell. + * + * Possible error codes: + * + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * The async variant is {@see CloudChannelServiceClient::listOffersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_offers.php + * + * @param ListOffersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listOffers(ListOffersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOffers', $request, $callOptions); + } + + /** + * Lists the Products the reseller is authorized to sell. + * + * Possible error codes: + * + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * The async variant is {@see CloudChannelServiceClient::listProductsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_products.php + * + * @param ListProductsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listProducts(ListProductsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListProducts', $request, $callOptions); + } + + /** + * Lists the following: + * + * * Offers that you can purchase for a customer. + * * Offers that you can change for an entitlement. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller + * * The reseller is not authorized to transact on this Product. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * The async variant is + * {@see CloudChannelServiceClient::listPurchasableOffersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_purchasable_offers.php + * + * @param ListPurchasableOffersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listPurchasableOffers(ListPurchasableOffersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPurchasableOffers', $request, $callOptions); + } + + /** + * Lists the following: + * + * * SKUs that you can purchase for a customer + * * SKUs that you can upgrade or downgrade for an entitlement. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * The async variant is + * {@see CloudChannelServiceClient::listPurchasableSkusAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_purchasable_skus.php + * + * @param ListPurchasableSkusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listPurchasableSkus(ListPurchasableSkusRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPurchasableSkus', $request, $callOptions); + } + + /** + * Lists the Billable SKUs in a given SKU group. + * + * Possible error codes: + * PERMISSION_DENIED: If the account making the request and the account + * being queried for are different, or the account doesn't exist. + * INVALID_ARGUMENT: Missing or invalid required parameters in the + * request. + * INTERNAL: Any non-user error related to technical issue in the + * backend. In this case, contact cloud channel support. + * + * Return Value: + * If successful, the [BillableSku][google.cloud.channel.v1.BillableSku] + * resources. The data for each resource is displayed in the ascending order + * of: + * + * * [BillableSku.service_display_name][google.cloud.channel.v1.BillableSku.service_display_name] + * * [BillableSku.sku_display_name][google.cloud.channel.v1.BillableSku.sku_display_name] + * + * If unsuccessful, returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::listSkuGroupBillableSkusAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_sku_group_billable_skus.php + * + * @param ListSkuGroupBillableSkusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listSkuGroupBillableSkus(ListSkuGroupBillableSkusRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSkuGroupBillableSkus', $request, $callOptions); + } + + /** + * Lists the Rebilling supported SKU groups the account is authorized to + * sell. + * Reference: https://cloud.google.com/skus/sku-groups + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different, or the account doesn't exist. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the [SkuGroup][google.cloud.channel.v1.SkuGroup] resources. + * The data for each resource is displayed in the alphabetical order of SKU + * group display name. + * The data for each resource is displayed in the ascending order of + * [SkuGroup.display_name][google.cloud.channel.v1.SkuGroup.display_name] + * + * If unsuccessful, returns an error. + * + * The async variant is {@see CloudChannelServiceClient::listSkuGroupsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_sku_groups.php + * + * @param ListSkuGroupsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listSkuGroups(ListSkuGroupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSkuGroups', $request, $callOptions); + } + + /** + * Lists the SKUs for a product the reseller is authorized to sell. + * + * Possible error codes: + * + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * The async variant is {@see CloudChannelServiceClient::listSkusAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_skus.php + * + * @param ListSkusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listSkus(ListSkusRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSkus', $request, $callOptions); + } + + /** + * Lists service accounts with subscriber privileges on the Cloud Pub/Sub + * topic created for this Channel Services account. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request and the + * provided reseller account are different, or the impersonated user + * is not a super admin. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The topic resource doesn't exist. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * A list of service email addresses. + * + * The async variant is {@see CloudChannelServiceClient::listSubscribersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_subscribers.php + * + * @param ListSubscribersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listSubscribers(ListSubscribersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSubscribers', $request, $callOptions); + } + + /** + * List [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a + * customer based on Cloud Identity ID or Customer Name in the request. + * + * Use this method when a reseller gets the entitlement information of an + * unowned customer. The reseller should provide the customer's + * Cloud Identity ID or Customer Name. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller and has no auth token. + * * The customer provided incorrect reseller information when generating + * auth token. + * * The reseller account making the request is different + * from the reseller account in the query. + * * The reseller is not authorized to transact on this Product. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for + * the given customer and SKU. + * + * The async variant is + * {@see CloudChannelServiceClient::listTransferableOffersAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_transferable_offers.php + * + * @param ListTransferableOffersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listTransferableOffers(ListTransferableOffersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTransferableOffers', $request, $callOptions); + } + + /** + * List [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a + * customer based on the Cloud Identity ID or Customer Name in the request. + * + * Use this method to list the entitlements information of an + * unowned customer. You should provide the customer's + * Cloud Identity ID or Customer Name. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller and has no auth token. + * * The supplied auth token is invalid. + * * The reseller account making the request is different + * from the reseller account in the query. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * A list of the customer's + * [TransferableSku][google.cloud.channel.v1.TransferableSku]. + * + * The async variant is + * {@see CloudChannelServiceClient::listTransferableSkusAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/list_transferable_skus.php + * + * @param ListTransferableSkusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listTransferableSkus(ListTransferableSkusRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTransferableSkus', $request, $callOptions); + } + + /** + * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement or offer was not found. + * + * Return value: + * The [Offer][google.cloud.channel.v1.Offer] resource. + * + * The async variant is {@see CloudChannelServiceClient::lookupOfferAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/lookup_offer.php + * + * @param LookupOfferRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Offer + * + * @throws ApiException Thrown if the API call fails. + */ + public function lookupOffer(LookupOfferRequest $request, array $callOptions = []): Offer + { + return $this->startApiCall('LookupOffer', $request, $callOptions)->wait(); + } + + /** + * Creates a Cloud Identity for the given customer using the customer's + * information, or the information provided here. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller. + * * You are not authorized to provision cloud identity id. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The customer was not found. + * * ALREADY_EXISTS: The customer's primary email already exists. Retry + * after changing the customer's primary contact email. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata contains an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is + * {@see CloudChannelServiceClient::provisionCloudIdentityAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/provision_cloud_identity.php + * + * @param ProvisionCloudIdentityRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 provisionCloudIdentity(ProvisionCloudIdentityRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ProvisionCloudIdentity', $request, $callOptions)->wait(); + } + + /** + * Lists the billing accounts that are eligible to purchase particular SKUs + * for a given customer. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * + * Return value: + * Based on the provided list of SKUs, returns a list of SKU groups that must + * be purchased using the same billing account and the billing accounts + * eligible to purchase each SKU group. + * + * The async variant is + * {@see CloudChannelServiceClient::queryEligibleBillingAccountsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/query_eligible_billing_accounts.php + * + * @param QueryEligibleBillingAccountsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return QueryEligibleBillingAccountsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryEligibleBillingAccounts(QueryEligibleBillingAccountsRequest $request, array $callOptions = []): QueryEligibleBillingAccountsResponse + { + return $this->startApiCall('QueryEligibleBillingAccounts', $request, $callOptions)->wait(); + } + + /** + * Registers a service account with subscriber privileges on the Cloud Pub/Sub + * topic for this Channel Services account. After you create a + * subscriber, you get the events through + * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request and the + * provided reseller account are different, or the impersonated user + * is not a super admin. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The topic name with the registered service email address. + * + * The async variant is {@see CloudChannelServiceClient::registerSubscriberAsync()} + * . + * + * @example samples/V1/CloudChannelServiceClient/register_subscriber.php + * + * @param RegisterSubscriberRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RegisterSubscriberResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function registerSubscriber(RegisterSubscriberRequest $request, array $callOptions = []): RegisterSubscriberResponse + { + return $this->startApiCall('RegisterSubscriber', $request, $callOptions)->wait(); + } + + /** + * Starts paid service for a trial entitlement. + * + * Starts paid service for a trial entitlement immediately. This method is + * only applicable if a plan is set up for a trial entitlement but has some + * trial days remaining. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement resource not found. + * * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for + * entitlement on trial plans. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::startPaidServiceAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/start_paid_service.php + * + * @param StartPaidServiceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 startPaidService(StartPaidServiceRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('StartPaidService', $request, $callOptions)->wait(); + } + + /** + * Suspends a previously fulfilled entitlement. + * + * An entitlement suspension is a long-running operation. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: Entitlement resource not found. + * * NOT_ACTIVE: Entitlement is not active. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is {@see CloudChannelServiceClient::suspendEntitlementAsync()} + * . + * + * @example samples/V1/CloudChannelServiceClient/suspend_entitlement.php + * + * @param SuspendEntitlementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 suspendEntitlement(SuspendEntitlementRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('SuspendEntitlement', $request, $callOptions)->wait(); + } + + /** + * Transfers customer entitlements to new reseller. + * + * Possible error codes: + * + * * PERMISSION_DENIED: + * * The customer doesn't belong to the reseller. + * * The reseller is not authorized to transact on this Product. See + * https://support.google.com/channelservices/answer/9759265 + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The customer or offer resource was not found. + * * ALREADY_EXISTS: The SKU was already transferred for the customer. + * * CONDITION_NOT_MET or FAILED_PRECONDITION: + * * The SKU requires domain verification to transfer, but the domain is + * not verified. + * * An Add-On SKU (example, Vault or Drive) is missing the + * pre-requisite SKU (example, G Suite Basic). + * * (Developer accounts only) Reseller and resold domain must meet the + * following naming requirements: + * * Domain names must start with goog-test. + * * Domain names must include the reseller domain. + * * Specify all transferring entitlements. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is + * {@see CloudChannelServiceClient::transferEntitlementsAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/transfer_entitlements.php + * + * @param TransferEntitlementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 transferEntitlements(TransferEntitlementsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('TransferEntitlements', $request, $callOptions)->wait(); + } + + /** + * Transfers customer entitlements from their current reseller to Google. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The customer doesn't belong to the reseller. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The customer or offer resource was not found. + * * ALREADY_EXISTS: The SKU was already transferred for the customer. + * * CONDITION_NOT_MET or FAILED_PRECONDITION: + * * The SKU requires domain verification to transfer, but the domain is + * not verified. + * * An Add-On SKU (example, Vault or Drive) is missing the + * pre-requisite SKU (example, G Suite Basic). + * * (Developer accounts only) Reseller and resold domain must meet the + * following naming requirements: + * * Domain names must start with goog-test. + * * Domain names must include the reseller domain. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The ID of a long-running operation. + * + * To get the results of the operation, call the GetOperation method of + * CloudChannelOperationsService. The response will contain + * google.protobuf.Empty on success. The Operation metadata will contain an + * instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. + * + * The async variant is + * {@see CloudChannelServiceClient::transferEntitlementsToGoogleAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/transfer_entitlements_to_google.php + * + * @param TransferEntitlementsToGoogleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 transferEntitlementsToGoogle(TransferEntitlementsToGoogleRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('TransferEntitlementsToGoogle', $request, $callOptions)->wait(); + } + + /** + * Unregisters a service account with subscriber privileges on the Cloud + * Pub/Sub topic created for this Channel Services account. If there are no + * service accounts left with subscriber privileges, this deletes the topic. + * You can call ListSubscribers to check for these accounts. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request and the + * provided reseller account are different, or the impersonated user + * is not a super admin. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: The topic resource doesn't exist. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The topic name that unregistered the service email address. + * Returns a success response if the service email address wasn't registered + * with the topic. + * + * The async variant is + * {@see CloudChannelServiceClient::unregisterSubscriberAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/unregister_subscriber.php + * + * @param UnregisterSubscriberRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UnregisterSubscriberResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function unregisterSubscriber(UnregisterSubscriberRequest $request, array $callOptions = []): UnregisterSubscriberResponse + { + return $this->startApiCall('UnregisterSubscriber', $request, $callOptions)->wait(); + } + + /** + * Updates a channel partner link. Distributors call this method to change a + * link's status. For example, to suspend a partner link. + * You must be a distributor to call this method. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: + * * Required request parameters are missing or invalid. + * * Link state cannot change from invited to active or suspended. + * * Cannot send reseller_cloud_identity_id, invite_url, or name in update + * mask. + * * NOT_FOUND: ChannelPartnerLink resource not found. + * * INTERNAL: Any non-user error related to a technical issue in the + * backend. Contact Cloud Channel support. + * * UNKNOWN: Any non-user error related to a technical issue in the backend. + * Contact Cloud Channel support. + * + * Return value: + * The updated + * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. + * + * The async variant is + * {@see CloudChannelServiceClient::updateChannelPartnerLinkAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/update_channel_partner_link.php + * + * @param UpdateChannelPartnerLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateChannelPartnerLink(UpdateChannelPartnerLinkRequest $request, array $callOptions = []): ChannelPartnerLink + { + return $this->startApiCall('UpdateChannelPartnerLink', $request, $callOptions)->wait(); + } + + /** + * Updates a ChannelPartnerRepricingConfig. Call this method to set + * modifications for a specific ChannelPartner's bill. This method overwrites + * the existing CustomerRepricingConfig. + * + * You can only update configs if the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is a future month. To make changes to configs for the current month, use + * [CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig], + * taking note of its restrictions. You cannot update the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * + * When updating a config in the future: + * + * * This config must already exist. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * INVALID_ARGUMENT: Missing or invalid required parameters in the + * request. Also displays if the updated config is for the current month or + * past months. + * * NOT_FOUND: The + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the updated + * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::updateChannelPartnerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/update_channel_partner_repricing_config.php + * + * @param UpdateChannelPartnerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChannelPartnerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateChannelPartnerRepricingConfig(UpdateChannelPartnerRepricingConfigRequest $request, array $callOptions = []): ChannelPartnerRepricingConfig + { + return $this->startApiCall('UpdateChannelPartnerRepricingConfig', $request, $callOptions)->wait(); + } + + /** + * Updates an existing [Customer][google.cloud.channel.v1.Customer] resource + * for the reseller or distributor. + * + * Possible error codes: + * + * * PERMISSION_DENIED: The reseller account making the request is different + * from the reseller account in the API request. + * * INVALID_ARGUMENT: Required request parameters are missing or invalid. + * * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found + * for the name in the request. + * + * Return value: + * The updated [Customer][google.cloud.channel.v1.Customer] resource. + * + * The async variant is {@see CloudChannelServiceClient::updateCustomerAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/update_customer.php + * + * @param UpdateCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCustomer(UpdateCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('UpdateCustomer', $request, $callOptions)->wait(); + } + + /** + * Updates a CustomerRepricingConfig. Call this method to set modifications + * for a specific customer's bill. This method overwrites the existing + * CustomerRepricingConfig. + * + * You can only update configs if the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + * is a future month. To make changes to configs for the current month, use + * [CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig], + * taking note of its restrictions. You cannot update the + * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + * + * When updating a config in the future: + * + * * This config must already exist. + * + * Possible Error Codes: + * + * * PERMISSION_DENIED: If the account making the request and the account + * being queried are different. + * * INVALID_ARGUMENT: Missing or invalid required parameters in the + * request. Also displays if the updated config is for the current month or + * past months. + * * NOT_FOUND: The + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * specified does not exist or is not associated with the given account. + * * INTERNAL: Any non-user error related to technical issues in the + * backend. In this case, contact Cloud Channel support. + * + * Return Value: + * If successful, the updated + * [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + * resource, otherwise returns an error. + * + * The async variant is + * {@see CloudChannelServiceClient::updateCustomerRepricingConfigAsync()} . + * + * @example samples/V1/CloudChannelServiceClient/update_customer_repricing_config.php + * + * @param UpdateCustomerRepricingConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomerRepricingConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCustomerRepricingConfig(UpdateCustomerRepricingConfigRequest $request, array $callOptions = []): CustomerRepricingConfig + { + return $this->startApiCall('UpdateCustomerRepricingConfig', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Channel/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Channel/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..96a80c41f5f8 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/gapic_metadata.json @@ -0,0 +1,287 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.channel.v1", + "libraryPackage": "Google\\Cloud\\Channel\\V1", + "services": { + "CloudChannelReportsService": { + "clients": { + "grpc": { + "libraryClient": "CloudChannelReportsServiceGapicClient", + "rpcs": { + "FetchReportResults": { + "methods": [ + "fetchReportResults" + ] + }, + "ListReports": { + "methods": [ + "listReports" + ] + }, + "RunReportJob": { + "methods": [ + "runReportJob" + ] + } + } + } + } + }, + "CloudChannelService": { + "clients": { + "grpc": { + "libraryClient": "CloudChannelServiceGapicClient", + "rpcs": { + "ActivateEntitlement": { + "methods": [ + "activateEntitlement" + ] + }, + "CancelEntitlement": { + "methods": [ + "cancelEntitlement" + ] + }, + "ChangeOffer": { + "methods": [ + "changeOffer" + ] + }, + "ChangeParameters": { + "methods": [ + "changeParameters" + ] + }, + "ChangeRenewalSettings": { + "methods": [ + "changeRenewalSettings" + ] + }, + "CheckCloudIdentityAccountsExist": { + "methods": [ + "checkCloudIdentityAccountsExist" + ] + }, + "CreateChannelPartnerLink": { + "methods": [ + "createChannelPartnerLink" + ] + }, + "CreateChannelPartnerRepricingConfig": { + "methods": [ + "createChannelPartnerRepricingConfig" + ] + }, + "CreateCustomer": { + "methods": [ + "createCustomer" + ] + }, + "CreateCustomerRepricingConfig": { + "methods": [ + "createCustomerRepricingConfig" + ] + }, + "CreateEntitlement": { + "methods": [ + "createEntitlement" + ] + }, + "DeleteChannelPartnerRepricingConfig": { + "methods": [ + "deleteChannelPartnerRepricingConfig" + ] + }, + "DeleteCustomer": { + "methods": [ + "deleteCustomer" + ] + }, + "DeleteCustomerRepricingConfig": { + "methods": [ + "deleteCustomerRepricingConfig" + ] + }, + "GetChannelPartnerLink": { + "methods": [ + "getChannelPartnerLink" + ] + }, + "GetChannelPartnerRepricingConfig": { + "methods": [ + "getChannelPartnerRepricingConfig" + ] + }, + "GetCustomer": { + "methods": [ + "getCustomer" + ] + }, + "GetCustomerRepricingConfig": { + "methods": [ + "getCustomerRepricingConfig" + ] + }, + "GetEntitlement": { + "methods": [ + "getEntitlement" + ] + }, + "ImportCustomer": { + "methods": [ + "importCustomer" + ] + }, + "ListChannelPartnerLinks": { + "methods": [ + "listChannelPartnerLinks" + ] + }, + "ListChannelPartnerRepricingConfigs": { + "methods": [ + "listChannelPartnerRepricingConfigs" + ] + }, + "ListCustomerRepricingConfigs": { + "methods": [ + "listCustomerRepricingConfigs" + ] + }, + "ListCustomers": { + "methods": [ + "listCustomers" + ] + }, + "ListEntitlementChanges": { + "methods": [ + "listEntitlementChanges" + ] + }, + "ListEntitlements": { + "methods": [ + "listEntitlements" + ] + }, + "ListOffers": { + "methods": [ + "listOffers" + ] + }, + "ListProducts": { + "methods": [ + "listProducts" + ] + }, + "ListPurchasableOffers": { + "methods": [ + "listPurchasableOffers" + ] + }, + "ListPurchasableSkus": { + "methods": [ + "listPurchasableSkus" + ] + }, + "ListSkuGroupBillableSkus": { + "methods": [ + "listSkuGroupBillableSkus" + ] + }, + "ListSkuGroups": { + "methods": [ + "listSkuGroups" + ] + }, + "ListSkus": { + "methods": [ + "listSkus" + ] + }, + "ListSubscribers": { + "methods": [ + "listSubscribers" + ] + }, + "ListTransferableOffers": { + "methods": [ + "listTransferableOffers" + ] + }, + "ListTransferableSkus": { + "methods": [ + "listTransferableSkus" + ] + }, + "LookupOffer": { + "methods": [ + "lookupOffer" + ] + }, + "ProvisionCloudIdentity": { + "methods": [ + "provisionCloudIdentity" + ] + }, + "QueryEligibleBillingAccounts": { + "methods": [ + "queryEligibleBillingAccounts" + ] + }, + "RegisterSubscriber": { + "methods": [ + "registerSubscriber" + ] + }, + "StartPaidService": { + "methods": [ + "startPaidService" + ] + }, + "SuspendEntitlement": { + "methods": [ + "suspendEntitlement" + ] + }, + "TransferEntitlements": { + "methods": [ + "transferEntitlements" + ] + }, + "TransferEntitlementsToGoogle": { + "methods": [ + "transferEntitlementsToGoogle" + ] + }, + "UnregisterSubscriber": { + "methods": [ + "unregisterSubscriber" + ] + }, + "UpdateChannelPartnerLink": { + "methods": [ + "updateChannelPartnerLink" + ] + }, + "UpdateChannelPartnerRepricingConfig": { + "methods": [ + "updateChannelPartnerRepricingConfig" + ] + }, + "UpdateCustomer": { + "methods": [ + "updateCustomer" + ] + }, + "UpdateCustomerRepricingConfig": { + "methods": [ + "updateCustomerRepricingConfig" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_client_config.json b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_client_config.json new file mode 100644 index 000000000000..1decc7fd0a7a --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_client_config.json @@ -0,0 +1,37 @@ +{ + "interfaces": { + "google.cloud.channel.v1.CloudChannelReportsService": { + "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": { + "FetchReportResults": { + "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" + }, + "RunReportJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_descriptor_config.php b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_descriptor_config.php new file mode 100644 index 000000000000..4feb1760276c --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_descriptor_config.php @@ -0,0 +1,91 @@ + [ + 'google.cloud.channel.v1.CloudChannelReportsService' => [ + 'RunReportJob' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\RunReportJobResponse', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchReportResults' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRows', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\FetchReportResultsResponse', + 'headerParams' => [ + [ + 'keyName' => 'report_job', + 'fieldAccessors' => [ + 'getReportJob', + ], + ], + ], + ], + 'ListReports' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReports', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListReportsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'report' => 'accounts/{account}/reports/{report}', + 'reportJob' => 'accounts/{account}/reportJobs/{report_job}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_rest_client_config.php b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_rest_client_config.php new file mode 100644 index 000000000000..ca86373ca9f0 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_reports_service_rest_client_config.php @@ -0,0 +1,111 @@ + [ + 'google.cloud.channel.v1.CloudChannelReportsService' => [ + 'FetchReportResults' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{report_job=accounts/*/reportJobs/*}:fetchReportResults', + 'body' => '*', + 'placeholders' => [ + 'report_job' => [ + 'getters' => [ + 'getReportJob', + ], + ], + ], + ], + 'ListReports' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*}/reports', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RunReportJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/reports/*}:run', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=operations/**}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=operations}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_client_config.json b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_client_config.json new file mode 100644 index 000000000000..083055bb91a6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_client_config.json @@ -0,0 +1,289 @@ +{ + "interfaces": { + "google.cloud.channel.v1.CloudChannelService": { + "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": { + "ActivateEntitlement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CancelEntitlement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ChangeOffer": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ChangeParameters": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ChangeRenewalSettings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CheckCloudIdentityAccountsExist": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateChannelPartnerLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateChannelPartnerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateEntitlement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteChannelPartnerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteCustomerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetChannelPartnerLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetChannelPartnerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEntitlement": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListChannelPartnerLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListChannelPartnerRepricingConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomerRepricingConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEntitlementChanges": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEntitlements": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListOffers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListProducts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListPurchasableOffers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListPurchasableSkus": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSkuGroupBillableSkus": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSkuGroups": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSkus": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSubscribers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListTransferableOffers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListTransferableSkus": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "LookupOffer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ProvisionCloudIdentity": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "QueryEligibleBillingAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RegisterSubscriber": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "StartPaidService": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SuspendEntitlement": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "TransferEntitlements": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "TransferEntitlementsToGoogle": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UnregisterSubscriber": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateChannelPartnerLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateChannelPartnerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomerRepricingConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_descriptor_config.php b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_descriptor_config.php new file mode 100644 index 000000000000..edcf6ca6b530 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_descriptor_config.php @@ -0,0 +1,826 @@ + [ + 'google.cloud.channel.v1.CloudChannelService' => [ + 'ActivateEntitlement' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelEntitlement' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ChangeOffer' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ChangeParameters' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ChangeRenewalSettings' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateEntitlement' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ProvisionCloudIdentity' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Customer', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'customer', + 'fieldAccessors' => [ + 'getCustomer', + ], + ], + ], + ], + 'StartPaidService' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SuspendEntitlement' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\Entitlement', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'TransferEntitlements' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Channel\V1\TransferEntitlementsResponse', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'TransferEntitlementsToGoogle' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Channel\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CheckCloudIdentityAccountsExist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\CheckCloudIdentityAccountsExistResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChannelPartnerLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerLink', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChannelPartnerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Customer', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\CustomerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteChannelPartnerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetChannelPartnerLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerLink', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetChannelPartnerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Customer', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\CustomerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntitlement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Entitlement', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ImportCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Customer', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListChannelPartnerLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChannelPartnerLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListChannelPartnerLinksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListChannelPartnerRepricingConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChannelPartnerRepricingConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListChannelPartnerRepricingConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomerRepricingConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomerRepricingConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListCustomerRepricingConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListCustomersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlementChanges' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntitlementChanges', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListEntitlementChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlements' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntitlements', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListEntitlementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListOffers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOffers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListOffersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListProducts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProducts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListProductsResponse', + ], + 'ListPurchasableOffers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPurchasableOffers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListPurchasableOffersResponse', + 'headerParams' => [ + [ + 'keyName' => 'customer', + 'fieldAccessors' => [ + 'getCustomer', + ], + ], + ], + ], + 'ListPurchasableSkus' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPurchasableSkus', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListPurchasableSkusResponse', + 'headerParams' => [ + [ + 'keyName' => 'customer', + 'fieldAccessors' => [ + 'getCustomer', + ], + ], + ], + ], + 'ListSkuGroupBillableSkus' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBillableSkus', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListSkuGroupBillableSkusResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSkuGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSkuGroups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListSkuGroupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSkus' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSkus', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListSkusResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSubscribers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getServiceAccounts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListSubscribersResponse', + 'headerParams' => [ + [ + 'keyName' => 'account', + 'fieldAccessors' => [ + 'getAccount', + ], + ], + ], + ], + 'ListTransferableOffers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTransferableOffers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListTransferableOffersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTransferableSkus' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTransferableSkus', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ListTransferableSkusResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'LookupOffer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Offer', + 'headerParams' => [ + [ + 'keyName' => 'entitlement', + 'fieldAccessors' => [ + 'getEntitlement', + ], + ], + ], + ], + 'QueryEligibleBillingAccounts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\QueryEligibleBillingAccountsResponse', + 'headerParams' => [ + [ + 'keyName' => 'customer', + 'fieldAccessors' => [ + 'getCustomer', + ], + ], + ], + ], + 'RegisterSubscriber' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\RegisterSubscriberResponse', + 'headerParams' => [ + [ + 'keyName' => 'account', + 'fieldAccessors' => [ + 'getAccount', + ], + ], + ], + ], + 'UnregisterSubscriber' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\UnregisterSubscriberResponse', + 'headerParams' => [ + [ + 'keyName' => 'account', + 'fieldAccessors' => [ + 'getAccount', + ], + ], + ], + ], + 'UpdateChannelPartnerLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerLink', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateChannelPartnerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'channel_partner_repricing_config.name', + 'fieldAccessors' => [ + 'getChannelPartnerRepricingConfig', + 'getName', + ], + ], + ], + ], + 'UpdateCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\Customer', + 'headerParams' => [ + [ + 'keyName' => 'customer.name', + 'fieldAccessors' => [ + 'getCustomer', + 'getName', + ], + ], + ], + ], + 'UpdateCustomerRepricingConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Channel\V1\CustomerRepricingConfig', + 'headerParams' => [ + [ + 'keyName' => 'customer_repricing_config.name', + 'fieldAccessors' => [ + 'getCustomerRepricingConfig', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'channelPartnerLink' => 'accounts/{account}/channelPartnerLinks/{channel_partner_link}', + 'channelPartnerRepricingConfig' => 'accounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config}', + 'customer' => 'accounts/{account}/customers/{customer}', + 'customerRepricingConfig' => 'accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config}', + 'entitlement' => 'accounts/{account}/customers/{customer}/entitlements/{entitlement}', + 'offer' => 'accounts/{account}/offers/{offer}', + 'product' => 'products/{product}', + 'skuGroup' => 'accounts/{account}/skuGroups/{sku_group}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_rest_client_config.php b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_rest_client_config.php new file mode 100644 index 000000000000..944a1b7fa7e6 --- /dev/null +++ b/owl-bot-staging/Channel/v1/src/V1/resources/cloud_channel_service_rest_client_config.php @@ -0,0 +1,681 @@ + [ + 'google.cloud.channel.v1.CloudChannelService' => [ + 'ActivateEntitlement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:activate', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CancelEntitlement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ChangeOffer' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:changeOffer', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ChangeParameters' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:changeParameters', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ChangeRenewalSettings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:changeRenewalSettings', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CheckCloudIdentityAccountsExist' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChannelPartnerLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}/channelPartnerLinks', + 'body' => 'channel_partner_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChannelPartnerRepricingConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/channelPartnerLinks/*}/channelPartnerRepricingConfigs', + 'body' => 'channel_partner_repricing_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomer' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}/customers', + 'body' => 'customer', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/channelPartnerLinks/*}/customers', + 'body' => 'customer', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomerRepricingConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}/customerRepricingConfigs', + 'body' => 'customer_repricing_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntitlement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}/entitlements', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteChannelPartnerRepricingConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomer' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomerRepricingConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/customerRepricingConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetChannelPartnerLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetChannelPartnerRepricingConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomerRepricingConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/customerRepricingConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntitlement' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportCustomer' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}/customers:import', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/channelPartnerLinks/*}/customers:import', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListChannelPartnerLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*}/channelPartnerLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListChannelPartnerRepricingConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/channelPartnerLinks/*}/channelPartnerRepricingConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomerRepricingConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}/customerRepricingConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*}/customers', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/channelPartnerLinks/*}/customers', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlementChanges' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*/entitlements/*}:listEntitlementChanges', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlements' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}/entitlements', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListOffers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*}/offers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListProducts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/products', + 'queryParams' => [ + 'account', + ], + ], + 'ListPurchasableOffers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{customer=accounts/*/customers/*}:listPurchasableOffers', + 'placeholders' => [ + 'customer' => [ + 'getters' => [ + 'getCustomer', + ], + ], + ], + ], + 'ListPurchasableSkus' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{customer=accounts/*/customers/*}:listPurchasableSkus', + 'placeholders' => [ + 'customer' => [ + 'getters' => [ + 'getCustomer', + ], + ], + ], + ], + 'ListSkuGroupBillableSkus' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*/skuGroups/*}/billableSkus', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSkuGroups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=accounts/*}/skuGroups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSkus' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=products/*}/skus', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'account', + ], + ], + 'ListSubscribers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{account=accounts/*}:listSubscribers', + 'placeholders' => [ + 'account' => [ + 'getters' => [ + 'getAccount', + ], + ], + ], + ], + 'ListTransferableOffers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}:listTransferableOffers', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTransferableSkus' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*}:listTransferableSkus', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'LookupOffer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{entitlement=accounts/*/customers/*/entitlements/*}:lookupOffer', + 'placeholders' => [ + 'entitlement' => [ + 'getters' => [ + 'getEntitlement', + ], + ], + ], + ], + 'ProvisionCloudIdentity' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{customer=accounts/*/customers/*}:provisionCloudIdentity', + 'body' => '*', + 'placeholders' => [ + 'customer' => [ + 'getters' => [ + 'getCustomer', + ], + ], + ], + ], + 'QueryEligibleBillingAccounts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{customer=accounts/*/customers/*}:queryEligibleBillingAccounts', + 'placeholders' => [ + 'customer' => [ + 'getters' => [ + 'getCustomer', + ], + ], + ], + ], + 'RegisterSubscriber' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{account=accounts/*}:register', + 'body' => '*', + 'placeholders' => [ + 'account' => [ + 'getters' => [ + 'getAccount', + ], + ], + ], + ], + 'StartPaidService' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:startPaidService', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SuspendEntitlement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=accounts/*/customers/*/entitlements/*}:suspend', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'TransferEntitlements' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}:transferEntitlements', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'TransferEntitlementsToGoogle' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=accounts/*/customers/*}:transferEntitlementsToGoogle', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UnregisterSubscriber' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{account=accounts/*}:unregister', + 'body' => '*', + 'placeholders' => [ + 'account' => [ + 'getters' => [ + 'getAccount', + ], + ], + ], + ], + 'UpdateChannelPartnerLink' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=accounts/*/channelPartnerLinks/*}', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateChannelPartnerRepricingConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{channel_partner_repricing_config.name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}', + 'body' => 'channel_partner_repricing_config', + 'placeholders' => [ + 'channel_partner_repricing_config.name' => [ + 'getters' => [ + 'getChannelPartnerRepricingConfig', + 'getName', + ], + ], + ], + ], + 'UpdateCustomer' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{customer.name=accounts/*/customers/*}', + 'body' => 'customer', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{customer.name=accounts/*/channelPartnerLinks/*/customers/*}', + 'body' => 'customer', + ], + ], + 'placeholders' => [ + 'customer.name' => [ + 'getters' => [ + 'getCustomer', + 'getName', + ], + ], + ], + ], + 'UpdateCustomerRepricingConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{customer_repricing_config.name=accounts/*/customers/*/customerRepricingConfigs/*}', + 'body' => 'customer_repricing_config', + 'placeholders' => [ + 'customer_repricing_config.name' => [ + 'getters' => [ + 'getCustomerRepricingConfig', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=operations/**}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=operations}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelReportsServiceClientTest.php b/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelReportsServiceClientTest.php new file mode 100644 index 000000000000..7e994d5f5e86 --- /dev/null +++ b/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelReportsServiceClientTest.php @@ -0,0 +1,374 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudChannelReportsServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudChannelReportsServiceClient($options); + } + + /** @test */ + public function fetchReportResultsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rowsElement = new Row(); + $rows = [ + $rowsElement, + ]; + $expectedResponse = new FetchReportResultsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRows($rows); + $transport->addResponse($expectedResponse); + // Mock request + $formattedReportJob = $gapicClient->reportJobName('[ACCOUNT]', '[REPORT_JOB]'); + $request = (new FetchReportResultsRequest()) + ->setReportJob($formattedReportJob); + $response = $gapicClient->fetchReportResults($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelReportsService/FetchReportResults', $actualFuncCall); + $actualValue = $actualRequestObject->getReportJob(); + $this->assertProtobufEquals($formattedReportJob, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchReportResultsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedReportJob = $gapicClient->reportJobName('[ACCOUNT]', '[REPORT_JOB]'); + $request = (new FetchReportResultsRequest()) + ->setReportJob($formattedReportJob); + try { + $gapicClient->fetchReportResults($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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 = ''; + $reportsElement = new Report(); + $reports = [ + $reportsElement, + ]; + $expectedResponse = new ListReportsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReports($reports); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListReportsRequest()) + ->setParent($parent); + $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.cloud.channel.v1.CloudChannelReportsService/ListReports', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $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 + $parent = 'parent-995424086'; + $request = (new ListReportsRequest()) + ->setParent($parent); + 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 runReportJobTest() + { + $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/runReportJobTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new RunReportJobResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/runReportJobTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->reportName('[ACCOUNT]', '[REPORT]'); + $request = (new RunReportJobRequest()) + ->setName($formattedName); + $response = $gapicClient->runReportJob($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.channel.v1.CloudChannelReportsService/RunReportJob', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/runReportJobTest'); + $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 runReportJobExceptionTest() + { + $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/runReportJobTest'); + $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('[ACCOUNT]', '[REPORT]'); + $request = (new RunReportJobRequest()) + ->setName($formattedName); + $response = $gapicClient->runReportJob($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/runReportJobTest'); + 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 fetchReportResultsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rowsElement = new Row(); + $rows = [ + $rowsElement, + ]; + $expectedResponse = new FetchReportResultsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRows($rows); + $transport->addResponse($expectedResponse); + // Mock request + $formattedReportJob = $gapicClient->reportJobName('[ACCOUNT]', '[REPORT_JOB]'); + $request = (new FetchReportResultsRequest()) + ->setReportJob($formattedReportJob); + $response = $gapicClient->fetchReportResultsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelReportsService/FetchReportResults', $actualFuncCall); + $actualValue = $actualRequestObject->getReportJob(); + $this->assertProtobufEquals($formattedReportJob, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelServiceClientTest.php b/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelServiceClientTest.php new file mode 100644 index 000000000000..865b06cec0bc --- /dev/null +++ b/owl-bot-staging/Channel/v1/tests/Unit/V1/Client/CloudChannelServiceClientTest.php @@ -0,0 +1,4492 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudChannelServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudChannelServiceClient($options); + } + + /** @test */ + public function activateEntitlementTest() + { + $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/activateEntitlementTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/activateEntitlementTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new ActivateEntitlementRequest()) + ->setName($name); + $response = $gapicClient->activateEntitlement($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.channel.v1.CloudChannelService/ActivateEntitlement', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/activateEntitlementTest'); + $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 activateEntitlementExceptionTest() + { + $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/activateEntitlementTest'); + $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 + $name = 'name3373707'; + $request = (new ActivateEntitlementRequest()) + ->setName($name); + $response = $gapicClient->activateEntitlement($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/activateEntitlementTest'); + 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 cancelEntitlementTest() + { + $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/cancelEntitlementTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/cancelEntitlementTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new CancelEntitlementRequest()) + ->setName($name); + $response = $gapicClient->cancelEntitlement($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.channel.v1.CloudChannelService/CancelEntitlement', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/cancelEntitlementTest'); + $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 cancelEntitlementExceptionTest() + { + $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/cancelEntitlementTest'); + $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 + $name = 'name3373707'; + $request = (new CancelEntitlementRequest()) + ->setName($name); + $response = $gapicClient->cancelEntitlement($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/cancelEntitlementTest'); + 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 changeOfferTest() + { + $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/changeOfferTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer2 = 'offer2-1548812529'; + $purchaseOrderId2 = 'purchaseOrderId2-1437424035'; + $billingAccount2 = 'billingAccount2-596754980'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer2); + $expectedResponse->setPurchaseOrderId($purchaseOrderId2); + $expectedResponse->setBillingAccount($billingAccount2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/changeOfferTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $formattedOffer = $gapicClient->offerName('[ACCOUNT]', '[OFFER]'); + $request = (new ChangeOfferRequest()) + ->setName($name) + ->setOffer($formattedOffer); + $response = $gapicClient->changeOffer($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.channel.v1.CloudChannelService/ChangeOffer', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualApiRequestObject->getOffer(); + $this->assertProtobufEquals($formattedOffer, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeOfferTest'); + $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 changeOfferExceptionTest() + { + $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/changeOfferTest'); + $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 + $name = 'name3373707'; + $formattedOffer = $gapicClient->offerName('[ACCOUNT]', '[OFFER]'); + $request = (new ChangeOfferRequest()) + ->setName($name) + ->setOffer($formattedOffer); + $response = $gapicClient->changeOffer($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeOfferTest'); + 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 changeParametersTest() + { + $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/changeParametersTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId2 = 'purchaseOrderId2-1437424035'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId2); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/changeParametersTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $parameters = []; + $request = (new ChangeParametersRequest()) + ->setName($name) + ->setParameters($parameters); + $response = $gapicClient->changeParameters($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.channel.v1.CloudChannelService/ChangeParameters', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualApiRequestObject->getParameters(); + $this->assertProtobufEquals($parameters, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeParametersTest'); + $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 changeParametersExceptionTest() + { + $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/changeParametersTest'); + $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 + $name = 'name3373707'; + $parameters = []; + $request = (new ChangeParametersRequest()) + ->setName($name) + ->setParameters($parameters); + $response = $gapicClient->changeParameters($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeParametersTest'); + 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 changeRenewalSettingsTest() + { + $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/changeRenewalSettingsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/changeRenewalSettingsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $renewalSettings = new RenewalSettings(); + $request = (new ChangeRenewalSettingsRequest()) + ->setName($name) + ->setRenewalSettings($renewalSettings); + $response = $gapicClient->changeRenewalSettings($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.channel.v1.CloudChannelService/ChangeRenewalSettings', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualApiRequestObject->getRenewalSettings(); + $this->assertProtobufEquals($renewalSettings, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeRenewalSettingsTest'); + $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 changeRenewalSettingsExceptionTest() + { + $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/changeRenewalSettingsTest'); + $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 + $name = 'name3373707'; + $renewalSettings = new RenewalSettings(); + $request = (new ChangeRenewalSettingsRequest()) + ->setName($name) + ->setRenewalSettings($renewalSettings); + $response = $gapicClient->changeRenewalSettings($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/changeRenewalSettingsTest'); + 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 checkCloudIdentityAccountsExistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CheckCloudIdentityAccountsExistResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $domain = 'domain-1326197564'; + $request = (new CheckCloudIdentityAccountsExistRequest()) + ->setParent($parent) + ->setDomain($domain); + $response = $gapicClient->checkCloudIdentityAccountsExist($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.channel.v1.CloudChannelService/CheckCloudIdentityAccountsExist', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getDomain(); + $this->assertProtobufEquals($domain, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkCloudIdentityAccountsExistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $domain = 'domain-1326197564'; + $request = (new CheckCloudIdentityAccountsExistRequest()) + ->setParent($parent) + ->setDomain($domain); + try { + $gapicClient->checkCloudIdentityAccountsExist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelPartnerLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $resellerCloudIdentityId = 'resellerCloudIdentityId1410814373'; + $inviteLinkUri = 'inviteLinkUri633336861'; + $publicId = 'publicId1446918833'; + $expectedResponse = new ChannelPartnerLink(); + $expectedResponse->setName($name); + $expectedResponse->setResellerCloudIdentityId($resellerCloudIdentityId); + $expectedResponse->setInviteLinkUri($inviteLinkUri); + $expectedResponse->setPublicId($publicId); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $channelPartnerLink = new ChannelPartnerLink(); + $channelPartnerLinkResellerCloudIdentityId = 'channelPartnerLinkResellerCloudIdentityId-321778211'; + $channelPartnerLink->setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId); + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + $channelPartnerLink->setLinkState($channelPartnerLinkLinkState); + $request = (new CreateChannelPartnerLinkRequest()) + ->setParent($parent) + ->setChannelPartnerLink($channelPartnerLink); + $response = $gapicClient->createChannelPartnerLink($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.channel.v1.CloudChannelService/CreateChannelPartnerLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getChannelPartnerLink(); + $this->assertProtobufEquals($channelPartnerLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelPartnerLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $channelPartnerLink = new ChannelPartnerLink(); + $channelPartnerLinkResellerCloudIdentityId = 'channelPartnerLinkResellerCloudIdentityId-321778211'; + $channelPartnerLink->setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId); + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + $channelPartnerLink->setLinkState($channelPartnerLinkLinkState); + $request = (new CreateChannelPartnerLinkRequest()) + ->setParent($parent) + ->setChannelPartnerLink($channelPartnerLink); + try { + $gapicClient->createChannelPartnerLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelPartnerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new ChannelPartnerRepricingConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->channelPartnerLinkName('[ACCOUNT]', '[CHANNEL_PARTNER_LINK]'); + $channelPartnerRepricingConfig = new ChannelPartnerRepricingConfig(); + $channelPartnerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $channelPartnerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $channelPartnerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $channelPartnerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $channelPartnerRepricingConfig->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new CreateChannelPartnerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + $response = $gapicClient->createChannelPartnerRepricingConfig($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.channel.v1.CloudChannelService/CreateChannelPartnerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChannelPartnerRepricingConfig(); + $this->assertProtobufEquals($channelPartnerRepricingConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelPartnerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->channelPartnerLinkName('[ACCOUNT]', '[CHANNEL_PARTNER_LINK]'); + $channelPartnerRepricingConfig = new ChannelPartnerRepricingConfig(); + $channelPartnerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $channelPartnerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $channelPartnerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $channelPartnerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $channelPartnerRepricingConfig->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new CreateChannelPartnerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + try { + $gapicClient->createChannelPartnerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $orgDisplayName = 'orgDisplayName-1793830557'; + $alternateEmail = 'alternateEmail2117741463'; + $domain = 'domain-1326197564'; + $cloudIdentityId = 'cloudIdentityId-466684622'; + $languageCode = 'languageCode-412800396'; + $channelPartnerId = 'channelPartnerId-1897289554'; + $correlationId = 'correlationId2055329016'; + $expectedResponse = new Customer(); + $expectedResponse->setName($name); + $expectedResponse->setOrgDisplayName($orgDisplayName); + $expectedResponse->setAlternateEmail($alternateEmail); + $expectedResponse->setDomain($domain); + $expectedResponse->setCloudIdentityId($cloudIdentityId); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setChannelPartnerId($channelPartnerId); + $expectedResponse->setCorrelationId($correlationId); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $customer = new Customer(); + $customerOrgDisplayName = 'customerOrgDisplayName1748404327'; + $customer->setOrgDisplayName($customerOrgDisplayName); + $customerOrgPostalAddress = new PostalAddress(); + $customer->setOrgPostalAddress($customerOrgPostalAddress); + $customerDomain = 'customerDomain1489396290'; + $customer->setDomain($customerDomain); + $request = (new CreateCustomerRequest()) + ->setParent($parent) + ->setCustomer($customer); + $response = $gapicClient->createCustomer($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.channel.v1.CloudChannelService/CreateCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getCustomer(); + $this->assertProtobufEquals($customer, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $customer = new Customer(); + $customerOrgDisplayName = 'customerOrgDisplayName1748404327'; + $customer->setOrgDisplayName($customerOrgDisplayName); + $customerOrgPostalAddress = new PostalAddress(); + $customer->setOrgPostalAddress($customerOrgPostalAddress); + $customerDomain = 'customerDomain1489396290'; + $customer->setDomain($customerDomain); + $request = (new CreateCustomerRequest()) + ->setParent($parent) + ->setCustomer($customer); + try { + $gapicClient->createCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new CustomerRepricingConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $customerRepricingConfig = new CustomerRepricingConfig(); + $customerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $customerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $customerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $customerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $customerRepricingConfig->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new CreateCustomerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setCustomerRepricingConfig($customerRepricingConfig); + $response = $gapicClient->createCustomerRepricingConfig($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.channel.v1.CloudChannelService/CreateCustomerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomerRepricingConfig(); + $this->assertProtobufEquals($customerRepricingConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $customerRepricingConfig = new CustomerRepricingConfig(); + $customerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $customerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $customerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $customerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $customerRepricingConfig->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new CreateCustomerRepricingConfigRequest()) + ->setParent($formattedParent) + ->setCustomerRepricingConfig($customerRepricingConfig); + try { + $gapicClient->createCustomerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntitlementTest() + { + $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/createEntitlementTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createEntitlementTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $entitlement = new Entitlement(); + $entitlementOffer = $gapicClient->offerName('[ACCOUNT]', '[OFFER]'); + $entitlement->setOffer($entitlementOffer); + $request = (new CreateEntitlementRequest()) + ->setParent($formattedParent) + ->setEntitlement($entitlement); + $response = $gapicClient->createEntitlement($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.channel.v1.CloudChannelService/CreateEntitlement', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getEntitlement(); + $this->assertProtobufEquals($entitlement, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntitlementTest'); + $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 createEntitlementExceptionTest() + { + $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/createEntitlementTest'); + $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->customerName('[ACCOUNT]', '[CUSTOMER]'); + $entitlement = new Entitlement(); + $entitlementOffer = $gapicClient->offerName('[ACCOUNT]', '[OFFER]'); + $entitlement->setOffer($entitlementOffer); + $request = (new CreateEntitlementRequest()) + ->setParent($formattedParent) + ->setEntitlement($entitlement); + $response = $gapicClient->createEntitlement($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntitlementTest'); + 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 deleteChannelPartnerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->channelPartnerRepricingConfigName('[ACCOUNT]', '[CHANNEL_PARTNER]', '[CHANNEL_PARTNER_REPRICING_CONFIG]'); + $request = (new DeleteChannelPartnerRepricingConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteChannelPartnerRepricingConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/DeleteChannelPartnerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteChannelPartnerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->channelPartnerRepricingConfigName('[ACCOUNT]', '[CHANNEL_PARTNER]', '[CHANNEL_PARTNER_REPRICING_CONFIG]'); + $request = (new DeleteChannelPartnerRepricingConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteChannelPartnerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new DeleteCustomerRequest()) + ->setName($formattedName); + $gapicClient->deleteCustomer($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/DeleteCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new DeleteCustomerRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerRepricingConfigName('[ACCOUNT]', '[CUSTOMER]', '[CUSTOMER_REPRICING_CONFIG]'); + $request = (new DeleteCustomerRepricingConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteCustomerRepricingConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/DeleteCustomerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerRepricingConfigName('[ACCOUNT]', '[CUSTOMER]', '[CUSTOMER_REPRICING_CONFIG]'); + $request = (new DeleteCustomerRepricingConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteCustomerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelPartnerLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resellerCloudIdentityId = 'resellerCloudIdentityId1410814373'; + $inviteLinkUri = 'inviteLinkUri633336861'; + $publicId = 'publicId1446918833'; + $expectedResponse = new ChannelPartnerLink(); + $expectedResponse->setName($name2); + $expectedResponse->setResellerCloudIdentityId($resellerCloudIdentityId); + $expectedResponse->setInviteLinkUri($inviteLinkUri); + $expectedResponse->setPublicId($publicId); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GetChannelPartnerLinkRequest()) + ->setName($name); + $response = $gapicClient->getChannelPartnerLink($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.channel.v1.CloudChannelService/GetChannelPartnerLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelPartnerLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 GetChannelPartnerLinkRequest()) + ->setName($name); + try { + $gapicClient->getChannelPartnerLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelPartnerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new ChannelPartnerRepricingConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->channelPartnerRepricingConfigName('[ACCOUNT]', '[CHANNEL_PARTNER]', '[CHANNEL_PARTNER_REPRICING_CONFIG]'); + $request = (new GetChannelPartnerRepricingConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getChannelPartnerRepricingConfig($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.channel.v1.CloudChannelService/GetChannelPartnerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelPartnerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->channelPartnerRepricingConfigName('[ACCOUNT]', '[CHANNEL_PARTNER]', '[CHANNEL_PARTNER_REPRICING_CONFIG]'); + $request = (new GetChannelPartnerRepricingConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getChannelPartnerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $orgDisplayName = 'orgDisplayName-1793830557'; + $alternateEmail = 'alternateEmail2117741463'; + $domain = 'domain-1326197564'; + $cloudIdentityId = 'cloudIdentityId-466684622'; + $languageCode = 'languageCode-412800396'; + $channelPartnerId = 'channelPartnerId-1897289554'; + $correlationId = 'correlationId2055329016'; + $expectedResponse = new Customer(); + $expectedResponse->setName($name2); + $expectedResponse->setOrgDisplayName($orgDisplayName); + $expectedResponse->setAlternateEmail($alternateEmail); + $expectedResponse->setDomain($domain); + $expectedResponse->setCloudIdentityId($cloudIdentityId); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setChannelPartnerId($channelPartnerId); + $expectedResponse->setCorrelationId($correlationId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomer($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.channel.v1.CloudChannelService/GetCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new CustomerRepricingConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerRepricingConfigName('[ACCOUNT]', '[CUSTOMER]', '[CUSTOMER_REPRICING_CONFIG]'); + $request = (new GetCustomerRepricingConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomerRepricingConfig($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.channel.v1.CloudChannelService/GetCustomerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerRepricingConfigName('[ACCOUNT]', '[CUSTOMER]', '[CUSTOMER_REPRICING_CONFIG]'); + $request = (new GetCustomerRepricingConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntitlementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new GetEntitlementRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntitlement($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.channel.v1.CloudChannelService/GetEntitlement', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntitlementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new GetEntitlementRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntitlement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $orgDisplayName = 'orgDisplayName-1793830557'; + $alternateEmail = 'alternateEmail2117741463'; + $domain2 = 'domain21129430903'; + $cloudIdentityId = 'cloudIdentityId-466684622'; + $languageCode = 'languageCode-412800396'; + $channelPartnerId2 = 'channelPartnerId22065842401'; + $correlationId = 'correlationId2055329016'; + $expectedResponse = new Customer(); + $expectedResponse->setName($name); + $expectedResponse->setOrgDisplayName($orgDisplayName); + $expectedResponse->setAlternateEmail($alternateEmail); + $expectedResponse->setDomain($domain2); + $expectedResponse->setCloudIdentityId($cloudIdentityId); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setChannelPartnerId($channelPartnerId2); + $expectedResponse->setCorrelationId($correlationId); + $transport->addResponse($expectedResponse); + // Mock request + $domain = 'domain-1326197564'; + $parent = 'parent-995424086'; + $overwriteIfExists = true; + $request = (new ImportCustomerRequest()) + ->setDomain($domain) + ->setParent($parent) + ->setOverwriteIfExists($overwriteIfExists); + $response = $gapicClient->importCustomer($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.channel.v1.CloudChannelService/ImportCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getDomain(); + $this->assertProtobufEquals($domain, $actualValue); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getOverwriteIfExists(); + $this->assertProtobufEquals($overwriteIfExists, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $domain = 'domain-1326197564'; + $parent = 'parent-995424086'; + $overwriteIfExists = true; + $request = (new ImportCustomerRequest()) + ->setDomain($domain) + ->setParent($parent) + ->setOverwriteIfExists($overwriteIfExists); + try { + $gapicClient->importCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelPartnerLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $channelPartnerLinksElement = new ChannelPartnerLink(); + $channelPartnerLinks = [ + $channelPartnerLinksElement, + ]; + $expectedResponse = new ListChannelPartnerLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChannelPartnerLinks($channelPartnerLinks); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListChannelPartnerLinksRequest()) + ->setParent($parent); + $response = $gapicClient->listChannelPartnerLinks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChannelPartnerLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListChannelPartnerLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelPartnerLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 ListChannelPartnerLinksRequest()) + ->setParent($parent); + try { + $gapicClient->listChannelPartnerLinks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelPartnerRepricingConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $channelPartnerRepricingConfigsElement = new ChannelPartnerRepricingConfig(); + $channelPartnerRepricingConfigs = [ + $channelPartnerRepricingConfigsElement, + ]; + $expectedResponse = new ListChannelPartnerRepricingConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChannelPartnerRepricingConfigs($channelPartnerRepricingConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->channelPartnerLinkName('[ACCOUNT]', '[CHANNEL_PARTNER_LINK]'); + $request = (new ListChannelPartnerRepricingConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listChannelPartnerRepricingConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChannelPartnerRepricingConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListChannelPartnerRepricingConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelPartnerRepricingConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->channelPartnerLinkName('[ACCOUNT]', '[CHANNEL_PARTNER_LINK]'); + $request = (new ListChannelPartnerRepricingConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listChannelPartnerRepricingConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomerRepricingConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customerRepricingConfigsElement = new CustomerRepricingConfig(); + $customerRepricingConfigs = [ + $customerRepricingConfigsElement, + ]; + $expectedResponse = new ListCustomerRepricingConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomerRepricingConfigs($customerRepricingConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListCustomerRepricingConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomerRepricingConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomerRepricingConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListCustomerRepricingConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomerRepricingConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListCustomerRepricingConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomerRepricingConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customersElement = new Customer(); + $customers = [ + $customersElement, + ]; + $expectedResponse = new ListCustomersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomers($customers); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListCustomersRequest()) + ->setParent($parent); + $response = $gapicClient->listCustomers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListCustomers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 ListCustomersRequest()) + ->setParent($parent); + try { + $gapicClient->listCustomers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entitlementChangesElement = new EntitlementChange(); + $entitlementChanges = [ + $entitlementChangesElement, + ]; + $expectedResponse = new ListEntitlementChangesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntitlementChanges($entitlementChanges); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new ListEntitlementChangesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntitlementChanges($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntitlementChanges()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListEntitlementChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new ListEntitlementChangesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntitlementChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entitlementsElement = new Entitlement(); + $entitlements = [ + $entitlementsElement, + ]; + $expectedResponse = new ListEntitlementsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntitlements($entitlements); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListEntitlementsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntitlements($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntitlements()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListEntitlements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListEntitlementsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntitlements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOffersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $offersElement = new Offer(); + $offers = [ + $offersElement, + ]; + $expectedResponse = new ListOffersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOffers($offers); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListOffersRequest()) + ->setParent($parent); + $response = $gapicClient->listOffers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOffers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListOffers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOffersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 ListOffersRequest()) + ->setParent($parent); + try { + $gapicClient->listOffers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProductsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $productsElement = new Product(); + $products = [ + $productsElement, + ]; + $expectedResponse = new ListProductsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProducts($products); + $transport->addResponse($expectedResponse); + // Mock request + $account = 'account-1177318867'; + $request = (new ListProductsRequest()) + ->setAccount($account); + $response = $gapicClient->listProducts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProducts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListProducts', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProductsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = 'account-1177318867'; + $request = (new ListProductsRequest()) + ->setAccount($account); + try { + $gapicClient->listProducts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPurchasableOffersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $purchasableOffersElement = new PurchasableOffer(); + $purchasableOffers = [ + $purchasableOffersElement, + ]; + $expectedResponse = new ListPurchasableOffersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPurchasableOffers($purchasableOffers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListPurchasableOffersRequest()) + ->setCustomer($formattedCustomer); + $response = $gapicClient->listPurchasableOffers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPurchasableOffers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListPurchasableOffers', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomer(); + $this->assertProtobufEquals($formattedCustomer, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPurchasableOffersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListPurchasableOffersRequest()) + ->setCustomer($formattedCustomer); + try { + $gapicClient->listPurchasableOffers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPurchasableSkusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $purchasableSkusElement = new PurchasableSku(); + $purchasableSkus = [ + $purchasableSkusElement, + ]; + $expectedResponse = new ListPurchasableSkusResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPurchasableSkus($purchasableSkus); + $transport->addResponse($expectedResponse); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListPurchasableSkusRequest()) + ->setCustomer($formattedCustomer); + $response = $gapicClient->listPurchasableSkus($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPurchasableSkus()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListPurchasableSkus', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomer(); + $this->assertProtobufEquals($formattedCustomer, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPurchasableSkusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ListPurchasableSkusRequest()) + ->setCustomer($formattedCustomer); + try { + $gapicClient->listPurchasableSkus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkuGroupBillableSkusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $billableSkusElement = new BillableSku(); + $billableSkus = [ + $billableSkusElement, + ]; + $expectedResponse = new ListSkuGroupBillableSkusResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setBillableSkus($billableSkus); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->skuGroupName('[ACCOUNT]', '[SKU_GROUP]'); + $request = (new ListSkuGroupBillableSkusRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSkuGroupBillableSkus($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBillableSkus()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListSkuGroupBillableSkus', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkuGroupBillableSkusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->skuGroupName('[ACCOUNT]', '[SKU_GROUP]'); + $request = (new ListSkuGroupBillableSkusRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSkuGroupBillableSkus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkuGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $skuGroupsElement = new SkuGroup(); + $skuGroups = [ + $skuGroupsElement, + ]; + $expectedResponse = new ListSkuGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSkuGroups($skuGroups); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListSkuGroupsRequest()) + ->setParent($parent); + $response = $gapicClient->listSkuGroups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSkuGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListSkuGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkuGroupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 ListSkuGroupsRequest()) + ->setParent($parent); + try { + $gapicClient->listSkuGroups($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $skusElement = new Sku(); + $skus = [ + $skusElement, + ]; + $expectedResponse = new ListSkusResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSkus($skus); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->productName('[PRODUCT]'); + $account = 'account-1177318867'; + $request = (new ListSkusRequest()) + ->setParent($formattedParent) + ->setAccount($account); + $response = $gapicClient->listSkus($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSkus()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListSkus', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSkusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->productName('[PRODUCT]'); + $account = 'account-1177318867'; + $request = (new ListSkusRequest()) + ->setParent($formattedParent) + ->setAccount($account); + try { + $gapicClient->listSkus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSubscribersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $topic = 'topic110546223'; + $nextPageToken = ''; + $serviceAccountsElement = 'serviceAccountsElement651196397'; + $serviceAccounts = [ + $serviceAccountsElement, + ]; + $expectedResponse = new ListSubscribersResponse(); + $expectedResponse->setTopic($topic); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setServiceAccounts($serviceAccounts); + $transport->addResponse($expectedResponse); + // Mock request + $account = 'account-1177318867'; + $request = (new ListSubscribersRequest()) + ->setAccount($account); + $response = $gapicClient->listSubscribers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getServiceAccounts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListSubscribers', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSubscribersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = 'account-1177318867'; + $request = (new ListSubscribersRequest()) + ->setAccount($account); + try { + $gapicClient->listSubscribers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTransferableOffersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $transferableOffersElement = new TransferableOffer(); + $transferableOffers = [ + $transferableOffersElement, + ]; + $expectedResponse = new ListTransferableOffersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTransferableOffers($transferableOffers); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $sku = 'sku113949'; + $request = (new ListTransferableOffersRequest()) + ->setParent($parent) + ->setSku($sku); + $response = $gapicClient->listTransferableOffers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTransferableOffers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListTransferableOffers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getSku(); + $this->assertProtobufEquals($sku, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTransferableOffersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $sku = 'sku113949'; + $request = (new ListTransferableOffersRequest()) + ->setParent($parent) + ->setSku($sku); + try { + $gapicClient->listTransferableOffers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTransferableSkusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $transferableSkusElement = new TransferableSku(); + $transferableSkus = [ + $transferableSkusElement, + ]; + $expectedResponse = new ListTransferableSkusResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTransferableSkus($transferableSkus); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListTransferableSkusRequest()) + ->setParent($parent); + $response = $gapicClient->listTransferableSkus($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTransferableSkus()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.channel.v1.CloudChannelService/ListTransferableSkus', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTransferableSkusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 ListTransferableSkusRequest()) + ->setParent($parent); + try { + $gapicClient->listTransferableSkus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupOfferTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $dealCode = 'dealCode-1350349344'; + $expectedResponse = new Offer(); + $expectedResponse->setName($name); + $expectedResponse->setDealCode($dealCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedEntitlement = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new LookupOfferRequest()) + ->setEntitlement($formattedEntitlement); + $response = $gapicClient->lookupOffer($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.channel.v1.CloudChannelService/LookupOffer', $actualFuncCall); + $actualValue = $actualRequestObject->getEntitlement(); + $this->assertProtobufEquals($formattedEntitlement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupOfferExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedEntitlement = $gapicClient->entitlementName('[ACCOUNT]', '[CUSTOMER]', '[ENTITLEMENT]'); + $request = (new LookupOfferRequest()) + ->setEntitlement($formattedEntitlement); + try { + $gapicClient->lookupOffer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionCloudIdentityTest() + { + $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/provisionCloudIdentityTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $orgDisplayName = 'orgDisplayName-1793830557'; + $alternateEmail = 'alternateEmail2117741463'; + $domain = 'domain-1326197564'; + $cloudIdentityId = 'cloudIdentityId-466684622'; + $languageCode = 'languageCode-412800396'; + $channelPartnerId = 'channelPartnerId-1897289554'; + $correlationId = 'correlationId2055329016'; + $expectedResponse = new Customer(); + $expectedResponse->setName($name); + $expectedResponse->setOrgDisplayName($orgDisplayName); + $expectedResponse->setAlternateEmail($alternateEmail); + $expectedResponse->setDomain($domain); + $expectedResponse->setCloudIdentityId($cloudIdentityId); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setChannelPartnerId($channelPartnerId); + $expectedResponse->setCorrelationId($correlationId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/provisionCloudIdentityTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ProvisionCloudIdentityRequest()) + ->setCustomer($formattedCustomer); + $response = $gapicClient->provisionCloudIdentity($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.channel.v1.CloudChannelService/ProvisionCloudIdentity', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getCustomer(); + $this->assertProtobufEquals($formattedCustomer, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/provisionCloudIdentityTest'); + $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 provisionCloudIdentityExceptionTest() + { + $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/provisionCloudIdentityTest'); + $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 + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $request = (new ProvisionCloudIdentityRequest()) + ->setCustomer($formattedCustomer); + $response = $gapicClient->provisionCloudIdentity($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/provisionCloudIdentityTest'); + 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 queryEligibleBillingAccountsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new QueryEligibleBillingAccountsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $skus = []; + $request = (new QueryEligibleBillingAccountsRequest()) + ->setCustomer($formattedCustomer) + ->setSkus($skus); + $response = $gapicClient->queryEligibleBillingAccounts($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.channel.v1.CloudChannelService/QueryEligibleBillingAccounts', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomer(); + $this->assertProtobufEquals($formattedCustomer, $actualValue); + $actualValue = $actualRequestObject->getSkus(); + $this->assertProtobufEquals($skus, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryEligibleBillingAccountsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedCustomer = $gapicClient->customerName('[ACCOUNT]', '[CUSTOMER]'); + $skus = []; + $request = (new QueryEligibleBillingAccountsRequest()) + ->setCustomer($formattedCustomer) + ->setSkus($skus); + try { + $gapicClient->queryEligibleBillingAccounts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function registerSubscriberTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $topic = 'topic110546223'; + $expectedResponse = new RegisterSubscriberResponse(); + $expectedResponse->setTopic($topic); + $transport->addResponse($expectedResponse); + // Mock request + $account = 'account-1177318867'; + $serviceAccount = 'serviceAccount-1948028253'; + $request = (new RegisterSubscriberRequest()) + ->setAccount($account) + ->setServiceAccount($serviceAccount); + $response = $gapicClient->registerSubscriber($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.channel.v1.CloudChannelService/RegisterSubscriber', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $actualValue = $actualRequestObject->getServiceAccount(); + $this->assertProtobufEquals($serviceAccount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function registerSubscriberExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = 'account-1177318867'; + $serviceAccount = 'serviceAccount-1948028253'; + $request = (new RegisterSubscriberRequest()) + ->setAccount($account) + ->setServiceAccount($serviceAccount); + try { + $gapicClient->registerSubscriber($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startPaidServiceTest() + { + $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/startPaidServiceTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/startPaidServiceTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new StartPaidServiceRequest()) + ->setName($name); + $response = $gapicClient->startPaidService($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.channel.v1.CloudChannelService/StartPaidService', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/startPaidServiceTest'); + $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 startPaidServiceExceptionTest() + { + $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/startPaidServiceTest'); + $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 + $name = 'name3373707'; + $request = (new StartPaidServiceRequest()) + ->setName($name); + $response = $gapicClient->startPaidService($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/startPaidServiceTest'); + 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 suspendEntitlementTest() + { + $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/suspendEntitlementTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/suspendEntitlementTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new SuspendEntitlementRequest()) + ->setName($name); + $response = $gapicClient->suspendEntitlement($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.channel.v1.CloudChannelService/SuspendEntitlement', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/suspendEntitlementTest'); + $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 suspendEntitlementExceptionTest() + { + $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/suspendEntitlementTest'); + $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 + $name = 'name3373707'; + $request = (new SuspendEntitlementRequest()) + ->setName($name); + $response = $gapicClient->suspendEntitlement($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/suspendEntitlementTest'); + 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 transferEntitlementsTest() + { + $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/transferEntitlementsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new TransferEntitlementsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/transferEntitlementsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $parent = 'parent-995424086'; + $entitlements = []; + $request = (new TransferEntitlementsRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + $response = $gapicClient->transferEntitlements($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.channel.v1.CloudChannelService/TransferEntitlements', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualApiRequestObject->getEntitlements(); + $this->assertProtobufEquals($entitlements, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/transferEntitlementsTest'); + $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 transferEntitlementsExceptionTest() + { + $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/transferEntitlementsTest'); + $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'; + $entitlements = []; + $request = (new TransferEntitlementsRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + $response = $gapicClient->transferEntitlements($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/transferEntitlementsTest'); + 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 transferEntitlementsToGoogleTest() + { + $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/transferEntitlementsToGoogleTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/transferEntitlementsToGoogleTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $parent = 'parent-995424086'; + $entitlements = []; + $request = (new TransferEntitlementsToGoogleRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + $response = $gapicClient->transferEntitlementsToGoogle($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.channel.v1.CloudChannelService/TransferEntitlementsToGoogle', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualApiRequestObject->getEntitlements(); + $this->assertProtobufEquals($entitlements, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/transferEntitlementsToGoogleTest'); + $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 transferEntitlementsToGoogleExceptionTest() + { + $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/transferEntitlementsToGoogleTest'); + $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'; + $entitlements = []; + $request = (new TransferEntitlementsToGoogleRequest()) + ->setParent($parent) + ->setEntitlements($entitlements); + $response = $gapicClient->transferEntitlementsToGoogle($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/transferEntitlementsToGoogleTest'); + 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 unregisterSubscriberTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $topic = 'topic110546223'; + $expectedResponse = new UnregisterSubscriberResponse(); + $expectedResponse->setTopic($topic); + $transport->addResponse($expectedResponse); + // Mock request + $account = 'account-1177318867'; + $serviceAccount = 'serviceAccount-1948028253'; + $request = (new UnregisterSubscriberRequest()) + ->setAccount($account) + ->setServiceAccount($serviceAccount); + $response = $gapicClient->unregisterSubscriber($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.channel.v1.CloudChannelService/UnregisterSubscriber', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $actualValue = $actualRequestObject->getServiceAccount(); + $this->assertProtobufEquals($serviceAccount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function unregisterSubscriberExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = 'account-1177318867'; + $serviceAccount = 'serviceAccount-1948028253'; + $request = (new UnregisterSubscriberRequest()) + ->setAccount($account) + ->setServiceAccount($serviceAccount); + try { + $gapicClient->unregisterSubscriber($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelPartnerLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resellerCloudIdentityId = 'resellerCloudIdentityId1410814373'; + $inviteLinkUri = 'inviteLinkUri633336861'; + $publicId = 'publicId1446918833'; + $expectedResponse = new ChannelPartnerLink(); + $expectedResponse->setName($name2); + $expectedResponse->setResellerCloudIdentityId($resellerCloudIdentityId); + $expectedResponse->setInviteLinkUri($inviteLinkUri); + $expectedResponse->setPublicId($publicId); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $channelPartnerLink = new ChannelPartnerLink(); + $channelPartnerLinkResellerCloudIdentityId = 'channelPartnerLinkResellerCloudIdentityId-321778211'; + $channelPartnerLink->setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId); + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + $channelPartnerLink->setLinkState($channelPartnerLinkLinkState); + $updateMask = new FieldMask(); + $request = (new UpdateChannelPartnerLinkRequest()) + ->setName($name) + ->setChannelPartnerLink($channelPartnerLink) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateChannelPartnerLink($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.channel.v1.CloudChannelService/UpdateChannelPartnerLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getChannelPartnerLink(); + $this->assertProtobufEquals($channelPartnerLink, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelPartnerLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $channelPartnerLink = new ChannelPartnerLink(); + $channelPartnerLinkResellerCloudIdentityId = 'channelPartnerLinkResellerCloudIdentityId-321778211'; + $channelPartnerLink->setResellerCloudIdentityId($channelPartnerLinkResellerCloudIdentityId); + $channelPartnerLinkLinkState = ChannelPartnerLinkState::CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED; + $channelPartnerLink->setLinkState($channelPartnerLinkLinkState); + $updateMask = new FieldMask(); + $request = (new UpdateChannelPartnerLinkRequest()) + ->setName($name) + ->setChannelPartnerLink($channelPartnerLink) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateChannelPartnerLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelPartnerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new ChannelPartnerRepricingConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $channelPartnerRepricingConfig = new ChannelPartnerRepricingConfig(); + $channelPartnerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $channelPartnerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $channelPartnerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $channelPartnerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $channelPartnerRepricingConfig->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new UpdateChannelPartnerRepricingConfigRequest()) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + $response = $gapicClient->updateChannelPartnerRepricingConfig($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.channel.v1.CloudChannelService/UpdateChannelPartnerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getChannelPartnerRepricingConfig(); + $this->assertProtobufEquals($channelPartnerRepricingConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelPartnerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $channelPartnerRepricingConfig = new ChannelPartnerRepricingConfig(); + $channelPartnerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $channelPartnerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $channelPartnerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $channelPartnerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $channelPartnerRepricingConfig->setRepricingConfig($channelPartnerRepricingConfigRepricingConfig); + $request = (new UpdateChannelPartnerRepricingConfigRequest()) + ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig); + try { + $gapicClient->updateChannelPartnerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $orgDisplayName = 'orgDisplayName-1793830557'; + $alternateEmail = 'alternateEmail2117741463'; + $domain = 'domain-1326197564'; + $cloudIdentityId = 'cloudIdentityId-466684622'; + $languageCode = 'languageCode-412800396'; + $channelPartnerId = 'channelPartnerId-1897289554'; + $correlationId = 'correlationId2055329016'; + $expectedResponse = new Customer(); + $expectedResponse->setName($name); + $expectedResponse->setOrgDisplayName($orgDisplayName); + $expectedResponse->setAlternateEmail($alternateEmail); + $expectedResponse->setDomain($domain); + $expectedResponse->setCloudIdentityId($cloudIdentityId); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setChannelPartnerId($channelPartnerId); + $expectedResponse->setCorrelationId($correlationId); + $transport->addResponse($expectedResponse); + // Mock request + $customer = new Customer(); + $customerOrgDisplayName = 'customerOrgDisplayName1748404327'; + $customer->setOrgDisplayName($customerOrgDisplayName); + $customerOrgPostalAddress = new PostalAddress(); + $customer->setOrgPostalAddress($customerOrgPostalAddress); + $customerDomain = 'customerDomain1489396290'; + $customer->setDomain($customerDomain); + $request = (new UpdateCustomerRequest()) + ->setCustomer($customer); + $response = $gapicClient->updateCustomer($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.channel.v1.CloudChannelService/UpdateCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomer(); + $this->assertProtobufEquals($customer, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $customer = new Customer(); + $customerOrgDisplayName = 'customerOrgDisplayName1748404327'; + $customer->setOrgDisplayName($customerOrgDisplayName); + $customerOrgPostalAddress = new PostalAddress(); + $customer->setOrgPostalAddress($customerOrgPostalAddress); + $customerDomain = 'customerDomain1489396290'; + $customer->setDomain($customerDomain); + $request = (new UpdateCustomerRequest()) + ->setCustomer($customer); + try { + $gapicClient->updateCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomerRepricingConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new CustomerRepricingConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $customerRepricingConfig = new CustomerRepricingConfig(); + $customerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $customerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $customerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $customerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $customerRepricingConfig->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new UpdateCustomerRepricingConfigRequest()) + ->setCustomerRepricingConfig($customerRepricingConfig); + $response = $gapicClient->updateCustomerRepricingConfig($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.channel.v1.CloudChannelService/UpdateCustomerRepricingConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomerRepricingConfig(); + $this->assertProtobufEquals($customerRepricingConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomerRepricingConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $customerRepricingConfig = new CustomerRepricingConfig(); + $customerRepricingConfigRepricingConfig = new RepricingConfig(); + $repricingConfigEffectiveInvoiceMonth = new Date(); + $customerRepricingConfigRepricingConfig->setEffectiveInvoiceMonth($repricingConfigEffectiveInvoiceMonth); + $repricingConfigAdjustment = new RepricingAdjustment(); + $customerRepricingConfigRepricingConfig->setAdjustment($repricingConfigAdjustment); + $repricingConfigRebillingBasis = RebillingBasis::REBILLING_BASIS_UNSPECIFIED; + $customerRepricingConfigRepricingConfig->setRebillingBasis($repricingConfigRebillingBasis); + $customerRepricingConfig->setRepricingConfig($customerRepricingConfigRepricingConfig); + $request = (new UpdateCustomerRepricingConfigRequest()) + ->setCustomerRepricingConfig($customerRepricingConfig); + try { + $gapicClient->updateCustomerRepricingConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function activateEntitlementAsyncTest() + { + $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/activateEntitlementTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $offer = 'offer105650780'; + $purchaseOrderId = 'purchaseOrderId548224298'; + $billingAccount = 'billingAccount-545871767'; + $expectedResponse = new Entitlement(); + $expectedResponse->setName($name2); + $expectedResponse->setOffer($offer); + $expectedResponse->setPurchaseOrderId($purchaseOrderId); + $expectedResponse->setBillingAccount($billingAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/activateEntitlementTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new ActivateEntitlementRequest()) + ->setName($name); + $response = $gapicClient->activateEntitlementAsync($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.channel.v1.CloudChannelService/ActivateEntitlement', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/activateEntitlementTest'); + $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/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/LicenseManagementService.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/LicenseManagementService.php new file mode 100644 index 0000000000000000000000000000000000000000..35aced28e7f0829a92dadae768219623ba3feed1 GIT binary patch literal 4558 zcmb_gPjAy^7@t#y;4OpJu(kxjybOs_QAa5|xh>$f&@oYnpsgkr$$I0wNv%4zv0oP$ z%4IuF+JQ+s>V9-rt(k1~d?^Vja=aL{HP8$cf#qT-^iTB{H z$)OPnaGN9%c8RfGUD+TMH!#Jub&gV7Whk{(i2@e_rB>~t)V3>&2)RB^662mg+sMEk z2`uyi8SodSb@0bXD5mi5vX?ks;873z-ZzkuWuuAxgn+Sr*=8EJ)C&WHDLe>VGJDk! zHks_@D1;0y8_H|&j)suX+TDPXIKX~wjU;aDMKp}7AZl4HLbFn^JF{0MEHmddjalKN zW%W6^Y|uC*d33{w2~Fc*k^9XIbh4}3fSlTqSF?j4WLbcGT2?ovu8G4GSA7pEJDScN zkNAxhvV-@$Fdj|yA(3r2w3Aux*HUP72yl47OqDylfs@@M=x%z@&J?$!!MeOv=5Khi zG3-Vo>w`Nmce7dLSRJpRR~OLz_d9Uu=$DL#bk^vUZ>=$sc|V7fixDCVZrpV7FF z=ar8t>86^om9c+pZDkUjIgr%Sn*th_q|9hepG3zP-*bZ}nbrw?7hO!ML=i|EHjnEC#fX=Wwe8{B6bOW8GK#zWw10iuNldyi)UfVxu zXpy_4W=M??_?}IW=q4DRgpFD`pNpls=lfpJvR!UIDZh|694zj1%3<6fF+AY^JL+Z1 zGC6ljCXM|_7RGbGN^|JrbwYDc56P1hNU1;jh0-q?n%Rorl}iT5Zy|-^L;xe(z#6d@ zIm4m|pQG`VL&8>&?8*ukmDQ}dG8X1qr6u%{=x!CwS#&(YF${ONn+p0AI+?PwphUA!HzHK?1<#um7fybU3O<;Y23 z4dL0~ZK&zf2=V(g+$90;Pacd`da0pPGOOIYK7mfCs6{e#$gzmcVZ?Z7jZA$ti0cZ1>aS0)Zs`XNT{fV4Oh@U~zRl_J+du#Pv2b0l zum$=BYvtvGR57QhVJ=S!9sTh+}&Q=rI#6K8Sxh}x1CzS_4Z1XW#AW18@gZaDU>ysABZB*%7X*AkY6`|p6zDal~+o>CQll=M-APxhMvO)IBj@cSP&qV w#Zlm&gke_#$Fg!jmbG1}9|uQic>PNDfp<-O$mhQM5B=unlH%LEgE|QP4=IX5a{vGU literal 0 HcmV?d00001 diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/GPBMetadata/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php new file mode 100644 index 0000000000000000000000000000000000000000..cb132f25167ab89b3ae1604fbbba91c4279a446b GIT binary patch literal 4226 zcmcgvL37(w5U%YcO*SDD9xdaBG8Ji|N!r-hZ7Fp~LAKS@jAIMiHEl7YQKT0~gCc1p zIZWu}&T!*bFvFP{uAJe*jcd=na)S%|-ji&HI3Z~|j7-EZH1yKmp_M<09J9$b~y zsY87|q^7jFCxzQo@_aXR4cC@7ds|!7mkf8uvux^TB&l4NYW0?+lq;=wP&IISzCjC8 z*LAx#%^J4bGqWhZLvb4yPSC?;76FZ(Pj{#jW_NR0*EbQ2TLEzN9U6GLL8W!IxIshR z)I+_q&H+0m2G}V@fVdEV9d!WMY3Eh}3|kKZsm_4m8A$l&^)_wGkb+PT@#mTqXqIDz zmTp_$pr>onmTm_WH4n>f^&BI#Tt{LGb;qEKOOn83ve!HpnOT$KBjQm)7m4aroRIpC zZgUDdYX|{uwTd)+~I+Y;~0l=IEsQe z3}C>*ofQ#zf77y&h^}lHZqEsW?6YV?)5XrdC{6f*m#F=PpOY{dv&y2^r%|)a;lMtI z*`ZI)mYYs;=T>7%PL_H72v!gxj^eCG9TQKj8QZ$krRfw$UVBO85(nvH3rua>3b0)5 zrN?+~yaMcnKgMA;W=_~7Z^Be$?jU(zU^4MjY2ltnIdijl`Aq(`5QzDhB%KZr*B-h6 z_zYlp1c_%4&*wlK`t{&?3G}fu2cLWiGZ885b)e~Sgq+P6&%{cTA&JmqE^}NBZ*kx{ zSaAA9DuDE`gZZk$eW=={~*|*g^#9 zDSit-JSEF&48S6sAZ?6rZ&P$4*vzC^=%(|h&G_aJ1kap>UlK6YH$|{G4<0$P0pq*6 z-4l0sI)DFVJ;<~f%6uEf`GQ=8X>1fexUC6vc6n0|&tXBqB=%Wp6#MMjO^JQe#rBUz z`|R!{9-b>sz}Q!oV=jD$0UUOWWB~9s_@Q{sL~S@G<;YE##F{Lm+4Fwv+ea?L1-%!# zc#*JF=(a{39nWU+LN~emdjd$DO(k9i*{vY&!aLPUP0=bXWkV}HlxypX)_S5U+M`-i zRZ5iy6{S3Pj!1BMv{VP^(G{rBcU0HIz@45)&Fb21+iOjT4&6@N-W4vXXI%7dDC+7xY6+!bSE*LDA6+{8kQ6X#HC=xweZ`0vN$ z$~qr5GbJ``W=hepiHm4DP=}_2cJ9|$z7tKSgYk4QpB@-caYB8O%nKuh0=I%ckr}oU zb_#_dLxln=$=@eV^N1`3)ZeuXitTH(+RtKHb4=Yg>+G3feJ%UlC-)9@!f_L=9d3ya lsBTUmd!c*ldVfH>DTdUcnU-}HmN8NSU!*6Xpeu-;jA z#|fdz0iFQF190a7cmR+UY@!OD2zl0!guZ1HWu;wS zCCuts%raI4yiwusMkRuWgM>HQ6L@2zxP*}HT4AUpuGb|O^av^N=a0IsV=E!E82r28 zgr?&;%&}bOD=@;c(zo1@0L($!{>ZbLLp_B*Xn8i7zpY42PJ6?rV6K>*5^0#wtRZWZS)MSLyaffVMBmFYP5dg4Q$d(Z4f?u!U6CkTSb zN71Kuqff`I36wh`dU`#2>Q1a(pkr%GqWnJ@G}CsWQV18WkuOFhWVno`d@BGAav3Ev zf2Le|qG$ip@1O-CM%Qs&aGfggLEVrWr%;yHx^2^u$M9uzuIGflYwei49Ob42(g{Gq zAERjiAg05}5Q;{h=8$q?{%mO}f;^_h)dqmn0izBOWkAm0O9%y02h-{0UXEF2@~bK>PraEb6Vn(8|)6tmn({yQHcoMaIC5McyY(Ufp!2u|SExtr2DLM^b!d5?U_ z%!CkJurv8@Pa?cZdrp7n2>tPA=#?QSbZnWZ;7Tq}Go?HSnW^F`f|U+@I%-aFS>-42 z40N)Aw3)b?`y-3aB{6u=B_gXAg|G0ZrI5l9^X;(}zc zVIb_0Z8O1~hc$QiiwNsJx@e6UH6bO*w&jlNhp@$Tshm;^9kA9URNP2}J@XgQY{E<9 zH2F1)aK(Z??H&~>v5!QENw;mGSzEkyMf8|Hg{fgjm}a`vNh$e3DO7nS!P^2`>hfJC z7CQM2Uq`Q3^k${jXy~1Kt7*1dje6yw`JlPpu2t&y>$U2Im+%65<1iw5XVzC&VRF+u zwZ_8>nImZRj@hZLt(vuF^+J~0H=#jn--WL;X!a1F;G5{0{-Dz`*J{n$M|#67*FMxY z>aDe>q*c(B!^vt*z1*mQjMvcB!zrrubwQFXJvoi$;!*J6$cKN)AT%kU_=A*wn>>x` z=iJp8A<>@H@i36@?CGzeQ?i5|Qn|nR>+kQgZ{^?QbMPbCs+Oa+6!o95u&`U8yd8!b zG$9zTGYj~q3_2Ybe0(pK;CTIAjUUDuJXbx=-+io$1|u{uZsD6k1>SNFDiFyJn&98T z{*xY&+WwQLvGnOH-=qV|29H`;|G$ANaQnI-967IIS#+x3M}$gww{JekBg4 z!%Cb`pqRgNEN5s#(KdNNaZM5#om!K`+vm|F@jNaj=`^uLWd=>=>^)sBp7ER;kGaVy zcmKrqr><@?=7(CLu)VzZgod>#5f>r51pIV~*Uo&hE>l#p7sKX& z9KukpKVy literal 0 HcmV?d00001 diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignRequest.php new file mode 100644 index 000000000000..7cad3988cfd4 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignRequest.php @@ -0,0 +1,122 @@ +google.cloud.commerce.consumer.procurement.v1.AssignRequest + */ +class AssignRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $usernames; + + /** + * @param string $parent Required. License pool name. + * @param string[] $usernames Required. Username. + * Format: `name@domain.com`. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignRequest + * + * @experimental + */ + public static function build(string $parent, array $usernames): self + { + return (new self()) + ->setParent($parent) + ->setUsernames($usernames); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. License pool name. + * @type array|\Google\Protobuf\Internal\RepeatedField $usernames + * Required. Username. + * Format: `name@domain.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. License pool name. + * + * 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. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUsernames() + { + return $this->usernames; + } + + /** + * Required. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUsernames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->usernames = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignResponse.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignResponse.php new file mode 100644 index 000000000000..8dc2ea6b662b --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignResponse.php @@ -0,0 +1,34 @@ +google.cloud.commerce.consumer.procurement.v1.AssignResponse + */ +class AssignResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol.php new file mode 100644 index 000000000000..1d068020ee10 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol.php @@ -0,0 +1,108 @@ +google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol + */ +class AssignmentProtocol extends \Google\Protobuf\Internal\Message +{ + protected $assignment_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\ManualAssignmentType $manual_assignment_type + * Allow manual assignments triggered by administrative operations only. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\AutoAssignmentType $auto_assignment_type + * Allow automatic assignments triggered by data plane operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Allow manual assignments triggered by administrative operations only. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType manual_assignment_type = 2; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\ManualAssignmentType|null + */ + public function getManualAssignmentType() + { + return $this->readOneof(2); + } + + public function hasManualAssignmentType() + { + return $this->hasOneof(2); + } + + /** + * Allow manual assignments triggered by administrative operations only. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType manual_assignment_type = 2; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\ManualAssignmentType $var + * @return $this + */ + public function setManualAssignmentType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\ManualAssignmentType::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Allow automatic assignments triggered by data plane operations. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType auto_assignment_type = 3; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\AutoAssignmentType|null + */ + public function getAutoAssignmentType() + { + return $this->readOneof(3); + } + + public function hasAutoAssignmentType() + { + return $this->hasOneof(3); + } + + /** + * Allow automatic assignments triggered by data plane operations. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType auto_assignment_type = 3; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\AutoAssignmentType $var + * @return $this + */ + public function setAutoAssignmentType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol\AutoAssignmentType::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getAssignmentType() + { + return $this->whichOneof("assignment_type"); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/AutoAssignmentType.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/AutoAssignmentType.php new file mode 100644 index 000000000000..9a2aab494570 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/AutoAssignmentType.php @@ -0,0 +1,88 @@ +google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType + */ +class AutoAssignmentType extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The time to live for an inactive license. After this time has + * passed, the license will be automatically unassigned from the user. Must + * be at least 7 days, if set. If unset, the license will never expire. + * + * Generated from protobuf field .google.protobuf.Duration inactive_license_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $inactive_license_ttl = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $inactive_license_ttl + * Optional. The time to live for an inactive license. After this time has + * passed, the license will be automatically unassigned from the user. Must + * be at least 7 days, if set. If unset, the license will never expire. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The time to live for an inactive license. After this time has + * passed, the license will be automatically unassigned from the user. Must + * be at least 7 days, if set. If unset, the license will never expire. + * + * Generated from protobuf field .google.protobuf.Duration inactive_license_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getInactiveLicenseTtl() + { + return $this->inactive_license_ttl; + } + + public function hasInactiveLicenseTtl() + { + return isset($this->inactive_license_ttl); + } + + public function clearInactiveLicenseTtl() + { + unset($this->inactive_license_ttl); + } + + /** + * Optional. The time to live for an inactive license. After this time has + * passed, the license will be automatically unassigned from the user. Must + * be at least 7 days, if set. If unset, the license will never expire. + * + * Generated from protobuf field .google.protobuf.Duration inactive_license_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setInactiveLicenseTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->inactive_license_ttl = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AutoAssignmentType::class, \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol_AutoAssignmentType::class); + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/ManualAssignmentType.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/ManualAssignmentType.php new file mode 100644 index 000000000000..b0f5d6947e90 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AssignmentProtocol/ManualAssignmentType.php @@ -0,0 +1,36 @@ +google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType + */ +class ManualAssignmentType extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ManualAssignmentType::class, \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol_ManualAssignmentType::class); + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AutoRenewalBehavior.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AutoRenewalBehavior.php new file mode 100644 index 000000000000..ac3e70593302 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/AutoRenewalBehavior.php @@ -0,0 +1,61 @@ +google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior + */ +class AutoRenewalBehavior +{ + /** + * If unspecified, the auto renewal behavior will follow the default config. + * + * Generated from protobuf enum AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED = 0; + */ + const AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED = 0; + /** + * Auto Renewal will be enabled on subscription. + * + * Generated from protobuf enum AUTO_RENEWAL_BEHAVIOR_ENABLE = 1; + */ + const AUTO_RENEWAL_BEHAVIOR_ENABLE = 1; + /** + * Auto Renewal will be disabled on subscription. + * + * Generated from protobuf enum AUTO_RENEWAL_BEHAVIOR_DISABLE = 2; + */ + const AUTO_RENEWAL_BEHAVIOR_DISABLE = 2; + + private static $valueToName = [ + self::AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED => 'AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED', + self::AUTO_RENEWAL_BEHAVIOR_ENABLE => 'AUTO_RENEWAL_BEHAVIOR_ENABLE', + self::AUTO_RENEWAL_BEHAVIOR_DISABLE => 'AUTO_RENEWAL_BEHAVIOR_DISABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderMetadata.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderMetadata.php new file mode 100644 index 000000000000..58e2200fed76 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderMetadata.php @@ -0,0 +1,34 @@ +google.cloud.commerce.consumer.procurement.v1.CancelOrderMetadata + */ +class CancelOrderMetadata extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest.php new file mode 100644 index 000000000000..bf6be9598319 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest.php @@ -0,0 +1,144 @@ +google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest + */ +class CancelOrderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the order. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. The weak etag, which can be optionally populated, of the order + * that this cancel request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Cancellation policy of this request. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cancellation_policy = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the order. + * @type string $etag + * Optional. The weak etag, which can be optionally populated, of the order + * that this cancel request is based on. Validation checking will only happen + * if the invoker supplies this field. + * @type int $cancellation_policy + * Optional. Cancellation policy of this request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the order. + * + * 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 order. + * + * 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 weak etag, which can be optionally populated, of the order + * that this cancel request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The weak etag, which can be optionally populated, of the order + * that this cancel request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * 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; + } + + /** + * Optional. Cancellation policy of this request. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCancellationPolicy() + { + return $this->cancellation_policy; + } + + /** + * Optional. Cancellation policy of this request. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCancellationPolicy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\CancelOrderRequest\CancellationPolicy::class); + $this->cancellation_policy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest/CancellationPolicy.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest/CancellationPolicy.php new file mode 100644 index 000000000000..ed1bf79f2b7e --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/CancelOrderRequest/CancellationPolicy.php @@ -0,0 +1,70 @@ +google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy + */ +class CancellationPolicy +{ + /** + * If unspecified, cancellation will try to cancel the order, if order + * cannot be immediately cancelled, auto renewal will be turned off. + * However, caller should avoid using the value as it will yield a + * non-deterministic result. This is still supported mainly to maintain + * existing integrated usages and ensure backwards compatibility. + * + * Generated from protobuf enum CANCELLATION_POLICY_UNSPECIFIED = 0; + */ + const CANCELLATION_POLICY_UNSPECIFIED = 0; + /** + * Request will cancel the whole order immediately, if order cannot be + * immediately cancelled, the request will fail. + * + * Generated from protobuf enum CANCELLATION_POLICY_CANCEL_IMMEDIATELY = 1; + */ + const CANCELLATION_POLICY_CANCEL_IMMEDIATELY = 1; + /** + * Request will cancel the auto renewal, if order is not subscription based, + * the request will fail. + * + * Generated from protobuf enum CANCELLATION_POLICY_CANCEL_AT_TERM_END = 2; + */ + const CANCELLATION_POLICY_CANCEL_AT_TERM_END = 2; + + private static $valueToName = [ + self::CANCELLATION_POLICY_UNSPECIFIED => 'CANCELLATION_POLICY_UNSPECIFIED', + self::CANCELLATION_POLICY_CANCEL_IMMEDIATELY => 'CANCELLATION_POLICY_CANCEL_IMMEDIATELY', + self::CANCELLATION_POLICY_CANCEL_AT_TERM_END => 'CANCELLATION_POLICY_CANCEL_AT_TERM_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(CancellationPolicy::class, \Google\Cloud\Commerce\Consumer\Procurement\V1\CancelOrderRequest_CancellationPolicy::class); + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersRequest.php new file mode 100644 index 000000000000..37bb56e1839a --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersRequest.php @@ -0,0 +1,157 @@ +google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersRequest + */ +class EnumerateLicensedUsersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The maximum number of users to return. The service may return + * fewer than this value. + * + * 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 `EnumerateLicensedUsers` + * 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. License pool name. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\EnumerateLicensedUsersRequest + * + * @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. License pool name. + * @type int $page_size + * Optional. The maximum number of users to return. The service may return + * fewer than this value. + * @type string $page_token + * Optional. A page token, received from a previous `EnumerateLicensedUsers` + * call. Provide this to retrieve the subsequent page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. License pool name. + * + * 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; + } + + /** + * Optional. The maximum number of users to return. The service may return + * fewer than this value. + * + * 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 users to return. The service may return + * fewer than this value. + * + * 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 `EnumerateLicensedUsers` + * 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 `EnumerateLicensedUsers` + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersResponse.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersResponse.php new file mode 100644 index 000000000000..ad994465605b --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/EnumerateLicensedUsersResponse.php @@ -0,0 +1,106 @@ +google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse + */ +class EnumerateLicensedUsersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of licensed users. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1; + */ + private $licensed_users; + /** + * 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\Commerce\Consumer\Procurement\V1\LicensedUser>|\Google\Protobuf\Internal\RepeatedField $licensed_users + * The list of licensed users. + * @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\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * The list of licensed users. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLicensedUsers() + { + return $this->licensed_users; + } + + /** + * The list of licensed users. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LicensedUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLicensedUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\LicensedUser::class); + $this->licensed_users = $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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetLicensePoolRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetLicensePoolRequest.php new file mode 100644 index 000000000000..23e2d4af8b0e --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetLicensePoolRequest.php @@ -0,0 +1,85 @@ +google.cloud.commerce.consumer.procurement.v1.GetLicensePoolRequest + */ +class GetLicensePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the license pool to get. + * Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the license pool to get. + * Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\GetLicensePoolRequest + * + * @experimental + */ + public static function 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 license pool to get. + * Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the license pool to get. + * Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * 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 license pool to get. + * Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetOrderRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetOrderRequest.php new file mode 100644 index 000000000000..943ba57e4de0 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/GetOrderRequest.php @@ -0,0 +1,81 @@ +google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + */ +class GetOrderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the order to retrieve. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the order to retrieve. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\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 name of the order to retrieve. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the order to retrieve. + * + * 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 order to retrieve. + * + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensePool.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensePool.php new file mode 100644 index 000000000000..cc37fd0582f8 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensePool.php @@ -0,0 +1,183 @@ +google.cloud.commerce.consumer.procurement.v1.LicensePool + */ +class LicensePool extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Assignment protocol for the license pool. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $license_assignment_protocol = null; + /** + * Output only. Licenses count that are available to be assigned. + * + * Generated from protobuf field int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $available_license_count = 0; + /** + * Output only. Total number of licenses in the pool. + * + * Generated from protobuf field int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_license_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool` + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol $license_assignment_protocol + * Required. Assignment protocol for the license pool. + * @type int $available_license_count + * Output only. Licenses count that are available to be assigned. + * @type int $total_license_count + * Output only. Total number of licenses in the pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool` + * + * 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. Assignment protocol for the license pool. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol|null + */ + public function getLicenseAssignmentProtocol() + { + return $this->license_assignment_protocol; + } + + public function hasLicenseAssignmentProtocol() + { + return isset($this->license_assignment_protocol); + } + + public function clearLicenseAssignmentProtocol() + { + unset($this->license_assignment_protocol); + } + + /** + * Required. Assignment protocol for the license pool. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol $var + * @return $this + */ + public function setLicenseAssignmentProtocol($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol::class); + $this->license_assignment_protocol = $var; + + return $this; + } + + /** + * Output only. Licenses count that are available to be assigned. + * + * Generated from protobuf field int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAvailableLicenseCount() + { + return $this->available_license_count; + } + + /** + * Output only. Licenses count that are available to be assigned. + * + * Generated from protobuf field int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAvailableLicenseCount($var) + { + GPBUtil::checkInt32($var); + $this->available_license_count = $var; + + return $this; + } + + /** + * Output only. Total number of licenses in the pool. + * + * Generated from protobuf field int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTotalLicenseCount() + { + return $this->total_license_count; + } + + /** + * Output only. Total number of licenses in the pool. + * + * Generated from protobuf field int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTotalLicenseCount($var) + { + GPBUtil::checkInt32($var); + $this->total_license_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensedUser.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensedUser.php new file mode 100644 index 000000000000..959c7b3cd26e --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LicensedUser.php @@ -0,0 +1,167 @@ +google.cloud.commerce.consumer.procurement.v1.LicensedUser + */ +class LicensedUser extends \Google\Protobuf\Internal\Message +{ + /** + * Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field string username = 1; + */ + protected $username = ''; + /** + * Output only. Timestamp when the license was assigned. + * + * Generated from protobuf field .google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $assign_time = null; + /** + * Output only. Timestamp when the license was recently used. This may not be + * the most recent usage time, and will be updated regularly (within 24 + * hours). + * + * Generated from protobuf field .google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $recent_usage_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Username. + * Format: `name@domain.com`. + * @type \Google\Protobuf\Timestamp $assign_time + * Output only. Timestamp when the license was assigned. + * @type \Google\Protobuf\Timestamp $recent_usage_time + * Output only. Timestamp when the license was recently used. This may not be + * the most recent usage time, and will be updated regularly (within 24 + * hours). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field string username = 1; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field string username = 1; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + + /** + * Output only. Timestamp when the license was assigned. + * + * Generated from protobuf field .google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getAssignTime() + { + return $this->assign_time; + } + + public function hasAssignTime() + { + return isset($this->assign_time); + } + + public function clearAssignTime() + { + unset($this->assign_time); + } + + /** + * Output only. Timestamp when the license was assigned. + * + * Generated from protobuf field .google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setAssignTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->assign_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when the license was recently used. This may not be + * the most recent usage time, and will be updated regularly (within 24 + * hours). + * + * Generated from protobuf field .google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRecentUsageTime() + { + return $this->recent_usage_time; + } + + public function hasRecentUsageTime() + { + return isset($this->recent_usage_time); + } + + public function clearRecentUsageTime() + { + unset($this->recent_usage_time); + } + + /** + * Output only. Timestamp when the license was recently used. This may not be + * the most recent usage time, and will be updated regularly (within 24 + * hours). + * + * Generated from protobuf field .google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRecentUsageTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->recent_usage_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItem.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItem.php new file mode 100644 index 000000000000..e712a3797887 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItem.php @@ -0,0 +1,213 @@ +google.cloud.commerce.consumer.procurement.v1.LineItem + */ +class LineItem extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Line item ID. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $line_item_id = ''; + /** + * Output only. Current state and information of this item. It tells what, + * e.g. which offer, is currently effective. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $line_item_info = null; + /** + * Output only. A change made on the item which is pending and not yet + * effective. Absence of this field indicates the line item is not undergoing + * a change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pending_change = null; + /** + * Output only. Changes made on the item that are not pending anymore which + * might be because they already took effect, were reverted by the customer, + * or were rejected by the partner. No more operations are allowed on these + * changes. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $change_history; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $line_item_id + * Output only. Line item ID. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $line_item_info + * Output only. Current state and information of this item. It tells what, + * e.g. which offer, is currently effective. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange $pending_change + * Output only. A change made on the item which is pending and not yet + * effective. Absence of this field indicates the line item is not undergoing + * a change. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange>|\Google\Protobuf\Internal\RepeatedField $change_history + * Output only. Changes made on the item that are not pending anymore which + * might be because they already took effect, were reverted by the customer, + * or were rejected by the partner. No more operations are allowed on these + * changes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Line item ID. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLineItemId() + { + return $this->line_item_id; + } + + /** + * Output only. Line item ID. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLineItemId($var) + { + GPBUtil::checkString($var, True); + $this->line_item_id = $var; + + return $this; + } + + /** + * Output only. Current state and information of this item. It tells what, + * e.g. which offer, is currently effective. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo|null + */ + public function getLineItemInfo() + { + return $this->line_item_info; + } + + public function hasLineItemInfo() + { + return isset($this->line_item_info); + } + + public function clearLineItemInfo() + { + unset($this->line_item_info); + } + + /** + * Output only. Current state and information of this item. It tells what, + * e.g. which offer, is currently effective. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $var + * @return $this + */ + public function setLineItemInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo::class); + $this->line_item_info = $var; + + return $this; + } + + /** + * Output only. A change made on the item which is pending and not yet + * effective. Absence of this field indicates the line item is not undergoing + * a change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange|null + */ + public function getPendingChange() + { + return $this->pending_change; + } + + public function hasPendingChange() + { + return isset($this->pending_change); + } + + public function clearPendingChange() + { + unset($this->pending_change); + } + + /** + * Output only. A change made on the item which is pending and not yet + * effective. Absence of this field indicates the line item is not undergoing + * a change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange $var + * @return $this + */ + public function setPendingChange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange::class); + $this->pending_change = $var; + + return $this; + } + + /** + * Output only. Changes made on the item that are not pending anymore which + * might be because they already took effect, were reverted by the customer, + * or were rejected by the partner. No more operations are allowed on these + * changes. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChangeHistory() + { + return $this->change_history; + } + + /** + * Output only. Changes made on the item that are not pending anymore which + * might be because they already took effect, were reverted by the customer, + * or were rejected by the partner. No more operations are allowed on these + * changes. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChangeHistory($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChange::class); + $this->change_history = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChange.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChange.php new file mode 100644 index 000000000000..a3c85ed71658 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChange.php @@ -0,0 +1,463 @@ +google.cloud.commerce.consumer.procurement.v1.LineItemChange + */ +class LineItemChange extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Change ID. + * All changes made within one order update operation have the same change_id. + * + * Generated from protobuf field string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $change_id = ''; + /** + * Required. Type of the change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $change_type = 0; + /** + * Output only. Line item info before the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $old_line_item_info = null; + /** + * Line item info after the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + */ + protected $new_line_item_info = null; + /** + * Output only. State of the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $change_state = 0; + /** + * Output only. Provider-supplied message explaining the LineItemChange's + * state. Mainly used to communicate progress and ETA for provisioning in the + * case of `PENDING_APPROVAL`, and to explain why the change request was + * denied or canceled in the case of `REJECTED` and `CANCELED` states. + * + * Generated from protobuf field string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_reason = ''; + /** + * Output only. Predefined enum types for why this line item change is in + * current state. For example, a line item change's state could be + * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, + * immediate cancellation initiated by the user, or system-initiated + * cancellation. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $change_state_reason_type = 0; + /** + * Output only. A time at which the change became or will become (in case of + * pending change) effective. + * + * Generated from protobuf field .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $change_effective_time = null; + /** + * Output only. The time when change was initiated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when change was updated, e.g. approved/rejected by + * partners or cancelled by the user. + * + * 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 $change_id + * Output only. Change ID. + * All changes made within one order update operation have the same change_id. + * @type int $change_type + * Required. Type of the change to make. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $old_line_item_info + * Output only. Line item info before the change. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $new_line_item_info + * Line item info after the change. + * @type int $change_state + * Output only. State of the change. + * @type string $state_reason + * Output only. Provider-supplied message explaining the LineItemChange's + * state. Mainly used to communicate progress and ETA for provisioning in the + * case of `PENDING_APPROVAL`, and to explain why the change request was + * denied or canceled in the case of `REJECTED` and `CANCELED` states. + * @type int $change_state_reason_type + * Output only. Predefined enum types for why this line item change is in + * current state. For example, a line item change's state could be + * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, + * immediate cancellation initiated by the user, or system-initiated + * cancellation. + * @type \Google\Protobuf\Timestamp $change_effective_time + * Output only. A time at which the change became or will become (in case of + * pending change) effective. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when change was initiated. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when change was updated, e.g. approved/rejected by + * partners or cancelled by the user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Change ID. + * All changes made within one order update operation have the same change_id. + * + * Generated from protobuf field string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getChangeId() + { + return $this->change_id; + } + + /** + * Output only. Change ID. + * All changes made within one order update operation have the same change_id. + * + * Generated from protobuf field string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setChangeId($var) + { + GPBUtil::checkString($var, True); + $this->change_id = $var; + + return $this; + } + + /** + * Required. Type of the change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * Required. Type of the change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * Output only. Line item info before the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo|null + */ + public function getOldLineItemInfo() + { + return $this->old_line_item_info; + } + + public function hasOldLineItemInfo() + { + return isset($this->old_line_item_info); + } + + public function clearOldLineItemInfo() + { + unset($this->old_line_item_info); + } + + /** + * Output only. Line item info before the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $var + * @return $this + */ + public function setOldLineItemInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo::class); + $this->old_line_item_info = $var; + + return $this; + } + + /** + * Line item info after the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo|null + */ + public function getNewLineItemInfo() + { + return $this->new_line_item_info; + } + + public function hasNewLineItemInfo() + { + return isset($this->new_line_item_info); + } + + public function clearNewLineItemInfo() + { + unset($this->new_line_item_info); + } + + /** + * Line item info after the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $var + * @return $this + */ + public function setNewLineItemInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo::class); + $this->new_line_item_info = $var; + + return $this; + } + + /** + * Output only. State of the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getChangeState() + { + return $this->change_state; + } + + /** + * Output only. State of the change. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setChangeState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChangeState::class); + $this->change_state = $var; + + return $this; + } + + /** + * Output only. Provider-supplied message explaining the LineItemChange's + * state. Mainly used to communicate progress and ETA for provisioning in the + * case of `PENDING_APPROVAL`, and to explain why the change request was + * denied or canceled in the case of `REJECTED` and `CANCELED` states. + * + * Generated from protobuf field string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateReason() + { + return $this->state_reason; + } + + /** + * Output only. Provider-supplied message explaining the LineItemChange's + * state. Mainly used to communicate progress and ETA for provisioning in the + * case of `PENDING_APPROVAL`, and to explain why the change request was + * denied or canceled in the case of `REJECTED` and `CANCELED` states. + * + * Generated from protobuf field string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateReason($var) + { + GPBUtil::checkString($var, True); + $this->state_reason = $var; + + return $this; + } + + /** + * Output only. Predefined enum types for why this line item change is in + * current state. For example, a line item change's state could be + * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, + * immediate cancellation initiated by the user, or system-initiated + * cancellation. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getChangeStateReasonType() + { + return $this->change_state_reason_type; + } + + /** + * Output only. Predefined enum types for why this line item change is in + * current state. For example, a line item change's state could be + * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, + * immediate cancellation initiated by the user, or system-initiated + * cancellation. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setChangeStateReasonType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChangeStateReasonType::class); + $this->change_state_reason_type = $var; + + return $this; + } + + /** + * Output only. A time at which the change became or will become (in case of + * pending change) effective. + * + * Generated from protobuf field .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getChangeEffectiveTime() + { + return $this->change_effective_time; + } + + public function hasChangeEffectiveTime() + { + return isset($this->change_effective_time); + } + + public function clearChangeEffectiveTime() + { + unset($this->change_effective_time); + } + + /** + * Output only. A time at which the change became or will become (in case of + * pending change) effective. + * + * Generated from protobuf field .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setChangeEffectiveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->change_effective_time = $var; + + return $this; + } + + /** + * Output only. The time when change was initiated. + * + * 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 when change was initiated. + * + * 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 when change was updated, e.g. approved/rejected by + * partners or cancelled by the user. + * + * 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 when change was updated, e.g. approved/rejected by + * partners or cancelled by the user. + * + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeState.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeState.php new file mode 100644 index 000000000000..0f578e994c1a --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeState.php @@ -0,0 +1,99 @@ +google.cloud.commerce.consumer.procurement.v1.LineItemChangeState + */ +class LineItemChangeState +{ + /** + * Sentinel value. Do not use. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; + */ + const LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; + /** + * Change is in this state when a change is initiated and waiting for partner + * approval. This state is only applicable for pending change. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1; + */ + const LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1; + /** + * Change is in this state after it's approved by the partner or auto-approved + * but before it takes effect. The change can be overwritten or cancelled + * depending on the new line item info property (pending Private Offer change + * cannot be cancelled and can only be overwritten by another Private Offer). + * This state is only applicable for pending change. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_APPROVED = 2; + */ + const LINE_ITEM_CHANGE_STATE_APPROVED = 2; + /** + * Change is in this state after it's been activated. This state is only + * applicable for change in history. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_COMPLETED = 3; + */ + const LINE_ITEM_CHANGE_STATE_COMPLETED = 3; + /** + * Change is in this state if it was rejected by the partner. This state is + * only applicable for change in history. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_REJECTED = 4; + */ + const LINE_ITEM_CHANGE_STATE_REJECTED = 4; + /** + * Change is in this state if it was abandoned by the user. This state is only + * applicable for change in history. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_ABANDONED = 5; + */ + const LINE_ITEM_CHANGE_STATE_ABANDONED = 5; + /** + * Change is in this state if it's currently being provisioned downstream. The + * change can't be overwritten or cancelled when it's in this state. This + * state is only applicable for pending change. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; + */ + const LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; + + private static $valueToName = [ + self::LINE_ITEM_CHANGE_STATE_UNSPECIFIED => 'LINE_ITEM_CHANGE_STATE_UNSPECIFIED', + self::LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL => 'LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL', + self::LINE_ITEM_CHANGE_STATE_APPROVED => 'LINE_ITEM_CHANGE_STATE_APPROVED', + self::LINE_ITEM_CHANGE_STATE_COMPLETED => 'LINE_ITEM_CHANGE_STATE_COMPLETED', + self::LINE_ITEM_CHANGE_STATE_REJECTED => 'LINE_ITEM_CHANGE_STATE_REJECTED', + self::LINE_ITEM_CHANGE_STATE_ABANDONED => 'LINE_ITEM_CHANGE_STATE_ABANDONED', + self::LINE_ITEM_CHANGE_STATE_ACTIVATING => 'LINE_ITEM_CHANGE_STATE_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); + } +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeStateReasonType.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeStateReasonType.php new file mode 100644 index 000000000000..0e0a1cd83562 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeStateReasonType.php @@ -0,0 +1,69 @@ +google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + */ +class LineItemChangeStateReasonType +{ + /** + * Default value, indicating there's no predefined type for change state + * reason. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0; + */ + const LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0; + /** + * Change is in current state due to term expiration. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1; + */ + const LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1; + /** + * Change is in current state due to user-initiated cancellation. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2; + */ + const LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2; + /** + * Change is in current state due to system-initiated cancellation. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3; + */ + const LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3; + + private static $valueToName = [ + self::LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED => 'LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED', + self::LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED => 'LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED', + self::LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED => 'LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED', + self::LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED => 'LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeType.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeType.php new file mode 100644 index 000000000000..fa3af87bcc6d --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemChangeType.php @@ -0,0 +1,75 @@ +google.cloud.commerce.consumer.procurement.v1.LineItemChangeType + */ +class LineItemChangeType +{ + /** + * Sentinel value. Do not use. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0; + */ + const LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0; + /** + * The change is to create a new line item. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_TYPE_CREATE = 1; + */ + const LINE_ITEM_CHANGE_TYPE_CREATE = 1; + /** + * The change is to update an existing line item. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_TYPE_UPDATE = 2; + */ + const LINE_ITEM_CHANGE_TYPE_UPDATE = 2; + /** + * The change is to cancel an existing line item. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_TYPE_CANCEL = 3; + */ + const LINE_ITEM_CHANGE_TYPE_CANCEL = 3; + /** + * The change is to revert a cancellation. + * + * Generated from protobuf enum LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4; + */ + const LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4; + + private static $valueToName = [ + self::LINE_ITEM_CHANGE_TYPE_UNSPECIFIED => 'LINE_ITEM_CHANGE_TYPE_UNSPECIFIED', + self::LINE_ITEM_CHANGE_TYPE_CREATE => 'LINE_ITEM_CHANGE_TYPE_CREATE', + self::LINE_ITEM_CHANGE_TYPE_UPDATE => 'LINE_ITEM_CHANGE_TYPE_UPDATE', + self::LINE_ITEM_CHANGE_TYPE_CANCEL => 'LINE_ITEM_CHANGE_TYPE_CANCEL', + self::LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION => 'LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemInfo.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemInfo.php new file mode 100644 index 000000000000..91fc696cf2da --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/LineItemInfo.php @@ -0,0 +1,153 @@ +google.cloud.commerce.consumer.procurement.v1.LineItemInfo + */ +class LineItemInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + * + * Generated from protobuf field string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $offer = ''; + /** + * Optional. User-provided parameters. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + /** + * Output only. Information about the subscription created, if applicable. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $subscription = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $offer + * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters + * Optional. User-provided parameters. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\Subscription $subscription + * Output only. Information about the subscription created, if applicable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + * + * Generated from protobuf field string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getOffer() + { + return $this->offer; + } + + /** + * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + * + * Generated from protobuf field string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setOffer($var) + { + GPBUtil::checkString($var, True); + $this->offer = $var; + + return $this; + } + + /** + * Optional. User-provided parameters. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. User-provided parameters. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Output only. Information about the subscription created, if applicable. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\Subscription|null + */ + public function getSubscription() + { + return $this->subscription; + } + + public function hasSubscription() + { + return isset($this->subscription); + } + + public function clearSubscription() + { + unset($this->subscription); + } + + /** + * Output only. Information about the subscription created, if applicable. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\Subscription $var + * @return $this + */ + public function setSubscription($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\Subscription::class); + $this->subscription = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersRequest.php new file mode 100644 index 000000000000..4ed442035bcf --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersRequest.php @@ -0,0 +1,236 @@ +google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + */ +class ListOrdersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource to query for orders. + * This field has the form `billingAccounts/{billing-account-id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The maximum number of entries requested. + * The default page size is 25 and the maximum page size is 200. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The token for fetching the next page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Filter that you can use to limit the list request. + * A query string that can match a selected set of attributes + * with string values. For example, `display_name=abc`. + * Supported query attributes are + * * `display_name` + * If the query contains special characters other than letters, + * underscore, or digits, the phrase must be quoted with double quotes. For + * example, `display_name="foo:bar"`, where the display name needs to be + * quoted because it contains special character colon. + * Queries can be combined with `OR`, and `NOT` to form more complex queries. + * You can also group them to force a desired evaluation order. + * For example, `display_name=abc OR display_name=def`. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource to query for orders. + * This field has the form `billingAccounts/{billing-account-id}`. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\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 resource to query for orders. + * This field has the form `billingAccounts/{billing-account-id}`. + * @type int $page_size + * The maximum number of entries requested. + * The default page size is 25 and the maximum page size is 200. + * @type string $page_token + * The token for fetching the next page. + * @type string $filter + * Filter that you can use to limit the list request. + * A query string that can match a selected set of attributes + * with string values. For example, `display_name=abc`. + * Supported query attributes are + * * `display_name` + * If the query contains special characters other than letters, + * underscore, or digits, the phrase must be quoted with double quotes. For + * example, `display_name="foo:bar"`, where the display name needs to be + * quoted because it contains special character colon. + * Queries can be combined with `OR`, and `NOT` to form more complex queries. + * You can also group them to force a desired evaluation order. + * For example, `display_name=abc OR display_name=def`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource to query for orders. + * This field has the form `billingAccounts/{billing-account-id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource to query for orders. + * This field has the form `billingAccounts/{billing-account-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; + } + + /** + * The maximum number of entries requested. + * The default page size is 25 and the maximum page size is 200. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of entries requested. + * The default page size is 25 and the maximum page size is 200. + * + * 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 token for fetching the next page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The token for fetching the next 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; + } + + /** + * Filter that you can use to limit the list request. + * A query string that can match a selected set of attributes + * with string values. For example, `display_name=abc`. + * Supported query attributes are + * * `display_name` + * If the query contains special characters other than letters, + * underscore, or digits, the phrase must be quoted with double quotes. For + * example, `display_name="foo:bar"`, where the display name needs to be + * quoted because it contains special character colon. + * Queries can be combined with `OR`, and `NOT` to form more complex queries. + * You can also group them to force a desired evaluation order. + * For example, `display_name=abc OR display_name=def`. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter that you can use to limit the list request. + * A query string that can match a selected set of attributes + * with string values. For example, `display_name=abc`. + * Supported query attributes are + * * `display_name` + * If the query contains special characters other than letters, + * underscore, or digits, the phrase must be quoted with double quotes. For + * example, `display_name="foo:bar"`, where the display name needs to be + * quoted because it contains special character colon. + * Queries can be combined with `OR`, and `NOT` to form more complex queries. + * You can also group them to force a desired evaluation order. + * For example, `display_name=abc OR display_name=def`. + * + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersResponse.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersResponse.php new file mode 100644 index 000000000000..4b56a71deca0 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ListOrdersResponse.php @@ -0,0 +1,102 @@ +google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + */ +class ListOrdersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of orders in this response. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + private $orders; + /** + * The token for fetching the next 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\Commerce\Consumer\Procurement\V1\Order>|\Google\Protobuf\Internal\RepeatedField $orders + * The list of orders in this response. + * @type string $next_page_token + * The token for fetching the next page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * The list of orders in this response. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrders() + { + return $this->orders; + } + + /** + * The list of orders in this response. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\Order>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\Order::class); + $this->orders = $arr; + + return $this; + } + + /** + * The token for fetching the next page. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The token for fetching the next 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderMetadata.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderMetadata.php new file mode 100644 index 000000000000..e457f78bd1eb --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderMetadata.php @@ -0,0 +1,34 @@ +google.cloud.commerce.consumer.procurement.v1.ModifyOrderMetadata + */ +class ModifyOrderMetadata extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest.php new file mode 100644 index 000000000000..f9638efd58e9 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest.php @@ -0,0 +1,190 @@ +google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest + */ +class ModifyOrderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the order to update. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. Modifications for an existing Order created by an Offer. + * Required when Offer based Order is being modified, except for when going + * from an offer to a public plan. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $modifications; + /** + * Optional. Updated display name of the order, leave as empty if you do not + * want to update current display name. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The weak etag, which can be optionally populated, of the order + * that this modify request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the order to update. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\ModifyOrderRequest\Modification>|\Google\Protobuf\Internal\RepeatedField $modifications + * Optional. Modifications for an existing Order created by an Offer. + * Required when Offer based Order is being modified, except for when going + * from an offer to a public plan. + * @type string $display_name + * Optional. Updated display name of the order, leave as empty if you do not + * want to update current display name. + * @type string $etag + * Optional. The weak etag, which can be optionally populated, of the order + * that this modify request is based on. Validation checking will only happen + * if the invoker supplies this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the order to update. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the order to update. + * + * 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. Modifications for an existing Order created by an Offer. + * Required when Offer based Order is being modified, except for when going + * from an offer to a public plan. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getModifications() + { + return $this->modifications; + } + + /** + * Optional. Modifications for an existing Order created by an Offer. + * Required when Offer based Order is being modified, except for when going + * from an offer to a public plan. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\ModifyOrderRequest\Modification>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setModifications($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\ModifyOrderRequest\Modification::class); + $this->modifications = $arr; + + return $this; + } + + /** + * Optional. Updated display name of the order, leave as empty if you do not + * want to update current 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. Updated display name of the order, leave as empty if you do not + * want to update current 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. The weak etag, which can be optionally populated, of the order + * that this modify request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The weak etag, which can be optionally populated, of the order + * that this modify request is based on. Validation checking will only happen + * if the invoker supplies this field. + * + * 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/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest/Modification.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest/Modification.php new file mode 100644 index 000000000000..223db8cc2a0c --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/ModifyOrderRequest/Modification.php @@ -0,0 +1,218 @@ +google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification + */ +class Modification extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the existing line item to make change to. + * Required when change type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL]. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $line_item_id = ''; + /** + * Required. Type of change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $change_type = 0; + /** + * Optional. The line item to update to. + * Required when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $new_line_item_info = null; + /** + * Optional. Auto renewal behavior of the subscription for the update. + * Applied when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default + * config when this field is not specified. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $auto_renewal_behavior = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $line_item_id + * Required. ID of the existing line item to make change to. + * Required when change type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL]. + * @type int $change_type + * Required. Type of change to make. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $new_line_item_info + * Optional. The line item to update to. + * Required when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. + * @type int $auto_renewal_behavior + * Optional. Auto renewal behavior of the subscription for the update. + * Applied when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default + * config when this field is not specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the existing line item to make change to. + * Required when change type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL]. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLineItemId() + { + return $this->line_item_id; + } + + /** + * Required. ID of the existing line item to make change to. + * Required when change type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL]. + * + * Generated from protobuf field string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLineItemId($var) + { + GPBUtil::checkString($var, True); + $this->line_item_id = $var; + + return $this; + } + + /** + * Required. Type of change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * Required. Type of change to make. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * Optional. The line item to update to. + * Required when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo|null + */ + public function getNewLineItemInfo() + { + return $this->new_line_item_info; + } + + public function hasNewLineItemInfo() + { + return isset($this->new_line_item_info); + } + + public function clearNewLineItemInfo() + { + unset($this->new_line_item_info); + } + + /** + * Optional. The line item to update to. + * Required when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo $var + * @return $this + */ + public function setNewLineItemInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo::class); + $this->new_line_item_info = $var; + + return $this; + } + + /** + * Optional. Auto renewal behavior of the subscription for the update. + * Applied when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default + * config when this field is not specified. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAutoRenewalBehavior() + { + return $this->auto_renewal_behavior; + } + + /** + * Optional. Auto renewal behavior of the subscription for the update. + * Applied when change_type is + * [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default + * config when this field is not specified. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAutoRenewalBehavior($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\AutoRenewalBehavior::class); + $this->auto_renewal_behavior = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Modification::class, \Google\Cloud\Commerce\Consumer\Procurement\V1\ModifyOrderRequest_Modification::class); + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php new file mode 100644 index 000000000000..cb5c73676e6a --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Order.php @@ -0,0 +1,306 @@ +google.cloud.commerce.consumer.procurement.v1.Order + */ +class Order extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the order. + * Has the form + * `billingAccounts/{billing_account}/orders/{order}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The user-specified name of the order. + * + * Generated from protobuf field string display_name = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The items being purchased. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $line_items; + /** + * Output only. Line items that were cancelled. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $cancelled_line_items; + /** + * Output only. The creation timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last update timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The weak etag of the order. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the order. + * Has the form + * `billingAccounts/{billing_account}/orders/{order}`. + * @type string $display_name + * Required. The user-specified name of the order. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>|\Google\Protobuf\Internal\RepeatedField $line_items + * Output only. The items being purchased. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>|\Google\Protobuf\Internal\RepeatedField $cancelled_line_items + * Output only. Line items that were cancelled. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation timestamp. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last update timestamp. + * @type string $etag + * The weak etag of the order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the order. + * Has the form + * `billingAccounts/{billing_account}/orders/{order}`. + * + * 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 order. + * Has the form + * `billingAccounts/{billing_account}/orders/{order}`. + * + * 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 user-specified name of the order. + * + * Generated from protobuf field string display_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-specified name of the order. + * + * Generated from protobuf field string display_name = 10 [(.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 items being purchased. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLineItems() + { + return $this->line_items; + } + + /** + * Output only. The items being purchased. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLineItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem::class); + $this->line_items = $arr; + + return $this; + } + + /** + * Output only. Line items that were cancelled. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCancelledLineItems() + { + return $this->cancelled_line_items; + } + + /** + * Output only. Line items that were cancelled. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCancelledLineItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem::class); + $this->cancelled_line_items = $arr; + + return $this; + } + + /** + * Output only. The 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. The 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. The 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. The 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; + } + + /** + * The weak etag of the order. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The weak etag of the order. + * + * 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; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter.php new file mode 100644 index 000000000000..68347cc77f1e --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter.php @@ -0,0 +1,111 @@ +google.cloud.commerce.consumer.procurement.v1.Parameter + */ +class Parameter extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Value of parameter. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the parameter. + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter\Value $value + * Value of parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Name of the parameter. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the parameter. + * + * 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; + } + + /** + * Value of parameter. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Value of parameter. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter\Value::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter/Value.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter/Value.php new file mode 100644 index 000000000000..301ee4ff9958 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Parameter/Value.php @@ -0,0 +1,142 @@ +google.cloud.commerce.consumer.procurement.v1.Parameter.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Represents an int64 value. + * @type string $string_value + * Represents a string value. + * @type float $double_value + * Represents a double value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * Represents an int64 value. + * + * Generated from protobuf field int64 int64_value = 3; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(3); + } + + public function hasInt64Value() + { + return $this->hasOneof(3); + } + + /** + * Represents an int64 value. + * + * Generated from protobuf field int64 int64_value = 3; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Represents a string value. + * + * Generated from protobuf field string string_value = 4; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(4); + } + + public function hasStringValue() + { + return $this->hasOneof(4); + } + + /** + * Represents a string value. + * + * Generated from protobuf field string string_value = 4; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Represents a double value. + * + * Generated from protobuf field double double_value = 5; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(5); + } + + public function hasDoubleValue() + { + return $this->hasOneof(5); + } + + /** + * Represents a double value. + * + * Generated from protobuf field double double_value = 5; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(5, $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(Value::class, \Google\Cloud\Commerce\Consumer\Procurement\V1\Parameter_Value::class); + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderMetadata.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderMetadata.php new file mode 100644 index 000000000000..d90354724332 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderMetadata.php @@ -0,0 +1,34 @@ +google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + */ +class PlaceOrderMetadata extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderRequest.php new file mode 100644 index 000000000000..38716b51963c --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/PlaceOrderRequest.php @@ -0,0 +1,194 @@ +google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + */ +class PlaceOrderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent resource. + * This field has the form `billingAccounts/{billing-account-id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The user-specified name of the order being placed. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Places order for offer. Required when an offer-based order is + * being placed. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $line_item_info; + /** + * Optional. A unique identifier for this request. + * The server will ignore subsequent requests that provide a duplicate request + * ID for at least 24 hours after the first request. + * The request ID must be a valid + * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + * + * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent resource. + * This field has the form `billingAccounts/{billing-account-id}`. + * @type string $display_name + * Required. The user-specified name of the order being placed. + * @type array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo>|\Google\Protobuf\Internal\RepeatedField $line_item_info + * Optional. Places order for offer. Required when an offer-based order is + * being placed. + * @type string $request_id + * Optional. A unique identifier for this request. + * The server will ignore subsequent requests that provide a duplicate request + * ID for at least 24 hours after the first request. + * The request ID must be a valid + * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\ProcurementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent resource. + * This field has the form `billingAccounts/{billing-account-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 parent resource. + * This field has the form `billingAccounts/{billing-account-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. The user-specified name of the order being placed. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-specified name of the order being placed. + * + * Generated from protobuf field string display_name = 6 [(.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. Places order for offer. Required when an offer-based order is + * being placed. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLineItemInfo() + { + return $this->line_item_info; + } + + /** + * Optional. Places order for offer. Required when an offer-based order is + * being placed. + * + * Generated from protobuf field repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLineItemInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo::class); + $this->line_item_info = $arr; + + return $this; + } + + /** + * Optional. A unique identifier for this request. + * The server will ignore subsequent requests that provide a duplicate request + * ID for at least 24 hours after the first request. + * The request ID must be a valid + * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + * + * 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 identifier for this request. + * The server will ignore subsequent requests that provide a duplicate request + * ID for at least 24 hours after the first request. + * The request ID must be a valid + * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + * + * 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; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Subscription.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Subscription.php new file mode 100644 index 000000000000..ee10c101f400 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/Subscription.php @@ -0,0 +1,163 @@ +google.cloud.commerce.consumer.procurement.v1.Subscription + */ +class Subscription extends \Google\Protobuf\Internal\Message +{ + /** + * The timestamp when the subscription begins, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + */ + protected $start_time = null; + /** + * The timestamp when the subscription ends, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + */ + protected $end_time = null; + /** + * Whether auto renewal is enabled by user choice on current subscription. + * This field indicates order/subscription status after pending plan change is + * cancelled or rejected. + * + * Generated from protobuf field bool auto_renewal_enabled = 2; + */ + protected $auto_renewal_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * The timestamp when the subscription begins, if applicable. + * @type \Google\Protobuf\Timestamp $end_time + * The timestamp when the subscription ends, if applicable. + * @type bool $auto_renewal_enabled + * Whether auto renewal is enabled by user choice on current subscription. + * This field indicates order/subscription status after pending plan change is + * cancelled or rejected. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\Order::initOnce(); + parent::__construct($data); + } + + /** + * The timestamp when the subscription begins, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @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 timestamp when the subscription begins, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @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 timestamp when the subscription ends, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @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 timestamp when the subscription ends, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Whether auto renewal is enabled by user choice on current subscription. + * This field indicates order/subscription status after pending plan change is + * cancelled or rejected. + * + * Generated from protobuf field bool auto_renewal_enabled = 2; + * @return bool + */ + public function getAutoRenewalEnabled() + { + return $this->auto_renewal_enabled; + } + + /** + * Whether auto renewal is enabled by user choice on current subscription. + * This field indicates order/subscription status after pending plan change is + * cancelled or rejected. + * + * Generated from protobuf field bool auto_renewal_enabled = 2; + * @param bool $var + * @return $this + */ + public function setAutoRenewalEnabled($var) + { + GPBUtil::checkBool($var); + $this->auto_renewal_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignRequest.php new file mode 100644 index 000000000000..b61d1f46d9bb --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignRequest.php @@ -0,0 +1,122 @@ +google.cloud.commerce.consumer.procurement.v1.UnassignRequest + */ +class UnassignRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $usernames; + + /** + * @param string $parent Required. License pool name. + * @param string[] $usernames Required. Username. + * Format: `name@domain.com`. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\UnassignRequest + * + * @experimental + */ + public static function build(string $parent, array $usernames): self + { + return (new self()) + ->setParent($parent) + ->setUsernames($usernames); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. License pool name. + * @type array|\Google\Protobuf\Internal\RepeatedField $usernames + * Required. Username. + * Format: `name@domain.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. License pool name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. License pool name. + * + * 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. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUsernames() + { + return $this->usernames; + } + + /** + * Required. Username. + * Format: `name@domain.com`. + * + * Generated from protobuf field repeated string usernames = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUsernames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->usernames = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignResponse.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignResponse.php new file mode 100644 index 000000000000..80b8d97dccc0 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UnassignResponse.php @@ -0,0 +1,34 @@ +google.cloud.commerce.consumer.procurement.v1.UnassignResponse + */ +class UnassignResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UpdateLicensePoolRequest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UpdateLicensePoolRequest.php new file mode 100644 index 000000000000..58377294310c --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/proto/src/Google/Cloud/Commerce/Consumer/Procurement/V1/UpdateLicensePoolRequest.php @@ -0,0 +1,152 @@ +google.cloud.commerce.consumer.procurement.v1.UpdateLicensePoolRequest + */ +class UpdateLicensePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The license pool to update. + * The license pool's name field is used to identify the license pool to + * update. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool`. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LicensePool license_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $license_pool = 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\Commerce\Consumer\Procurement\V1\LicensePool $licensePool Required. The license pool to update. + * + * The license pool's name field is used to identify the license pool to + * update. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool`. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\UpdateLicensePoolRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool $licensePool, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setLicensePool($licensePool) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool $license_pool + * Required. The license pool to update. + * The license pool's name field is used to identify the license pool to + * update. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool`. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Commerce\Consumer\Procurement\V1\LicenseManagementService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The license pool to update. + * The license pool's name field is used to identify the license pool to + * update. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool`. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LicensePool license_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool|null + */ + public function getLicensePool() + { + return $this->license_pool; + } + + public function hasLicensePool() + { + return isset($this->license_pool); + } + + public function clearLicensePool() + { + unset($this->license_pool); + } + + /** + * Required. The license pool to update. + * The license pool's name field is used to identify the license pool to + * update. Format: + * `billingAccounts/{billing_account}/orders/{order}/licensePool`. + * + * Generated from protobuf field .google.cloud.commerce.consumer.procurement.v1.LicensePool license_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool $var + * @return $this + */ + public function setLicensePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool::class); + $this->license_pool = $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/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/cancel_order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/cancel_order.php new file mode 100644 index 000000000000..34945b1ab793 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/cancel_order.php @@ -0,0 +1,84 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $consumerProcurementServiceClient->cancelOrder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Order $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 +{ + $name = '[NAME]'; + + cancel_order_sample($name); +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_CancelOrder_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/get_order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/get_order.php new file mode 100644 index 000000000000..cc60dd890a1e --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/get_order.php @@ -0,0 +1,71 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var Order $response */ + $response = $consumerProcurementServiceClient->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 +{ + $name = '[NAME]'; + + get_order_sample($name); +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/list_orders.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/list_orders.php new file mode 100644 index 000000000000..05b6af38f20c --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/list_orders.php @@ -0,0 +1,78 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $consumerProcurementServiceClient->listOrders($request); + + /** @var Order $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_orders_sample($parent); +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/modify_order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/modify_order.php new file mode 100644 index 000000000000..2ea79ce79c8f --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/modify_order.php @@ -0,0 +1,83 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $consumerProcurementServiceClient->modifyOrder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Order $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 +{ + $name = '[NAME]'; + + modify_order_sample($name); +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ModifyOrder_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/place_order.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/place_order.php new file mode 100644 index 000000000000..3730e9ee571c --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/ConsumerProcurementServiceClient/place_order.php @@ -0,0 +1,96 @@ +setParent($formattedParent) + ->setDisplayName($displayName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $consumerProcurementServiceClient->placeOrder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Order $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 = ConsumerProcurementServiceClient::billingAccountName('[BILLING_ACCOUNT]'); + $displayName = '[DISPLAY_NAME]'; + + place_order_sample($formattedParent, $displayName); +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/assign.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/assign.php new file mode 100644 index 000000000000..c33ec70102dc --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/assign.php @@ -0,0 +1,75 @@ +setParent($parent) + ->setUsernames($usernames); + + // Call the API and handle any network failures. + try { + /** @var AssignResponse $response */ + $response = $licenseManagementServiceClient->assign($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $usernamesElement = '[USERNAMES]'; + + assign_sample($parent, $usernamesElement); +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Assign_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/enumerate_licensed_users.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/enumerate_licensed_users.php new file mode 100644 index 000000000000..c5a983d791d4 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/enumerate_licensed_users.php @@ -0,0 +1,75 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $licenseManagementServiceClient->enumerateLicensedUsers($request); + + /** @var LicensedUser $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]'; + + enumerate_licensed_users_sample($parent); +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_EnumerateLicensedUsers_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/get_license_pool.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/get_license_pool.php new file mode 100644 index 000000000000..623e2151ab21 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/get_license_pool.php @@ -0,0 +1,71 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var LicensePool $response */ + $response = $licenseManagementServiceClient->getLicensePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + + get_license_pool_sample($name); +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_GetLicensePool_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/unassign.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/unassign.php new file mode 100644 index 000000000000..2843103ad5d2 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/unassign.php @@ -0,0 +1,75 @@ +setParent($parent) + ->setUsernames($usernames); + + // Call the API and handle any network failures. + try { + /** @var UnassignResponse $response */ + $response = $licenseManagementServiceClient->unassign($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + $usernamesElement = '[USERNAMES]'; + + unassign_sample($parent, $usernamesElement); +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Unassign_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/update_license_pool.php b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/update_license_pool.php new file mode 100644 index 000000000000..29d7325e6ec6 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/samples/V1/LicenseManagementServiceClient/update_license_pool.php @@ -0,0 +1,65 @@ +setLicenseAssignmentProtocol($licensePoolLicenseAssignmentProtocol); + $updateMask = new FieldMask(); + $request = (new UpdateLicensePoolRequest()) + ->setLicensePool($licensePool) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var LicensePool $response */ + $response = $licenseManagementServiceClient->updateLicensePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_UpdateLicensePool_sync] diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/ConsumerProcurementServiceClient.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/ConsumerProcurementServiceClient.php new file mode 100644 index 000000000000..6a47439ce7ac --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/ConsumerProcurementServiceClient.php @@ -0,0 +1,485 @@ + cancelOrderAsync(CancelOrderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) + * @method PromiseInterface modifyOrderAsync(ModifyOrderRequest $request, array $optionalArgs = []) + * @method PromiseInterface placeOrderAsync(PlaceOrderRequest $request, array $optionalArgs = []) + */ +final class ConsumerProcurementServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudcommerceconsumerprocurement.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudcommerceconsumerprocurement.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/consumer_procurement_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/consumer_procurement_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/consumer_procurement_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/consumer_procurement_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 + * billing_account resource. + * + * @param string $billingAccount + * + * @return string The formatted billing_account resource. + */ + public static function billingAccountName(string $billingAccount): string + { + return self::getPathTemplate('billingAccount')->render([ + 'billing_account' => $billingAccount, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * consumer_billing_account_offer resource. + * + * @param string $consumerBillingAccount + * @param string $offer + * + * @return string The formatted consumer_billing_account_offer resource. + */ + public static function consumerBillingAccountOfferName(string $consumerBillingAccount, string $offer): string + { + return self::getPathTemplate('consumerBillingAccountOffer')->render([ + 'consumer_billing_account' => $consumerBillingAccount, + 'offer' => $offer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a offer + * resource. + * + * @param string $service + * @param string $offer + * + * @return string The formatted offer resource. + */ + public static function offerName(string $service, string $offer): string + { + return self::getPathTemplate('offer')->render([ + 'service' => $service, + 'offer' => $offer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * service_offer resource. + * + * @param string $service + * @param string $offer + * + * @return string The formatted service_offer resource. + */ + public static function serviceOfferName(string $service, string $offer): string + { + return self::getPathTemplate('serviceOffer')->render([ + 'service' => $service, + 'offer' => $offer, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - billingAccount: billingAccounts/{billing_account} + * - consumerBillingAccountOffer: billingAccounts/{consumer_billing_account}/offers/{offer} + * - offer: services/{service}/standardOffers/{offer} + * - serviceOffer: services/{service}/standardOffers/{offer} + * + * 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 + * 'cloudcommerceconsumerprocurement.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); + } + + /** + * Cancels an existing + * [Order][google.cloud.commerce.consumer.procurement.v1.Order]. Every product + * procured in the Order will be cancelled. + * + * The async variant is {@see ConsumerProcurementServiceClient::cancelOrderAsync()} + * . + * + * @example samples/V1/ConsumerProcurementServiceClient/cancel_order.php + * + * @param CancelOrderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 cancelOrder(CancelOrderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CancelOrder', $request, $callOptions)->wait(); + } + + /** + * Returns the requested + * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + * + * The async variant is {@see ConsumerProcurementServiceClient::getOrderAsync()} . + * + * @example samples/V1/ConsumerProcurementServiceClient/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(); + } + + /** + * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] + * resources that the user has access to, within the scope of the parent + * resource. + * + * The async variant is {@see ConsumerProcurementServiceClient::listOrdersAsync()} + * . + * + * @example samples/V1/ConsumerProcurementServiceClient/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); + } + + /** + * Modifies an existing + * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + * + * The async variant is {@see ConsumerProcurementServiceClient::modifyOrderAsync()} + * . + * + * @example samples/V1/ConsumerProcurementServiceClient/modify_order.php + * + * @param ModifyOrderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 modifyOrder(ModifyOrderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ModifyOrder', $request, $callOptions)->wait(); + } + + /** + * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. + * + * This API only supports GCP spend-based committed use + * discounts specified by GCP documentation. + * + * The returned long-running operation is in-progress until the backend + * completes the creation of the resource. Once completed, the order is + * in + * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. + * In case of failure, the order resource will be removed. + * + * The async variant is {@see ConsumerProcurementServiceClient::placeOrderAsync()} + * . + * + * @example samples/V1/ConsumerProcurementServiceClient/place_order.php + * + * @param PlaceOrderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 placeOrder(PlaceOrderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('PlaceOrder', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/LicenseManagementServiceClient.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/LicenseManagementServiceClient.php new file mode 100644 index 000000000000..9c427e2cca0b --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/Client/LicenseManagementServiceClient.php @@ -0,0 +1,356 @@ + assignAsync(AssignRequest $request, array $optionalArgs = []) + * @method PromiseInterface enumerateLicensedUsersAsync(EnumerateLicensedUsersRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLicensePoolAsync(GetLicensePoolRequest $request, array $optionalArgs = []) + * @method PromiseInterface unassignAsync(UnassignRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateLicensePoolAsync(UpdateLicensePoolRequest $request, array $optionalArgs = []) + */ +final class LicenseManagementServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.commerce.consumer.procurement.v1.LicenseManagementService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudcommerceconsumerprocurement.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudcommerceconsumerprocurement.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/license_management_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/license_management_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/license_management_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/license_management_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a license_pool + * resource. + * + * @param string $billingAccount + * @param string $order + * + * @return string The formatted license_pool resource. + */ + public static function licensePoolName(string $billingAccount, string $order): string + { + return self::getPathTemplate('licensePool')->render([ + 'billing_account' => $billingAccount, + '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 + * - licensePool: billingAccounts/{billing_account}/orders/{order}/licensePool + * + * 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 + * 'cloudcommerceconsumerprocurement.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); + } + + /** + * Assigns a license to a user. + * + * The async variant is {@see LicenseManagementServiceClient::assignAsync()} . + * + * @example samples/V1/LicenseManagementServiceClient/assign.php + * + * @param AssignRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AssignResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function assign(AssignRequest $request, array $callOptions = []): AssignResponse + { + return $this->startApiCall('Assign', $request, $callOptions)->wait(); + } + + /** + * Enumerates all users assigned a license. + * + * The async variant is + * {@see LicenseManagementServiceClient::enumerateLicensedUsersAsync()} . + * + * @example samples/V1/LicenseManagementServiceClient/enumerate_licensed_users.php + * + * @param EnumerateLicensedUsersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 enumerateLicensedUsers(EnumerateLicensedUsersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('EnumerateLicensedUsers', $request, $callOptions); + } + + /** + * Gets the license pool. + * + * The async variant is + * {@see LicenseManagementServiceClient::getLicensePoolAsync()} . + * + * @example samples/V1/LicenseManagementServiceClient/get_license_pool.php + * + * @param GetLicensePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return LicensePool + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLicensePool(GetLicensePoolRequest $request, array $callOptions = []): LicensePool + { + return $this->startApiCall('GetLicensePool', $request, $callOptions)->wait(); + } + + /** + * Unassigns a license from a user. + * + * The async variant is {@see LicenseManagementServiceClient::unassignAsync()} . + * + * @example samples/V1/LicenseManagementServiceClient/unassign.php + * + * @param UnassignRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UnassignResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function unassign(UnassignRequest $request, array $callOptions = []): UnassignResponse + { + return $this->startApiCall('Unassign', $request, $callOptions)->wait(); + } + + /** + * Updates the license pool if one exists for this Order. + * + * The async variant is + * {@see LicenseManagementServiceClient::updateLicensePoolAsync()} . + * + * @example samples/V1/LicenseManagementServiceClient/update_license_pool.php + * + * @param UpdateLicensePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return LicensePool + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateLicensePool(UpdateLicensePoolRequest $request, array $callOptions = []): LicensePool + { + return $this->startApiCall('UpdateLicensePool', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/gapic_metadata.json b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..eade9d314231 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/gapic_metadata.json @@ -0,0 +1,77 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.commerce.consumer.procurement.v1", + "libraryPackage": "Google\\Cloud\\Commerce\\Consumer\\Procurement\\V1", + "services": { + "LicenseManagementService": { + "clients": { + "grpc": { + "libraryClient": "LicenseManagementServiceGapicClient", + "rpcs": { + "Assign": { + "methods": [ + "assign" + ] + }, + "EnumerateLicensedUsers": { + "methods": [ + "enumerateLicensedUsers" + ] + }, + "GetLicensePool": { + "methods": [ + "getLicensePool" + ] + }, + "Unassign": { + "methods": [ + "unassign" + ] + }, + "UpdateLicensePool": { + "methods": [ + "updateLicensePool" + ] + } + } + } + } + }, + "ConsumerProcurementService": { + "clients": { + "grpc": { + "libraryClient": "ConsumerProcurementServiceGapicClient", + "rpcs": { + "CancelOrder": { + "methods": [ + "cancelOrder" + ] + }, + "GetOrder": { + "methods": [ + "getOrder" + ] + }, + "ListOrders": { + "methods": [ + "listOrders" + ] + }, + "ModifyOrder": { + "methods": [ + "modifyOrder" + ] + }, + "PlaceOrder": { + "methods": [ + "placeOrder" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_client_config.json b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_client_config.json new file mode 100644 index 000000000000..e35a772bd53f --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_client_config.json @@ -0,0 +1,69 @@ +{ + "interfaces": { + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService": { + "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": { + "CancelOrder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "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" + }, + "ModifyOrder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "PlaceOrder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_descriptor_config.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_descriptor_config.php new file mode 100644 index 000000000000..1c547a193562 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_descriptor_config.php @@ -0,0 +1,123 @@ + [ + 'google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService' => [ + 'CancelOrder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\Order', + 'metadataReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\CancelOrderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ModifyOrder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\Order', + 'metadataReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\ModifyOrderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'PlaceOrder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\Order', + 'metadataReturnType' => '\Google\Cloud\Commerce\Consumer\Procurement\V1\PlaceOrderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetOrder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\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\Cloud\Commerce\Consumer\Procurement\V1\ListOrdersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'billingAccount' => 'billingAccounts/{billing_account}', + 'consumerBillingAccountOffer' => 'billingAccounts/{consumer_billing_account}/offers/{offer}', + 'offer' => 'services/{service}/standardOffers/{offer}', + 'serviceOffer' => 'services/{service}/standardOffers/{offer}', + ], + ], + ], +]; diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_rest_client_config.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_rest_client_config.php new file mode 100644 index 000000000000..b29e89ae9fbc --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/consumer_procurement_service_rest_client_config.php @@ -0,0 +1,100 @@ + [ + 'google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService' => [ + 'CancelOrder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOrder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOrders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=billingAccounts/*}/orders', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ModifyOrder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*}:modify', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PlaceOrder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=billingAccounts/*}/orders:place', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_client_config.json b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_client_config.json new file mode 100644 index 000000000000..98dd2f4c2dd0 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_client_config.json @@ -0,0 +1,47 @@ +{ + "interfaces": { + "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService": { + "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": { + "Assign": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "EnumerateLicensedUsers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetLicensePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "Unassign": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateLicensePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_descriptor_config.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_descriptor_config.php new file mode 100644 index 000000000000..6e93fa011f59 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_descriptor_config.php @@ -0,0 +1,100 @@ + [ + 'google.cloud.commerce.consumer.procurement.v1.LicenseManagementService' => [ + 'Assign' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\V1\AssignResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'EnumerateLicensedUsers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLicensedUsers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\V1\EnumerateLicensedUsersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLicensePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'Unassign' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\V1\UnassignResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateLicensePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Commerce\Consumer\Procurement\V1\LicensePool', + 'headerParams' => [ + [ + 'keyName' => 'license_pool.name', + 'fieldAccessors' => [ + 'getLicensePool', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'licensePool' => 'billingAccounts/{billing_account}/orders/{order}/licensePool', + ], + ], + ], +]; diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_rest_client_config.php b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_rest_client_config.php new file mode 100644 index 000000000000..c8a2ad883774 --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/src/V1/resources/license_management_service_rest_client_config.php @@ -0,0 +1,104 @@ + [ + 'google.cloud.commerce.consumer.procurement.v1.LicenseManagementService' => [ + 'Assign' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=billingAccounts/*/orders/*/licensePool}:assign', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'EnumerateLicensedUsers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=billingAccounts/*/orders/*/licensePool}:enumerateLicensedUsers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetLicensePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*/licensePool}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'Unassign' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=billingAccounts/*/orders/*/licensePool}:unassign', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateLicensePool' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{license_pool.name=billingAccounts/*/orders/*/licensePool/*}', + 'body' => 'license_pool', + 'placeholders' => [ + 'license_pool.name' => [ + 'getters' => [ + 'getLicensePool', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=billingAccounts/*/orders/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/ConsumerProcurementServiceClientTest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/ConsumerProcurementServiceClientTest.php new file mode 100644 index 000000000000..e41fa24e45ab --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/ConsumerProcurementServiceClientTest.php @@ -0,0 +1,668 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ConsumerProcurementServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ConsumerProcurementServiceClient($options); + } + + /** @test */ + public function cancelOrderTest() + { + $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/cancelOrderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $etag2 = 'etag2-1293302904'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/cancelOrderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new CancelOrderRequest()) + ->setName($name); + $response = $gapicClient->cancelOrder($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.commerce.consumer.procurement.v1.ConsumerProcurementService/CancelOrder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/cancelOrderTest'); + $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 cancelOrderExceptionTest() + { + $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/cancelOrderTest'); + $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 + $name = 'name3373707'; + $request = (new CancelOrderRequest()) + ->setName($name); + $response = $gapicClient->cancelOrder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/cancelOrderTest'); + 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 getOrderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GetOrderRequest()) + ->setName($name); + $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.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/GetOrder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $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 + $name = 'name3373707'; + $request = (new GetOrderRequest()) + ->setName($name); + 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 = ''; + $ordersElement = new Order(); + $orders = [ + $ordersElement, + ]; + $expectedResponse = new ListOrdersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOrders($orders); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new ListOrdersRequest()) + ->setParent($parent); + $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.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/ListOrders', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $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 + $parent = 'parent-995424086'; + $request = (new ListOrdersRequest()) + ->setParent($parent); + 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 modifyOrderTest() + { + $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/modifyOrderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $displayName2 = 'displayName21615000987'; + $etag2 = 'etag2-1293302904'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName2); + $expectedResponse->setEtag($etag2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/modifyOrderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new ModifyOrderRequest()) + ->setName($name); + $response = $gapicClient->modifyOrder($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.commerce.consumer.procurement.v1.ConsumerProcurementService/ModifyOrder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/modifyOrderTest'); + $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 modifyOrderExceptionTest() + { + $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/modifyOrderTest'); + $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 + $name = 'name3373707'; + $request = (new ModifyOrderRequest()) + ->setName($name); + $response = $gapicClient->modifyOrder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/modifyOrderTest'); + 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 placeOrderTest() + { + $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/placeOrderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName2 = 'displayName21615000987'; + $etag = 'etag3123477'; + $expectedResponse = new Order(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName2); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/placeOrderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->billingAccountName('[BILLING_ACCOUNT]'); + $displayName = 'displayName1615086568'; + $request = (new PlaceOrderRequest()) + ->setParent($formattedParent) + ->setDisplayName($displayName); + $response = $gapicClient->placeOrder($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.commerce.consumer.procurement.v1.ConsumerProcurementService/PlaceOrder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDisplayName(); + $this->assertProtobufEquals($displayName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/placeOrderTest'); + $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 placeOrderExceptionTest() + { + $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/placeOrderTest'); + $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->billingAccountName('[BILLING_ACCOUNT]'); + $displayName = 'displayName1615086568'; + $request = (new PlaceOrderRequest()) + ->setParent($formattedParent) + ->setDisplayName($displayName); + $response = $gapicClient->placeOrder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/placeOrderTest'); + 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 cancelOrderAsyncTest() + { + $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/cancelOrderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $etag2 = 'etag2-1293302904'; + $expectedResponse = new Order(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/cancelOrderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $request = (new CancelOrderRequest()) + ->setName($name); + $response = $gapicClient->cancelOrderAsync($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.commerce.consumer.procurement.v1.ConsumerProcurementService/CancelOrder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/cancelOrderTest'); + $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/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/LicenseManagementServiceClientTest.php b/owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/LicenseManagementServiceClientTest.php new file mode 100644 index 000000000000..84b78448c93f --- /dev/null +++ b/owl-bot-staging/CommerceConsumerProcurement/v1/tests/Unit/V1/Client/LicenseManagementServiceClientTest.php @@ -0,0 +1,457 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return LicenseManagementServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new LicenseManagementServiceClient($options); + } + + /** @test */ + public function assignTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AssignResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $usernames = []; + $request = (new AssignRequest()) + ->setParent($parent) + ->setUsernames($usernames); + $response = $gapicClient->assign($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.commerce.consumer.procurement.v1.LicenseManagementService/Assign', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getUsernames(); + $this->assertProtobufEquals($usernames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function assignExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $usernames = []; + $request = (new AssignRequest()) + ->setParent($parent) + ->setUsernames($usernames); + try { + $gapicClient->assign($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function enumerateLicensedUsersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $licensedUsersElement = new LicensedUser(); + $licensedUsers = [ + $licensedUsersElement, + ]; + $expectedResponse = new EnumerateLicensedUsersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLicensedUsers($licensedUsers); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new EnumerateLicensedUsersRequest()) + ->setParent($parent); + $response = $gapicClient->enumerateLicensedUsers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLicensedUsers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.commerce.consumer.procurement.v1.LicenseManagementService/EnumerateLicensedUsers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function enumerateLicensedUsersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 EnumerateLicensedUsersRequest()) + ->setParent($parent); + try { + $gapicClient->enumerateLicensedUsers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLicensePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $availableLicenseCount = 387091611; + $totalLicenseCount = 834147882; + $expectedResponse = new LicensePool(); + $expectedResponse->setName($name2); + $expectedResponse->setAvailableLicenseCount($availableLicenseCount); + $expectedResponse->setTotalLicenseCount($totalLicenseCount); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GetLicensePoolRequest()) + ->setName($name); + $response = $gapicClient->getLicensePool($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.commerce.consumer.procurement.v1.LicenseManagementService/GetLicensePool', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLicensePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 GetLicensePoolRequest()) + ->setName($name); + try { + $gapicClient->getLicensePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function unassignTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new UnassignResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $usernames = []; + $request = (new UnassignRequest()) + ->setParent($parent) + ->setUsernames($usernames); + $response = $gapicClient->unassign($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.commerce.consumer.procurement.v1.LicenseManagementService/Unassign', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getUsernames(); + $this->assertProtobufEquals($usernames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function unassignExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $usernames = []; + $request = (new UnassignRequest()) + ->setParent($parent) + ->setUsernames($usernames); + try { + $gapicClient->unassign($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateLicensePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $availableLicenseCount = 387091611; + $totalLicenseCount = 834147882; + $expectedResponse = new LicensePool(); + $expectedResponse->setName($name); + $expectedResponse->setAvailableLicenseCount($availableLicenseCount); + $expectedResponse->setTotalLicenseCount($totalLicenseCount); + $transport->addResponse($expectedResponse); + // Mock request + $licensePool = new LicensePool(); + $licensePoolLicenseAssignmentProtocol = new AssignmentProtocol(); + $licensePool->setLicenseAssignmentProtocol($licensePoolLicenseAssignmentProtocol); + $updateMask = new FieldMask(); + $request = (new UpdateLicensePoolRequest()) + ->setLicensePool($licensePool) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateLicensePool($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.commerce.consumer.procurement.v1.LicenseManagementService/UpdateLicensePool', $actualFuncCall); + $actualValue = $actualRequestObject->getLicensePool(); + $this->assertProtobufEquals($licensePool, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateLicensePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $licensePool = new LicensePool(); + $licensePoolLicenseAssignmentProtocol = new AssignmentProtocol(); + $licensePool->setLicenseAssignmentProtocol($licensePoolLicenseAssignmentProtocol); + $updateMask = new FieldMask(); + $request = (new UpdateLicensePoolRequest()) + ->setLicensePool($licensePool) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateLicensePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function assignAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AssignResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $usernames = []; + $request = (new AssignRequest()) + ->setParent($parent) + ->setUsernames($usernames); + $response = $gapicClient->assignAsync($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.commerce.consumer.procurement.v1.LicenseManagementService/Assign', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getUsernames(); + $this->assertProtobufEquals($usernames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/GPBMetadata/Google/Cloud/Confidentialcomputing/V1/Service.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/GPBMetadata/Google/Cloud/Confidentialcomputing/V1/Service.php new file mode 100644 index 0000000000000000000000000000000000000000..2f60f23ea57e3771958ccb7f9ff441a464a9e086 GIT binary patch literal 4655 zcmbtY&2t+?7DrNS<7dYo6G$8_uoDpq#|2XCY*;eJgt4qRB8jbdgmAh+aoGtzCI%w<*`Q z>dh-C8n~fv5=HL0ZqFta({{s7#dMvn)gcbG44a9D)N*>2;c6uy{?IZ>nd1XE#()H# zVG?<}vH5^dqhnB`wauYgRR-0nj)Q9LudV}_wh;ufCLrMn$oS6-+qPxO0W~Q8xoQQv zo4fthTJvmfS~N@z1`3;spUE{6WDc3vV2Vzm~8J=&qX#i40Wn!wN%G(84IoxD9W)<#}H=;R&5I-_jEFMEMj*yN#7V+uK#qRdn8Js%tj{M zH!VybY7D&W8uvW2r6Dch8Km$yzy7urMOE!|k|5r}0$5IHXF+%szI+jG{EEz%UJ*iN zUM}Ua1yAwZQ}HZvH+16T5usCLp^Xj z-8j~`G{qzRW=4FC3^m6a17A-QBeL-gPV4oj4!Q>OJ=4=MiKEjih?u^a(a3Gn!^p?N zoB#A(SpJr2*g6?vnd!FMTViZSJD!JUF}ptwT}n7l;&bUXES^d) z=>kmp#B+U7tH%IF_*ie-Zaby9WW(h#6%}}R`V#3SSahw9spG(64Fa8W%7vr0S%Eoh z3T#TziSN69fEE|9b4oGM*on*H)MEY@N;hEcWTHt|;BquuA!Vi;qUTmeXksZ`Se`C@ znuFPNNF?OK2s?PHV7E+~cutaFLUd3rCJ3(sh)ke|9^rh>tz~UKTxS#II8^EL0?eIE zXz3nI@`waz2J?G8_WKvw+DVx5Ll#x^>O3`jspzv)Xjb~&&!mPl4^ze?-6R-lcAU&2 z2f+TPW5cx^O#8y}Z1F!im=G!!VY+VweciBoE@y5+`Vhb~eSK)y*ycImGi&eu1~{DR%96Y1_D4&bhVQxfr1`3bJVPxoenBYc=~or6nfY>=LVDbF~xU8BQEiYgtO4D()a%acgd!X*qf zzh&r*)l_eJ08=QyvVv#P+}a;A8qQ3`3zCZIVlZu zUQ4F1zyAA&FY@c9GP~J65sMqi)VPwG7FW_!qH;XON&m~i;;C~(x}DLvQ?)2i||Fgoogle.cloud.confidentialcomputing.v1.Challenge + */ +class Challenge extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this Challenge in the format + * `projects/*/locations/*/challenges/*` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The time at which this Challenge 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 at which this Challenge will no longer be usable. It + * is also the expiration time for any tokens generated from this Challenge. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + /** + * Output only. Indicates if this challenge has been used to generate a token. + * + * Generated from protobuf field bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $used = false; + /** + * Output only. Identical to nonce, but as a string. + * + * Generated from protobuf field string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tpm_nonce = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this Challenge in the format + * `projects/*/locations/*/challenges/*` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this Challenge was created + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. The time at which this Challenge will no longer be usable. It + * is also the expiration time for any tokens generated from this Challenge. + * @type bool $used + * Output only. Indicates if this challenge has been used to generate a token. + * @type string $tpm_nonce + * Output only. Identical to nonce, but as a string. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this Challenge in the format + * `projects/*/locations/*/challenges/*` + * + * 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 Challenge in the format + * `projects/*/locations/*/challenges/*` + * + * 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. The time at which this Challenge 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 at which this Challenge 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 at which this Challenge will no longer be usable. It + * is also the expiration time for any tokens generated from this Challenge. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.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. The time at which this Challenge will no longer be usable. It + * is also the expiration time for any tokens generated from this Challenge. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.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. Indicates if this challenge has been used to generate a token. + * + * Generated from protobuf field bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getUsed() + { + return $this->used; + } + + /** + * Output only. Indicates if this challenge has been used to generate a token. + * + * Generated from protobuf field bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setUsed($var) + { + GPBUtil::checkBool($var); + $this->used = $var; + + return $this; + } + + /** + * Output only. Identical to nonce, but as a string. + * + * Generated from protobuf field string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTpmNonce() + { + return $this->tpm_nonce; + } + + /** + * Output only. Identical to nonce, but as a string. + * + * Generated from protobuf field string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTpmNonce($var) + { + GPBUtil::checkString($var, True); + $this->tpm_nonce = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ConfidentialSpaceInfo.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ConfidentialSpaceInfo.php new file mode 100644 index 000000000000..ebabbc013b58 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ConfidentialSpaceInfo.php @@ -0,0 +1,72 @@ +google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + */ +class ConfidentialSpaceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of signed entities containing container image signatures + * that can be used for server-side signature verification. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signed_entities; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ConfidentialComputing\V1\SignedEntity>|\Google\Protobuf\Internal\RepeatedField $signed_entities + * Optional. A list of signed entities containing container image signatures + * that can be used for server-side signature verification. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of signed entities containing container image signatures + * that can be used for server-side signature verification. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignedEntities() + { + return $this->signed_entities; + } + + /** + * Optional. A list of signed entities containing container image signatures + * that can be used for server-side signature verification. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\ConfidentialComputing\V1\SignedEntity>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignedEntities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ConfidentialComputing\V1\SignedEntity::class); + $this->signed_entities = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ContainerImageSignature.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ContainerImageSignature.php new file mode 100644 index 000000000000..4826e7ea8ef1 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/ContainerImageSignature.php @@ -0,0 +1,202 @@ +google.cloud.confidentialcomputing.v1.ContainerImageSignature + */ +class ContainerImageSignature extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The binary signature payload following the SimpleSigning format + * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. + * This payload includes the container image digest. + * + * Generated from protobuf field bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $payload = ''; + /** + * Optional. A signature over the payload. + * The container image digest is incorporated into the signature as follows: + * 1. Generate a SimpleSigning format payload that includes the container + * image digest. + * 2. Generate a signature over SHA256 digest of the payload. + * The signature generation process can be represented as follows: + * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` + * + * Generated from protobuf field bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $signature = ''; + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $public_key = ''; + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sig_alg = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $payload + * Optional. The binary signature payload following the SimpleSigning format + * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. + * This payload includes the container image digest. + * @type string $signature + * Optional. A signature over the payload. + * The container image digest is incorporated into the signature as follows: + * 1. Generate a SimpleSigning format payload that includes the container + * image digest. + * 2. Generate a signature over SHA256 digest of the payload. + * The signature generation process can be represented as follows: + * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` + * @type string $public_key + * Optional. Reserved for future use. + * @type int $sig_alg + * Optional. Reserved for future use. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The binary signature payload following the SimpleSigning format + * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. + * This payload includes the container image digest. + * + * Generated from protobuf field bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPayload() + { + return $this->payload; + } + + /** + * Optional. The binary signature payload following the SimpleSigning format + * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. + * This payload includes the container image digest. + * + * Generated from protobuf field bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkString($var, False); + $this->payload = $var; + + return $this; + } + + /** + * Optional. A signature over the payload. + * The container image digest is incorporated into the signature as follows: + * 1. Generate a SimpleSigning format payload that includes the container + * image digest. + * 2. Generate a signature over SHA256 digest of the payload. + * The signature generation process can be represented as follows: + * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` + * + * Generated from protobuf field bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSignature() + { + return $this->signature; + } + + /** + * Optional. A signature over the payload. + * The container image digest is incorporated into the signature as follows: + * 1. Generate a SimpleSigning format payload that includes the container + * image digest. + * 2. Generate a signature over SHA256 digest of the payload. + * The signature generation process can be represented as follows: + * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` + * + * Generated from protobuf field bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSignature($var) + { + GPBUtil::checkString($var, False); + $this->signature = $var; + + return $this; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPublicKey() + { + return $this->public_key; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPublicKey($var) + { + GPBUtil::checkString($var, False); + $this->public_key = $var; + + return $this; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSigAlg() + { + return $this->sig_alg; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSigAlg($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ConfidentialComputing\V1\SigningAlgorithm::class); + $this->sig_alg = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/CreateChallengeRequest.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/CreateChallengeRequest.php new file mode 100644 index 000000000000..384853512d20 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/CreateChallengeRequest.php @@ -0,0 +1,137 @@ +google.cloud.confidentialcomputing.v1.CreateChallengeRequest + */ +class CreateChallengeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the location where the Challenge will be + * used, in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Challenge to be created. Currently this field can be empty as + * all the Challenge fields are set by the server. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $challenge = null; + + /** + * @param string $parent Required. The resource name of the location where the Challenge will be + * used, in the format `projects/*/locations/*`. Please see + * {@see ConfidentialComputingClient::locationName()} for help formatting this field. + * @param \Google\Cloud\ConfidentialComputing\V1\Challenge $challenge Required. The Challenge to be created. Currently this field can be empty as + * all the Challenge fields are set by the server. + * + * @return \Google\Cloud\ConfidentialComputing\V1\CreateChallengeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ConfidentialComputing\V1\Challenge $challenge): self + { + return (new self()) + ->setParent($parent) + ->setChallenge($challenge); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the location where the Challenge will be + * used, in the format `projects/*/locations/*`. + * @type \Google\Cloud\ConfidentialComputing\V1\Challenge $challenge + * Required. The Challenge to be created. Currently this field can be empty as + * all the Challenge fields are set by the server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the location where the Challenge will be + * used, in the 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 resource name of the location where the Challenge will be + * used, in the 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 Challenge to be created. Currently this field can be empty as + * all the Challenge fields are set by the server. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ConfidentialComputing\V1\Challenge|null + */ + public function getChallenge() + { + return $this->challenge; + } + + public function hasChallenge() + { + return isset($this->challenge); + } + + public function clearChallenge() + { + unset($this->challenge); + } + + /** + * Required. The Challenge to be created. Currently this field can be empty as + * all the Challenge fields are set by the server. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ConfidentialComputing\V1\Challenge $var + * @return $this + */ + public function setChallenge($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\Challenge::class); + $this->challenge = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/GcpCredentials.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/GcpCredentials.php new file mode 100644 index 000000000000..20a115c11118 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/GcpCredentials.php @@ -0,0 +1,68 @@ +google.cloud.confidentialcomputing.v1.GcpCredentials + */ +class GcpCredentials extends \Google\Protobuf\Internal\Message +{ + /** + * Same as id_tokens, but as a string. + * + * Generated from protobuf field repeated string service_account_id_tokens = 2; + */ + private $service_account_id_tokens; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $service_account_id_tokens + * Same as id_tokens, but as a string. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Same as id_tokens, but as a string. + * + * Generated from protobuf field repeated string service_account_id_tokens = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAccountIdTokens() + { + return $this->service_account_id_tokens; + } + + /** + * Same as id_tokens, but as a string. + * + * Generated from protobuf field repeated string service_account_id_tokens = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAccountIdTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_account_id_tokens = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SevSnpAttestation.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SevSnpAttestation.php new file mode 100644 index 000000000000..3f05de81d0f9 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SevSnpAttestation.php @@ -0,0 +1,127 @@ +google.cloud.confidentialcomputing.v1.SevSnpAttestation + */ +class SevSnpAttestation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The SEV-SNP Attestation Report + * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT + * Structure in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf + * + * Generated from protobuf field bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $report = ''; + /** + * Optional. Certificate bundle defined in the GHCB protocol definition + * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct + * cert_table in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf + * + * Generated from protobuf field bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $aux_blob = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $report + * Optional. The SEV-SNP Attestation Report + * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT + * Structure in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf + * @type string $aux_blob + * Optional. Certificate bundle defined in the GHCB protocol definition + * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct + * cert_table in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SEV-SNP Attestation Report + * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT + * Structure in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf + * + * Generated from protobuf field bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getReport() + { + return $this->report; + } + + /** + * Optional. The SEV-SNP Attestation Report + * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT + * Structure in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf + * + * Generated from protobuf field bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setReport($var) + { + GPBUtil::checkString($var, False); + $this->report = $var; + + return $this; + } + + /** + * Optional. Certificate bundle defined in the GHCB protocol definition + * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct + * cert_table in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf + * + * Generated from protobuf field bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAuxBlob() + { + return $this->aux_blob; + } + + /** + * Optional. Certificate bundle defined in the GHCB protocol definition + * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct + * cert_table in this document: + * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf + * + * Generated from protobuf field bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAuxBlob($var) + { + GPBUtil::checkString($var, False); + $this->aux_blob = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SignedEntity.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SignedEntity.php new file mode 100644 index 000000000000..53a38b638959 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SignedEntity.php @@ -0,0 +1,72 @@ +google.cloud.confidentialcomputing.v1.SignedEntity + */ +class SignedEntity extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of container image signatures attached to an OCI image + * object. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $container_image_signatures; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ConfidentialComputing\V1\ContainerImageSignature>|\Google\Protobuf\Internal\RepeatedField $container_image_signatures + * Optional. A list of container image signatures attached to an OCI image + * object. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of container image signatures attached to an OCI image + * object. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getContainerImageSignatures() + { + return $this->container_image_signatures; + } + + /** + * Optional. A list of container image signatures attached to an OCI image + * object. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\ConfidentialComputing\V1\ContainerImageSignature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setContainerImageSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ConfidentialComputing\V1\ContainerImageSignature::class); + $this->container_image_signatures = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SigningAlgorithm.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SigningAlgorithm.php new file mode 100644 index 000000000000..978ed0ca25f7 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/SigningAlgorithm.php @@ -0,0 +1,68 @@ +google.cloud.confidentialcomputing.v1.SigningAlgorithm + */ +class SigningAlgorithm +{ + /** + * Unspecified signing algorithm. + * + * Generated from protobuf enum SIGNING_ALGORITHM_UNSPECIFIED = 0; + */ + const SIGNING_ALGORITHM_UNSPECIFIED = 0; + /** + * RSASSA-PSS with a SHA256 digest. + * + * Generated from protobuf enum RSASSA_PSS_SHA256 = 1; + */ + const RSASSA_PSS_SHA256 = 1; + /** + * RSASSA-PKCS1 v1.5 with a SHA256 digest. + * + * Generated from protobuf enum RSASSA_PKCS1V15_SHA256 = 2; + */ + const RSASSA_PKCS1V15_SHA256 = 2; + /** + * ECDSA on the P-256 Curve with a SHA256 digest. + * + * Generated from protobuf enum ECDSA_P256_SHA256 = 3; + */ + const ECDSA_P256_SHA256 = 3; + + private static $valueToName = [ + self::SIGNING_ALGORITHM_UNSPECIFIED => 'SIGNING_ALGORITHM_UNSPECIFIED', + self::RSASSA_PSS_SHA256 => 'RSASSA_PSS_SHA256', + self::RSASSA_PKCS1V15_SHA256 => 'RSASSA_PKCS1V15_SHA256', + self::ECDSA_P256_SHA256 => 'ECDSA_P256_SHA256', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TdxCcelAttestation.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TdxCcelAttestation.php new file mode 100644 index 000000000000..5d116e026a55 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TdxCcelAttestation.php @@ -0,0 +1,181 @@ +google.cloud.confidentialcomputing.v1.TdxCcelAttestation + */ +class TdxCcelAttestation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted + * as described in the ACPI Specification 6.5. + * + * Generated from protobuf field bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ccel_acpi_table = ''; + /** + * Optional. The CCEL event log. Formatted as described in the UEFI 2.10. + * + * Generated from protobuf field bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ccel_data = ''; + /** + * Optional. An Event Log containing additional events measured into the RTMR + * that are not already present in the CCEL. + * + * Generated from protobuf field bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $canonical_event_log = ''; + /** + * Optional. The TDX attestation quote from the guest. It contains the RTMR + * values. + * + * Generated from protobuf field bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $td_quote = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ccel_acpi_table + * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted + * as described in the ACPI Specification 6.5. + * @type string $ccel_data + * Optional. The CCEL event log. Formatted as described in the UEFI 2.10. + * @type string $canonical_event_log + * Optional. An Event Log containing additional events measured into the RTMR + * that are not already present in the CCEL. + * @type string $td_quote + * Optional. The TDX attestation quote from the guest. It contains the RTMR + * values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted + * as described in the ACPI Specification 6.5. + * + * Generated from protobuf field bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCcelAcpiTable() + { + return $this->ccel_acpi_table; + } + + /** + * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted + * as described in the ACPI Specification 6.5. + * + * Generated from protobuf field bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCcelAcpiTable($var) + { + GPBUtil::checkString($var, False); + $this->ccel_acpi_table = $var; + + return $this; + } + + /** + * Optional. The CCEL event log. Formatted as described in the UEFI 2.10. + * + * Generated from protobuf field bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCcelData() + { + return $this->ccel_data; + } + + /** + * Optional. The CCEL event log. Formatted as described in the UEFI 2.10. + * + * Generated from protobuf field bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCcelData($var) + { + GPBUtil::checkString($var, False); + $this->ccel_data = $var; + + return $this; + } + + /** + * Optional. An Event Log containing additional events measured into the RTMR + * that are not already present in the CCEL. + * + * Generated from protobuf field bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCanonicalEventLog() + { + return $this->canonical_event_log; + } + + /** + * Optional. An Event Log containing additional events measured into the RTMR + * that are not already present in the CCEL. + * + * Generated from protobuf field bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCanonicalEventLog($var) + { + GPBUtil::checkString($var, False); + $this->canonical_event_log = $var; + + return $this; + } + + /** + * Optional. The TDX attestation quote from the guest. It contains the RTMR + * values. + * + * Generated from protobuf field bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTdQuote() + { + return $this->td_quote; + } + + /** + * Optional. The TDX attestation quote from the guest. It contains the RTMR + * values. + * + * Generated from protobuf field bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTdQuote($var) + { + GPBUtil::checkString($var, False); + $this->td_quote = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenOptions.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenOptions.php new file mode 100644 index 000000000000..486afd096578 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenOptions.php @@ -0,0 +1,147 @@ +google.cloud.confidentialcomputing.v1.TokenOptions + */ +class TokenOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Optional string to issue the token with a custom audience claim. + * Required if one or more nonces are specified. + * + * Generated from protobuf field string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $audience = ''; + /** + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + * + * Generated from protobuf field repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $nonce; + /** + * Optional. Optional token type to select what type of token to return. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $token_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $audience + * Optional. Optional string to issue the token with a custom audience claim. + * Required if one or more nonces are specified. + * @type array|\Google\Protobuf\Internal\RepeatedField $nonce + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + * @type int $token_type + * Optional. Optional token type to select what type of token to return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Optional string to issue the token with a custom audience claim. + * Required if one or more nonces are specified. + * + * Generated from protobuf field string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAudience() + { + return $this->audience; + } + + /** + * Optional. Optional string to issue the token with a custom audience claim. + * Required if one or more nonces are specified. + * + * Generated from protobuf field string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAudience($var) + { + GPBUtil::checkString($var, True); + $this->audience = $var; + + return $this; + } + + /** + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + * + * Generated from protobuf field repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNonce() + { + return $this->nonce; + } + + /** + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + * + * Generated from protobuf field repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNonce($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->nonce = $arr; + + return $this; + } + + /** + * Optional. Optional token type to select what type of token to return. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTokenType() + { + return $this->token_type; + } + + /** + * Optional. Optional token type to select what type of token to return. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTokenType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ConfidentialComputing\V1\TokenType::class); + $this->token_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenType.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenType.php new file mode 100644 index 000000000000..d67ad7c7c78c --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TokenType.php @@ -0,0 +1,69 @@ +google.cloud.confidentialcomputing.v1.TokenType + */ +class TokenType +{ + /** + * Unspecified token type + * + * Generated from protobuf enum TOKEN_TYPE_UNSPECIFIED = 0; + */ + const TOKEN_TYPE_UNSPECIFIED = 0; + /** + * OpenID Connect (OIDC) token type + * + * Generated from protobuf enum TOKEN_TYPE_OIDC = 1; + */ + const TOKEN_TYPE_OIDC = 1; + /** + * Public Key Infrastructure (PKI) token type + * + * Generated from protobuf enum TOKEN_TYPE_PKI = 2; + */ + const TOKEN_TYPE_PKI = 2; + /** + * Limited claim token type for AWS integration + * + * Generated from protobuf enum TOKEN_TYPE_LIMITED_AWS = 3; + */ + const TOKEN_TYPE_LIMITED_AWS = 3; + + private static $valueToName = [ + self::TOKEN_TYPE_UNSPECIFIED => 'TOKEN_TYPE_UNSPECIFIED', + self::TOKEN_TYPE_OIDC => 'TOKEN_TYPE_OIDC', + self::TOKEN_TYPE_PKI => 'TOKEN_TYPE_PKI', + self::TOKEN_TYPE_LIMITED_AWS => 'TOKEN_TYPE_LIMITED_AWS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation.php new file mode 100644 index 000000000000..4aa3a65e7f5c --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation.php @@ -0,0 +1,228 @@ +google.cloud.confidentialcomputing.v1.TpmAttestation + */ +class TpmAttestation extends \Google\Protobuf\Internal\Message +{ + /** + * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; + */ + private $quotes; + /** + * The binary TCG Event Log containing events measured into the TPM by the + * platform firmware and operating system. Formatted as described in the + * "TCG PC Client Platform Firmware Profile Specification". + * + * Generated from protobuf field bytes tcg_event_log = 2; + */ + protected $tcg_event_log = ''; + /** + * An Event Log containing additional events measured into the TPM that are + * not already present in the tcg_event_log. Formatted as described in the + * "Canonical Event Log Format" TCG Specification. + * + * Generated from protobuf field bytes canonical_event_log = 3; + */ + protected $canonical_event_log = ''; + /** + * DER-encoded X.509 certificate of the Attestation Key (otherwise known as + * an AK or a TPM restricted signing key) used to generate the quotes. + * + * Generated from protobuf field bytes ak_cert = 4; + */ + protected $ak_cert = ''; + /** + * List of DER-encoded X.509 certificates which, together with the ak_cert, + * chain back to a trusted Root Certificate. + * + * Generated from protobuf field repeated bytes cert_chain = 5; + */ + private $cert_chain; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ConfidentialComputing\V1\TpmAttestation\Quote>|\Google\Protobuf\Internal\RepeatedField $quotes + * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. + * @type string $tcg_event_log + * The binary TCG Event Log containing events measured into the TPM by the + * platform firmware and operating system. Formatted as described in the + * "TCG PC Client Platform Firmware Profile Specification". + * @type string $canonical_event_log + * An Event Log containing additional events measured into the TPM that are + * not already present in the tcg_event_log. Formatted as described in the + * "Canonical Event Log Format" TCG Specification. + * @type string $ak_cert + * DER-encoded X.509 certificate of the Attestation Key (otherwise known as + * an AK or a TPM restricted signing key) used to generate the quotes. + * @type array|\Google\Protobuf\Internal\RepeatedField $cert_chain + * List of DER-encoded X.509 certificates which, together with the ak_cert, + * chain back to a trusted Root Certificate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getQuotes() + { + return $this->quotes; + } + + /** + * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. + * + * Generated from protobuf field repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; + * @param array<\Google\Cloud\ConfidentialComputing\V1\TpmAttestation\Quote>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setQuotes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ConfidentialComputing\V1\TpmAttestation\Quote::class); + $this->quotes = $arr; + + return $this; + } + + /** + * The binary TCG Event Log containing events measured into the TPM by the + * platform firmware and operating system. Formatted as described in the + * "TCG PC Client Platform Firmware Profile Specification". + * + * Generated from protobuf field bytes tcg_event_log = 2; + * @return string + */ + public function getTcgEventLog() + { + return $this->tcg_event_log; + } + + /** + * The binary TCG Event Log containing events measured into the TPM by the + * platform firmware and operating system. Formatted as described in the + * "TCG PC Client Platform Firmware Profile Specification". + * + * Generated from protobuf field bytes tcg_event_log = 2; + * @param string $var + * @return $this + */ + public function setTcgEventLog($var) + { + GPBUtil::checkString($var, False); + $this->tcg_event_log = $var; + + return $this; + } + + /** + * An Event Log containing additional events measured into the TPM that are + * not already present in the tcg_event_log. Formatted as described in the + * "Canonical Event Log Format" TCG Specification. + * + * Generated from protobuf field bytes canonical_event_log = 3; + * @return string + */ + public function getCanonicalEventLog() + { + return $this->canonical_event_log; + } + + /** + * An Event Log containing additional events measured into the TPM that are + * not already present in the tcg_event_log. Formatted as described in the + * "Canonical Event Log Format" TCG Specification. + * + * Generated from protobuf field bytes canonical_event_log = 3; + * @param string $var + * @return $this + */ + public function setCanonicalEventLog($var) + { + GPBUtil::checkString($var, False); + $this->canonical_event_log = $var; + + return $this; + } + + /** + * DER-encoded X.509 certificate of the Attestation Key (otherwise known as + * an AK or a TPM restricted signing key) used to generate the quotes. + * + * Generated from protobuf field bytes ak_cert = 4; + * @return string + */ + public function getAkCert() + { + return $this->ak_cert; + } + + /** + * DER-encoded X.509 certificate of the Attestation Key (otherwise known as + * an AK or a TPM restricted signing key) used to generate the quotes. + * + * Generated from protobuf field bytes ak_cert = 4; + * @param string $var + * @return $this + */ + public function setAkCert($var) + { + GPBUtil::checkString($var, False); + $this->ak_cert = $var; + + return $this; + } + + /** + * List of DER-encoded X.509 certificates which, together with the ak_cert, + * chain back to a trusted Root Certificate. + * + * Generated from protobuf field repeated bytes cert_chain = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCertChain() + { + return $this->cert_chain; + } + + /** + * List of DER-encoded X.509 certificates which, together with the ak_cert, + * chain back to a trusted Root Certificate. + * + * Generated from protobuf field repeated bytes cert_chain = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCertChain($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->cert_chain = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation/Quote.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation/Quote.php new file mode 100644 index 000000000000..ebd0cf5c4a2d --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/TpmAttestation/Quote.php @@ -0,0 +1,173 @@ +google.cloud.confidentialcomputing.v1.TpmAttestation.Quote + */ +class Quote extends \Google\Protobuf\Internal\Message +{ + /** + * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID + * + * Generated from protobuf field int32 hash_algo = 1; + */ + protected $hash_algo = 0; + /** + * Raw binary values of each PCRs being quoted. + * + * Generated from protobuf field map pcr_values = 2; + */ + private $pcr_values; + /** + * TPM2 quote, encoded as a TPMS_ATTEST + * + * Generated from protobuf field bytes raw_quote = 3; + */ + protected $raw_quote = ''; + /** + * TPM2 signature, encoded as a TPMT_SIGNATURE + * + * Generated from protobuf field bytes raw_signature = 4; + */ + protected $raw_signature = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $hash_algo + * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID + * @type array|\Google\Protobuf\Internal\MapField $pcr_values + * Raw binary values of each PCRs being quoted. + * @type string $raw_quote + * TPM2 quote, encoded as a TPMS_ATTEST + * @type string $raw_signature + * TPM2 signature, encoded as a TPMT_SIGNATURE + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID + * + * Generated from protobuf field int32 hash_algo = 1; + * @return int + */ + public function getHashAlgo() + { + return $this->hash_algo; + } + + /** + * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID + * + * Generated from protobuf field int32 hash_algo = 1; + * @param int $var + * @return $this + */ + public function setHashAlgo($var) + { + GPBUtil::checkInt32($var); + $this->hash_algo = $var; + + return $this; + } + + /** + * Raw binary values of each PCRs being quoted. + * + * Generated from protobuf field map pcr_values = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getPcrValues() + { + return $this->pcr_values; + } + + /** + * Raw binary values of each PCRs being quoted. + * + * Generated from protobuf field map pcr_values = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setPcrValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::BYTES); + $this->pcr_values = $arr; + + return $this; + } + + /** + * TPM2 quote, encoded as a TPMS_ATTEST + * + * Generated from protobuf field bytes raw_quote = 3; + * @return string + */ + public function getRawQuote() + { + return $this->raw_quote; + } + + /** + * TPM2 quote, encoded as a TPMS_ATTEST + * + * Generated from protobuf field bytes raw_quote = 3; + * @param string $var + * @return $this + */ + public function setRawQuote($var) + { + GPBUtil::checkString($var, False); + $this->raw_quote = $var; + + return $this; + } + + /** + * TPM2 signature, encoded as a TPMT_SIGNATURE + * + * Generated from protobuf field bytes raw_signature = 4; + * @return string + */ + public function getRawSignature() + { + return $this->raw_signature; + } + + /** + * TPM2 signature, encoded as a TPMT_SIGNATURE + * + * Generated from protobuf field bytes raw_signature = 4; + * @param string $var + * @return $this + */ + public function setRawSignature($var) + { + GPBUtil::checkString($var, False); + $this->raw_signature = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Quote::class, \Google\Cloud\ConfidentialComputing\V1\TpmAttestation_Quote::class); + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationRequest.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationRequest.php new file mode 100644 index 000000000000..4c5835096d86 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationRequest.php @@ -0,0 +1,339 @@ +google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + */ +class VerifyAttestationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Challenge whose nonce was used to generate the + * attestation, in the format `projects/*/locations/*/challenges/*`. The + * provided Challenge will be consumed, and cannot be used again. + * + * Generated from protobuf field string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $challenge = ''; + /** + * Optional. Credentials used to populate the "emails" claim in the + * claims_token. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gcp_credentials = null; + /** + * Required. The TPM-specific data provided by the attesting platform, used to + * populate any of the claims regarding platform state. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tpm_attestation = null; + /** + * Optional. Optional information related to the Confidential Space TEE. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $confidential_space_info = null; + /** + * Optional. A collection of optional, workload-specified claims that modify + * the token output. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $token_options = null; + protected $tee_attestation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ConfidentialComputing\V1\TdxCcelAttestation $td_ccel + * Optional. A TDX with CCEL and RTMR Attestation Quote. + * @type \Google\Cloud\ConfidentialComputing\V1\SevSnpAttestation $sev_snp_attestation + * Optional. An SEV-SNP Attestation Report. + * @type string $challenge + * Required. The name of the Challenge whose nonce was used to generate the + * attestation, in the format `projects/*/locations/*/challenges/*`. The + * provided Challenge will be consumed, and cannot be used again. + * @type \Google\Cloud\ConfidentialComputing\V1\GcpCredentials $gcp_credentials + * Optional. Credentials used to populate the "emails" claim in the + * claims_token. + * @type \Google\Cloud\ConfidentialComputing\V1\TpmAttestation $tpm_attestation + * Required. The TPM-specific data provided by the attesting platform, used to + * populate any of the claims regarding platform state. + * @type \Google\Cloud\ConfidentialComputing\V1\ConfidentialSpaceInfo $confidential_space_info + * Optional. Optional information related to the Confidential Space TEE. + * @type \Google\Cloud\ConfidentialComputing\V1\TokenOptions $token_options + * Optional. A collection of optional, workload-specified claims that modify + * the token output. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A TDX with CCEL and RTMR Attestation Quote. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ConfidentialComputing\V1\TdxCcelAttestation|null + */ + public function getTdCcel() + { + return $this->readOneof(6); + } + + public function hasTdCcel() + { + return $this->hasOneof(6); + } + + /** + * Optional. A TDX with CCEL and RTMR Attestation Quote. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ConfidentialComputing\V1\TdxCcelAttestation $var + * @return $this + */ + public function setTdCcel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\TdxCcelAttestation::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. An SEV-SNP Attestation Report. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ConfidentialComputing\V1\SevSnpAttestation|null + */ + public function getSevSnpAttestation() + { + return $this->readOneof(7); + } + + public function hasSevSnpAttestation() + { + return $this->hasOneof(7); + } + + /** + * Optional. An SEV-SNP Attestation Report. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ConfidentialComputing\V1\SevSnpAttestation $var + * @return $this + */ + public function setSevSnpAttestation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\SevSnpAttestation::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Required. The name of the Challenge whose nonce was used to generate the + * attestation, in the format `projects/*/locations/*/challenges/*`. The + * provided Challenge will be consumed, and cannot be used again. + * + * Generated from protobuf field string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getChallenge() + { + return $this->challenge; + } + + /** + * Required. The name of the Challenge whose nonce was used to generate the + * attestation, in the format `projects/*/locations/*/challenges/*`. The + * provided Challenge will be consumed, and cannot be used again. + * + * Generated from protobuf field string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setChallenge($var) + { + GPBUtil::checkString($var, True); + $this->challenge = $var; + + return $this; + } + + /** + * Optional. Credentials used to populate the "emails" claim in the + * claims_token. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ConfidentialComputing\V1\GcpCredentials|null + */ + public function getGcpCredentials() + { + return $this->gcp_credentials; + } + + public function hasGcpCredentials() + { + return isset($this->gcp_credentials); + } + + public function clearGcpCredentials() + { + unset($this->gcp_credentials); + } + + /** + * Optional. Credentials used to populate the "emails" claim in the + * claims_token. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ConfidentialComputing\V1\GcpCredentials $var + * @return $this + */ + public function setGcpCredentials($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\GcpCredentials::class); + $this->gcp_credentials = $var; + + return $this; + } + + /** + * Required. The TPM-specific data provided by the attesting platform, used to + * populate any of the claims regarding platform state. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ConfidentialComputing\V1\TpmAttestation|null + */ + public function getTpmAttestation() + { + return $this->tpm_attestation; + } + + public function hasTpmAttestation() + { + return isset($this->tpm_attestation); + } + + public function clearTpmAttestation() + { + unset($this->tpm_attestation); + } + + /** + * Required. The TPM-specific data provided by the attesting platform, used to + * populate any of the claims regarding platform state. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ConfidentialComputing\V1\TpmAttestation $var + * @return $this + */ + public function setTpmAttestation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\TpmAttestation::class); + $this->tpm_attestation = $var; + + return $this; + } + + /** + * Optional. Optional information related to the Confidential Space TEE. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ConfidentialComputing\V1\ConfidentialSpaceInfo|null + */ + public function getConfidentialSpaceInfo() + { + return $this->confidential_space_info; + } + + public function hasConfidentialSpaceInfo() + { + return isset($this->confidential_space_info); + } + + public function clearConfidentialSpaceInfo() + { + unset($this->confidential_space_info); + } + + /** + * Optional. Optional information related to the Confidential Space TEE. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ConfidentialComputing\V1\ConfidentialSpaceInfo $var + * @return $this + */ + public function setConfidentialSpaceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\ConfidentialSpaceInfo::class); + $this->confidential_space_info = $var; + + return $this; + } + + /** + * Optional. A collection of optional, workload-specified claims that modify + * the token output. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ConfidentialComputing\V1\TokenOptions|null + */ + public function getTokenOptions() + { + return $this->token_options; + } + + public function hasTokenOptions() + { + return isset($this->token_options); + } + + public function clearTokenOptions() + { + unset($this->token_options); + } + + /** + * Optional. A collection of optional, workload-specified claims that modify + * the token output. + * + * Generated from protobuf field .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ConfidentialComputing\V1\TokenOptions $var + * @return $this + */ + public function setTokenOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ConfidentialComputing\V1\TokenOptions::class); + $this->token_options = $var; + + return $this; + } + + /** + * @return string + */ + public function getTeeAttestation() + { + return $this->whichOneof("tee_attestation"); + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationResponse.php b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationResponse.php new file mode 100644 index 000000000000..3bfc91194e36 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/proto/src/Google/Cloud/ConfidentialComputing/V1/VerifyAttestationResponse.php @@ -0,0 +1,106 @@ +google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + */ +class VerifyAttestationResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Same as claims_token, but as a string. + * + * Generated from protobuf field string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $oidc_claims_token = ''; + /** + * Output only. A list of messages that carry the partial error details + * related to VerifyAttestation. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $partial_errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $oidc_claims_token + * Output only. Same as claims_token, but as a string. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Output only. A list of messages that carry the partial error details + * related to VerifyAttestation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Confidentialcomputing\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Same as claims_token, but as a string. + * + * Generated from protobuf field string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOidcClaimsToken() + { + return $this->oidc_claims_token; + } + + /** + * Output only. Same as claims_token, but as a string. + * + * Generated from protobuf field string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOidcClaimsToken($var) + { + GPBUtil::checkString($var, True); + $this->oidc_claims_token = $var; + + return $this; + } + + /** + * Output only. A list of messages that carry the partial error details + * related to VerifyAttestation. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Output only. A list of messages that carry the partial error details + * related to VerifyAttestation. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/create_challenge.php b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/create_challenge.php new file mode 100644 index 000000000000..1ea4614db461 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/create_challenge.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setChallenge($challenge); + + // Call the API and handle any network failures. + try { + /** @var Challenge $response */ + $response = $confidentialComputingClient->createChallenge($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ConfidentialComputingClient::locationName('[PROJECT]', '[LOCATION]'); + + create_challenge_sample($formattedParent); +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync] diff --git a/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/get_location.php b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/get_location.php new file mode 100644 index 000000000000..0c7021ccab99 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_GetLocation_sync] diff --git a/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/list_locations.php b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/list_locations.php new file mode 100644 index 000000000000..72695bc50aec --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/list_locations.php @@ -0,0 +1,62 @@ +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 confidentialcomputing_v1_generated_ConfidentialComputing_ListLocations_sync] diff --git a/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/verify_attestation.php b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/verify_attestation.php new file mode 100644 index 000000000000..b9d1d3b8ecfe --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/samples/V1/ConfidentialComputingClient/verify_attestation.php @@ -0,0 +1,80 @@ +setChallenge($formattedChallenge) + ->setTpmAttestation($tpmAttestation); + + // Call the API and handle any network failures. + try { + /** @var VerifyAttestationResponse $response */ + $response = $confidentialComputingClient->verifyAttestation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedChallenge = ConfidentialComputingClient::challengeName( + '[PROJECT]', + '[LOCATION]', + '[UUID]' + ); + + verify_attestation_sample($formattedChallenge); +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_sync] diff --git a/owl-bot-staging/ConfidentialComputing/v1/src/V1/Client/ConfidentialComputingClient.php b/owl-bot-staging/ConfidentialComputing/v1/src/V1/Client/ConfidentialComputingClient.php new file mode 100644 index 000000000000..8dc28fe34a08 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/src/V1/Client/ConfidentialComputingClient.php @@ -0,0 +1,346 @@ + createChallengeAsync(CreateChallengeRequest $request, array $optionalArgs = []) + * @method PromiseInterface verifyAttestationAsync(VerifyAttestationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class ConfidentialComputingClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.confidentialcomputing.v1.ConfidentialComputing'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'confidentialcomputing.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'confidentialcomputing.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/confidential_computing_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/confidential_computing_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/confidential_computing_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/confidential_computing_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a challenge + * resource. + * + * @param string $project + * @param string $location + * @param string $uuid + * + * @return string The formatted challenge resource. + */ + public static function challengeName(string $project, string $location, string $uuid): string + { + return self::getPathTemplate('challenge')->render([ + 'project' => $project, + 'location' => $location, + 'uuid' => $uuid, + ]); + } + + /** + * 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 + * - challenge: projects/{project}/locations/{location}/challenges/{uuid} + * - 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 'confidentialcomputing.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 new Challenge in a given project and location. + * + * The async variant is {@see ConfidentialComputingClient::createChallengeAsync()} + * . + * + * @example samples/V1/ConfidentialComputingClient/create_challenge.php + * + * @param CreateChallengeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Challenge + * + * @throws ApiException Thrown if the API call fails. + */ + public function createChallenge(CreateChallengeRequest $request, array $callOptions = []): Challenge + { + return $this->startApiCall('CreateChallenge', $request, $callOptions)->wait(); + } + + /** + * Verifies the provided attestation info, returning a signed OIDC token. + * + * The async variant is + * {@see ConfidentialComputingClient::verifyAttestationAsync()} . + * + * @example samples/V1/ConfidentialComputingClient/verify_attestation.php + * + * @param VerifyAttestationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return VerifyAttestationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function verifyAttestation(VerifyAttestationRequest $request, array $callOptions = []): VerifyAttestationResponse + { + return $this->startApiCall('VerifyAttestation', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see ConfidentialComputingClient::getLocationAsync()} . + * + * @example samples/V1/ConfidentialComputingClient/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 ConfidentialComputingClient::listLocationsAsync()} . + * + * @example samples/V1/ConfidentialComputingClient/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/ConfidentialComputing/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ConfidentialComputing/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..b0c5bbf96486 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/src/V1/gapic_metadata.json @@ -0,0 +1,38 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.confidentialcomputing.v1", + "libraryPackage": "Google\\Cloud\\ConfidentialComputing\\V1", + "services": { + "ConfidentialComputing": { + "clients": { + "grpc": { + "libraryClient": "ConfidentialComputingGapicClient", + "rpcs": { + "CreateChallenge": { + "methods": [ + "createChallenge" + ] + }, + "VerifyAttestation": { + "methods": [ + "verifyAttestation" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_client_config.json b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_client_config.json new file mode 100644 index 000000000000..142999b0f75f --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_client_config.json @@ -0,0 +1,64 @@ +{ + "interfaces": { + "google.cloud.confidentialcomputing.v1.ConfidentialComputing": { + "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": { + "CreateChallenge": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "VerifyAttestation": { + "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_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/ConfidentialComputing/v1/src/V1/resources/confidential_computing_descriptor_config.php b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_descriptor_config.php new file mode 100644 index 000000000000..6767113b9bf8 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_descriptor_config.php @@ -0,0 +1,90 @@ + [ + 'google.cloud.confidentialcomputing.v1.ConfidentialComputing' => [ + 'CreateChallenge' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ConfidentialComputing\V1\Challenge', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'VerifyAttestation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ConfidentialComputing\V1\VerifyAttestationResponse', + 'headerParams' => [ + [ + 'keyName' => 'challenge', + 'fieldAccessors' => [ + 'getChallenge', + ], + ], + ], + ], + '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' => [ + 'challenge' => 'projects/{project}/locations/{location}/challenges/{uuid}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_rest_client_config.php b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_rest_client_config.php new file mode 100644 index 000000000000..0e6d40c8875d --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/src/V1/resources/confidential_computing_rest_client_config.php @@ -0,0 +1,77 @@ + [ + 'google.cloud.confidentialcomputing.v1.ConfidentialComputing' => [ + 'CreateChallenge' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/challenges', + 'body' => 'challenge', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'VerifyAttestation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{challenge=projects/*/locations/*/challenges/*}:verifyAttestation', + 'body' => '*', + 'placeholders' => [ + 'challenge' => [ + 'getters' => [ + 'getChallenge', + ], + ], + ], + ], + ], + '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', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/ConfidentialComputing/v1/tests/Unit/V1/Client/ConfidentialComputingClientTest.php b/owl-bot-staging/ConfidentialComputing/v1/tests/Unit/V1/Client/ConfidentialComputingClientTest.php new file mode 100644 index 000000000000..f5eecad523b6 --- /dev/null +++ b/owl-bot-staging/ConfidentialComputing/v1/tests/Unit/V1/Client/ConfidentialComputingClientTest.php @@ -0,0 +1,374 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ConfidentialComputingClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ConfidentialComputingClient($options); + } + + /** @test */ + public function createChallengeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $used = false; + $tpmNonce = 'tpmNonce-806632543'; + $expectedResponse = new Challenge(); + $expectedResponse->setName($name); + $expectedResponse->setUsed($used); + $expectedResponse->setTpmNonce($tpmNonce); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $challenge = new Challenge(); + $request = (new CreateChallengeRequest()) + ->setParent($formattedParent) + ->setChallenge($challenge); + $response = $gapicClient->createChallenge($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.confidentialcomputing.v1.ConfidentialComputing/CreateChallenge', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChallenge(); + $this->assertProtobufEquals($challenge, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChallengeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $challenge = new Challenge(); + $request = (new CreateChallengeRequest()) + ->setParent($formattedParent) + ->setChallenge($challenge); + try { + $gapicClient->createChallenge($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function verifyAttestationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $oidcClaimsToken = 'oidcClaimsToken1151909399'; + $expectedResponse = new VerifyAttestationResponse(); + $expectedResponse->setOidcClaimsToken($oidcClaimsToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedChallenge = $gapicClient->challengeName('[PROJECT]', '[LOCATION]', '[UUID]'); + $tpmAttestation = new TpmAttestation(); + $request = (new VerifyAttestationRequest()) + ->setChallenge($formattedChallenge) + ->setTpmAttestation($tpmAttestation); + $response = $gapicClient->verifyAttestation($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.confidentialcomputing.v1.ConfidentialComputing/VerifyAttestation', $actualFuncCall); + $actualValue = $actualRequestObject->getChallenge(); + $this->assertProtobufEquals($formattedChallenge, $actualValue); + $actualValue = $actualRequestObject->getTpmAttestation(); + $this->assertProtobufEquals($tpmAttestation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function verifyAttestationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedChallenge = $gapicClient->challengeName('[PROJECT]', '[LOCATION]', '[UUID]'); + $tpmAttestation = new TpmAttestation(); + $request = (new VerifyAttestationRequest()) + ->setChallenge($formattedChallenge) + ->setTpmAttestation($tpmAttestation); + try { + $gapicClient->verifyAttestation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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 createChallengeAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $used = false; + $tpmNonce = 'tpmNonce-806632543'; + $expectedResponse = new Challenge(); + $expectedResponse->setName($name); + $expectedResponse->setUsed($used); + $expectedResponse->setTpmNonce($tpmNonce); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $challenge = new Challenge(); + $request = (new CreateChallengeRequest()) + ->setParent($formattedParent) + ->setChallenge($challenge); + $response = $gapicClient->createChallengeAsync($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.confidentialcomputing.v1.ConfidentialComputing/CreateChallenge', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChallenge(); + $this->assertProtobufEquals($challenge, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Config/v1/proto/src/GPBMetadata/Google/Cloud/Config/V1/Config.php b/owl-bot-staging/Config/v1/proto/src/GPBMetadata/Google/Cloud/Config/V1/Config.php new file mode 100644 index 0000000000000000000000000000000000000000..87d54d274f6e3233410399836183994404433dc6 GIT binary patch literal 19463 zcmd5^U5p!9R^GDv&)1!9cO~gKJ;}tWnaO0biA_Ae>m)o+;X@w9H(k>5Z0kKaY1ibJggdiX-0twKFhZWkVXyF+l9ysUz z)Sq4La%Yw$FKO5PJLlYU&OPV5r|RZUb{}-fOQ}`8t@rAd-c0Qrq^t*es@v;WokpjX z+Uf7^>b+E>v)?sZdM}+yEmuVKo4a=yvjL(4jTdCc8%hX}$VBg(-yI~ofb_xen+712k zYbiD-_It>^8bgfRW3SD!#J>9a!hEFcP#+SwE zjNQ~_Mq@5FK;*5I)$8l-)l;dSZuNWZ8-f8dk`t7#S-rKHpQJ=?? zjlJa{@Zx^gItWj&J(SAnPThQXjIkS_6^$|W#a?vN0IRa<``z%1*1C=D4bYx`fbLLp zxc08Wm0xW(ZCzghKXBRBPSn*`$q&CSk(WYv0C|yhN>ewHW^N+===#zbKDgdBz=fcG zGMBM*!PT&fN~rB{E#w_u80cVtuJOjRuEri$DBdKDXH1o4m`tK}JWt;ElrN z*^P|8eb{~8;~Zb!?qSj`=B)pt9+eQl@J*SkH~xa3qyx*X45Ni!n+B2RCMA$c)k?Mw13nLr<%lwfR3euKmt zJsr*k4M|Hz=!8pRLP2-h*1vr8`)U+N^}FEM`KV~PQSXweR((frnaPP%6zEQiWqhiV zb{J2u(*eb{)jN=Hl1Y@2o}7gB=CYSV3`Yad8O`U&d<%YM3R==u z7)m=^^o(GiPCVyKe2JW@_bg+#-mpwA%&N$VH>R&nW`uV1m!s&up*}DjTpC!HF)Bv&Me6)3Y@FQ^U02 z5I|AV;KWQWz?3sNAo>RDFcg=)+TX55Vg}W zxhPtrz)|9pK7<0=BZz{)?ofHpPm*@b(mpNK0#s|TQFsL8GcRyLDRG&{Fqk$O(HSdj^!n?Sgh45HLXxt_S12a%-4$d zN*kq0S>sbn@>4ZRd~O+sWAb-!h;J;BhmhDoW2?5=YTz1Te0VQrSQHsOw1rKYy*-dD%djr z6+wC7-zfhm%5sY~;m-+q9`plev}L_OPOx_IXezh&Ol=a#J}{l|Tco3a@@+VaKGwn2 zWS;Q94l`h#ECS3t5q}~$vhde9yG5A9M(6X$*@EdJDo2End_=y zZBTD0M&Bi~M!Va$&~5Z}aqQj*8b3%{x`e~QiNI)T_DerS68>ji6Mn~S_VMg%BNw|@ z?-})-mX01GKSQRN7?j&&!KO!ak-tphE{13v5YH}(CG2R060CerBD3x@6tr;~)Xai- zio2)<60>!HhCVSlPo_J43z#;OQR*D8i`o4_ihJsGg^gh{`hd*3e|zQgmRCN({@doB z&4uDo-Y4_E$1?C>>TMGepfdg zc{r&f^rRMMW^$?6=QVf{YKlltx4x%qCS>bWrjs&wTl&cAJk;ADR*XC6$keXUvh*Ir zg7`Z@W;(ql9N9YubX#M}&r0OX0C{E?PETEa8>1Z&9GkG47)~ldJLND4C+vJ%|J2f4 z^q^72rK zD}N1YQ=l1*v+ZKW=TPeCI#&1f=rK^?6Opper>^*fX@vcVAZ^_bP+tkf8=K~jDj z7}=sp)*vHJ{)MS1^=9$xVAf_s6?8@)o$N3PVKl?&q(;o>{B{H)7@F7&(s@in!9dt0 z6l$T21({4j3fw>gg>aue`w+K=CRW`J0EY)uh;!MSK}s4xEM%QHNtMpQSX&{p?uYVu za+b$x)yjIQaNie-LX5%g#i4%4!}2`ri>960RMVEtbri(Gy5rq-wf5Zr>)ACo2o zOsLvKWyqM}^b%>A3k%4fBnu+1v<0YqHBM%Plab5hi-BXrj{W#BnVVz^@^=&sx}Ldg za6BTIPph;)lXT7t$pium_Fz|De4Cu8BgA3jAqdBei-({R=mNAsK!xKu1%X;n&<3@C zE*K}Xsk2i(#vOPY2DBjP!zTt^q(F!Zd+{JFv(JmLoN(644F-O7Qmg;#Jb3E1&SpguHd-&s8Sq_PN>!D`hA8@;GqD&F!86; z@U%Fpd@D4}FcMLaFpZ~c4gv}j{x%n$K*5H)Ta`^!yQi*~5I1p&+(oje#mg^-Dy4U|C&MB$_xd2p8jt zNyxevbPDS>`K=#1L6)3cB$Kp>`owrv7N;hl^l5ZpeN%ZvVs^R>8Z^<u_zur;K9+=JQyV-!zw z>Ot*TH>&(?gv|Mty#Ra`tLv5fcZ%grfTW65pLw1m$!e`wRcl~d&|ayjt3^La_8ysow3}Zg;YAwN%y{-%kgkZy zY^%eYUN+YnT;SIY4X*HY8!*X?nkQYT8!8<^;Sx3z#36u)BjPYR4q?0jHiiA!@bGa6 zAMC^-OZUl~m!e|=HbPDXwM6g25wNL~DMlu04X7XL^4O;g0t-^C+ zx8G{vIY9wb%`qB9fD^1mKnY`l6Kt^Z>ox$yc@xvU-1lZm!yiH;_aXNpx~o~7>|#m!9mpo zpUBcq1}uPOy~tJ+`GHNPSnrtIhW9RuC3=-PFy--CI7Oxbo_#35sVI8J2$knUqpJ;Y zw@VfoxG_M&aZ#J01Sk~%7J)2h*Bs%w&!*6jr?LmQSQ|P0!ls0Seu(Iha<>0SKf3hi zrTkYUG9%_fkA+O&c44rJaZ#)zs#93B2#$Y(p3p2Tg{#uX4>}A5!QuQynIRu?##_n3 zN<#)QK^vk`{%aOa28^=x$6sW9$w0_4bIc->+jhAKyNUU7P+-BCaMy~U?n`iu!3#!M zO!3O738*EAc*KqAV!=rafqtl02m$oNef?~gNmkqMK+y>1*>l;E3~)y7z!1j35CDMH ztb{L}003ZknT8FP@O;EqHNgsC#;cm3RT_B@^1{kx0&fAu*3m@Hsg=1#W?61#(rk+s zx(v<3*k;*T#{Wgx%Nkh_d+S^tVnIthxFU(OsfuzLMz%`sH%tp4)&sxS4moDyt3g)P1-F!CE2T6Jw`xpFC6BJ))=q@4g!n-ewwig!K@8(P4~7wVj}tUL%^N6sQ5a^e48aJjALQe0Yqb#z7l>iI z92bi5jfkzzbZyrz{&?^UKqOX*n}s!mIvkB;5C*T=aX+65L@K7eNX3lHqGQ2G1%V=t z#DFj%*78(gFkiShP>MmHD}Mc$zB4vlm80 z3`k={zTmm7WC{_7SmEEl_Pu|ZiOfg}92s!G?PK6|4>a=%z23es!mO3=O5`M7)APCP z0)pp|21wpluz_6BVnkP!gsu7#KxLlN4c7a#zkY*0Rvxp02ZvmqRl?06-vUunFiO;8 z=9DdRieKHbofc|y9I5*@7`;a<@7drDvcxh4dylbdSFHJ_FS!r7*Z0W_Lnq}T%#kU8 zD_|L#KE$)5qFcZ`pfheuRJlV=cqo-$Bnvx6yWTs1x}71(Hyl^S|?TpwoRs zmO#I4K;|B+bQSF1^eB3oD*9z|Y54i&pG5g1iJU`?_c#2%SN(5FPa9z>aF*~##gszIYTZq9}st%6&=wf4tI(d1qgvcqJ zsQ{irO)}o+LC9OlZ&aYfxR{9Mz75zZ6xfB-a`{f!aLra2Ze$R**^fjm!{L<$`7sxzZoVx{`PmnpyBfTqSGVi-Sl~d%L|JuQaX+xx5EUS4eucp<)#qvs}RzN9b zzw;8@s?u6t`41&Bj|SqvIHnxE@$u+ z#wV=W@s_;{S6sElS3EVv@^4Ax1b91#YB}(o08ckTa)^p6<=xL!ij8?_L`*t>!VK&q ze^toLTsf3~D3OG}2u==^mA|K;^t_0ETrW_i?QmWBMd_&up^r-tgGElCs~4DPuR0XE z{si!gvUp1wcN=mpct-wDVAo$N7tF4|XGnH`ITX8#EPE|x#y;|B(GAL9*a`fl^;+Ig}huj*h1zg<>1`}2H%^Zuf!{N+y;GHVNNo%K_BLtw2s;) z^>3hH3opGK<(Gp^)6-87IwB5vFy1-!73GcbT-0F>cMpx=pE1txT|FKVXZU)CWTzK~ zomt$Et8T5jp}aLNTYX9(GWPqhN6fl$r|_yXc#pjO1XF=0nwU^2xz*~X%tE0t)QUMI zoKF5bI2t^lVDQo4=_ZIBp-}rz)pO3(=&+zxm^CC%czsIE`fcUvXeV`;;X}-vfEwjr zlL&zrp~~ix1MkY5K7x-?n3;0JE%UU@2s}#Wf;tQvz{kvDAjJtY<-q$(cP~L(U{d7m z%unB2-qTl*dgSTr$Ws1ePzdJbgcJjp_jD7)j!=k?Mk<682B)u#C*?l}M3Y>F1Z>SuUhs|#=`2_Y4dW@xZc`PsA7!co zgu|vRm7c1nhXSkrsHU+J+RSA#j~_qg0=D1YtoN-4?7L3ay6~n9eq|*8KM}G7Ut$Q@ zi+r4+I92>?N>%zO%feUjArkn4!(K;xBMO$WKNHp6xxwh`?)+Y4ag}}+DqX3i3oiiU0e!6@;?DEMU5vq*{!%H`-N_>ZDV{Cg3(9CT6dhxnv~{DuwoI4_j*7r*&e zCjeXXy$OE!Of|xNK|)rCOb_Sv;QQ+A)p7jl1gz(JkNj|F3Z}3+ufJ-4iRUW&s+8*^ XR3_9%7>ywxprSq5hoTP2AtC<@EyZRg literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ApplyResults.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ApplyResults.php new file mode 100644 index 000000000000..5b1392ea4ba4 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ApplyResults.php @@ -0,0 +1,143 @@ +google.cloud.config.v1.ApplyResults + */ +class ApplyResults extends \Google\Protobuf\Internal\Message +{ + /** + * Location of a blueprint copy and other manifests in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string content = 1; + */ + protected $content = ''; + /** + * Location of artifacts (e.g. logs) in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2; + */ + protected $artifacts = ''; + /** + * Map of output name to output info. + * + * Generated from protobuf field map outputs = 3; + */ + private $outputs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content + * Location of a blueprint copy and other manifests in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * @type string $artifacts + * Location of artifacts (e.g. logs) in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * @type array|\Google\Protobuf\Internal\MapField $outputs + * Map of output name to output info. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Location of a blueprint copy and other manifests in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string content = 1; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Location of a blueprint copy and other manifests in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * 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; + } + + /** + * Location of artifacts (e.g. logs) in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2; + * @return string + */ + public function getArtifacts() + { + return $this->artifacts; + } + + /** + * Location of artifacts (e.g. logs) in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2; + * @param string $var + * @return $this + */ + public function setArtifacts($var) + { + GPBUtil::checkString($var, True); + $this->artifacts = $var; + + return $this; + } + + /** + * Map of output name to output info. + * + * Generated from protobuf field map outputs = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOutputs() + { + return $this->outputs; + } + + /** + * Map of output name to output info. + * + * Generated from protobuf field map outputs = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOutputs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformOutput::class); + $this->outputs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreateDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreateDeploymentRequest.php new file mode 100644 index 000000000000..26f39b50ff6c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreateDeploymentRequest.php @@ -0,0 +1,245 @@ +google.cloud.config.v1.CreateDeploymentRequest + */ +class CreateDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Deployment is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Deployment ID. + * + * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployment_id = ''; + /** + * Required. [Deployment][google.cloud.config.v1.Deployment] resource to be + * created. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployment = 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 parent in whose context the Deployment is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. Please see + * {@see ConfigClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Config\V1\Deployment $deployment Required. [Deployment][google.cloud.config.v1.Deployment] resource to be + * created. + * @param string $deploymentId Required. The Deployment ID. + * + * @return \Google\Cloud\Config\V1\CreateDeploymentRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Config\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 in whose context the Deployment is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * @type string $deployment_id + * Required. The Deployment ID. + * @type \Google\Cloud\Config\V1\Deployment $deployment + * Required. [Deployment][google.cloud.config.v1.Deployment] resource to be + * 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\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Deployment is created. The parent + * value is in the format: 'projects/{project_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. The parent in whose context the Deployment is created. The parent + * value is in the format: 'projects/{project_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; + } + + /** + * Required. The Deployment ID. + * + * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeploymentId() + { + return $this->deployment_id; + } + + /** + * Required. The Deployment ID. + * + * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeploymentId($var) + { + GPBUtil::checkString($var, True); + $this->deployment_id = $var; + + return $this; + } + + /** + * Required. [Deployment][google.cloud.config.v1.Deployment] resource to be + * created. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Config\V1\Deployment|null + */ + public function getDeployment() + { + return $this->deployment; + } + + public function hasDeployment() + { + return isset($this->deployment); + } + + public function clearDeployment() + { + unset($this->deployment); + } + + /** + * Required. [Deployment][google.cloud.config.v1.Deployment] resource to be + * created. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Config\V1\Deployment $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\Deployment::class); + $this->deployment = $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/Config/v1/proto/src/Google/Cloud/Config/V1/CreatePreviewRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreatePreviewRequest.php new file mode 100644 index 000000000000..a6e4f2c09257 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/CreatePreviewRequest.php @@ -0,0 +1,240 @@ +google.cloud.config.v1.CreatePreviewRequest + */ +class CreatePreviewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Preview is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The preview ID. + * + * Generated from protobuf field string preview_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $preview_id = ''; + /** + * Required. [Preview][google.cloud.config.v1.Preview] resource to be created. + * + * Generated from protobuf field .google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $preview = 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 = ''; + + /** + * @param string $parent Required. The parent in whose context the Preview is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. Please see + * {@see ConfigClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Config\V1\Preview $preview Required. [Preview][google.cloud.config.v1.Preview] resource to be created. + * + * @return \Google\Cloud\Config\V1\CreatePreviewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Config\V1\Preview $preview): self + { + return (new self()) + ->setParent($parent) + ->setPreview($preview); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent in whose context the Preview is created. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * @type string $preview_id + * Optional. The preview ID. + * @type \Google\Cloud\Config\V1\Preview $preview + * Required. [Preview][google.cloud.config.v1.Preview] resource to be 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\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Preview is created. The parent + * value is in the format: 'projects/{project_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. The parent in whose context the Preview is created. The parent + * value is in the format: 'projects/{project_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; + } + + /** + * Optional. The preview ID. + * + * Generated from protobuf field string preview_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPreviewId() + { + return $this->preview_id; + } + + /** + * Optional. The preview ID. + * + * Generated from protobuf field string preview_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPreviewId($var) + { + GPBUtil::checkString($var, True); + $this->preview_id = $var; + + return $this; + } + + /** + * Required. [Preview][google.cloud.config.v1.Preview] resource to be created. + * + * Generated from protobuf field .google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Config\V1\Preview|null + */ + public function getPreview() + { + return $this->preview; + } + + public function hasPreview() + { + return isset($this->preview); + } + + public function clearPreview() + { + unset($this->preview); + } + + /** + * Required. [Preview][google.cloud.config.v1.Preview] resource to be created. + * + * Generated from protobuf field .google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Config\V1\Preview $var + * @return $this + */ + public function setPreview($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\Preview::class); + $this->preview = $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; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest.php new file mode 100644 index 000000000000..2b57206662be --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest.php @@ -0,0 +1,242 @@ +google.cloud.config.v1.DeleteDeploymentRequest + */ +class DeleteDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * 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 = ''; + /** + * Optional. If set to true, any revisions for this deployment will also be + * deleted. (Otherwise, the request will only work if the deployment has no + * revisions.) + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + /** + * Optional. Policy on how resources actuated by the deployment should be + * deleted. If unspecified, the default behavior is to delete the underlying + * resources. + * + * Generated from protobuf field .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delete_policy = 0; + + /** + * @param string $name Required. The name of the Deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @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 revisions for this deployment will also be + * deleted. (Otherwise, the request will only work if the deployment has no + * revisions.) + * @type int $delete_policy + * Optional. Policy on how resources actuated by the deployment should be + * deleted. If unspecified, the default behavior is to delete the underlying + * resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/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; + } + + /** + * 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; + } + + /** + * Optional. If set to true, any revisions for this deployment will also be + * deleted. (Otherwise, the request will only work if the deployment has no + * revisions.) + * + * 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 revisions for this deployment will also be + * deleted. (Otherwise, the request will only work if the deployment has no + * revisions.) + * + * 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; + } + + /** + * Optional. Policy on how resources actuated by the deployment should be + * deleted. If unspecified, the default behavior is to delete the underlying + * resources. + * + * Generated from protobuf field .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDeletePolicy() + { + return $this->delete_policy; + } + + /** + * Optional. Policy on how resources actuated by the deployment should be + * deleted. If unspecified, the default behavior is to delete the underlying + * resources. + * + * Generated from protobuf field .google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy delete_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDeletePolicy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\DeleteDeploymentRequest\DeletePolicy::class); + $this->delete_policy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest/DeletePolicy.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest/DeletePolicy.php new file mode 100644 index 000000000000..601ade3212c8 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteDeploymentRequest/DeletePolicy.php @@ -0,0 +1,64 @@ +google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy + */ +class DeletePolicy +{ + /** + * Unspecified policy, resources will be deleted. + * + * Generated from protobuf enum DELETE_POLICY_UNSPECIFIED = 0; + */ + const DELETE_POLICY_UNSPECIFIED = 0; + /** + * Deletes resources actuated by the deployment. + * + * Generated from protobuf enum DELETE = 1; + */ + const DELETE = 1; + /** + * Abandons resources and only deletes the deployment and its metadata. + * + * Generated from protobuf enum ABANDON = 2; + */ + const ABANDON = 2; + + private static $valueToName = [ + self::DELETE_POLICY_UNSPECIFIED => 'DELETE_POLICY_UNSPECIFIED', + self::DELETE => 'DELETE', + self::ABANDON => 'ABANDON', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DeletePolicy::class, \Google\Cloud\Config\V1\DeleteDeploymentRequest_DeletePolicy::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeletePreviewRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeletePreviewRequest.php new file mode 100644 index 000000000000..c6cabdba176c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeletePreviewRequest.php @@ -0,0 +1,160 @@ +google.cloud.config.v1.DeletePreviewRequest + */ +class DeletePreviewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Preview in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * 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 name of the Preview in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. Please see + * {@see ConfigClient::previewName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\DeletePreviewRequest + * + * @experimental + */ + public static function 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 Preview in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * @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\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Preview in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from 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 Preview in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_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/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteStatefileRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteStatefileRequest.php new file mode 100644 index 000000000000..71649ebd15c4 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeleteStatefileRequest.php @@ -0,0 +1,124 @@ +google.cloud.config.v1.DeleteStatefileRequest + */ +class DeleteStatefileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Lock ID of the lock file to verify that the user who is deleting + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lock_id = 0; + + /** + * @param string $name Required. The name of the deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\DeleteStatefileRequest + * + * @experimental + */ + public static function 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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @type int|string $lock_id + * Required. Lock ID of the lock file to verify that the user who is deleting + * the state file previously locked the Deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/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; + } + + /** + * Required. Lock ID of the lock file to verify that the user who is deleting + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getLockId() + { + return $this->lock_id; + } + + /** + * Required. Lock ID of the lock file to verify that the user who is deleting + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setLockId($var) + { + GPBUtil::checkInt64($var); + $this->lock_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment.php new file mode 100644 index 000000000000..fab01d82f4b0 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment.php @@ -0,0 +1,1039 @@ +google.cloud.config.v1.Deployment + */ +class Deployment extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the deployment. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. Time when the deployment was 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 the deployment was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * User-defined metadata for the deployment. + * + * Generated from protobuf field map labels = 4; + */ + private $labels; + /** + * Output only. Current state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Revision name that was most recently applied. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * Generated from protobuf field string latest_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_revision = ''; + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field string state_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_detail = ''; + /** + * Output only. Error code describing errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_code = 0; + /** + * Output only. Location of artifacts from a DeleteDeployment operation. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_results = null; + /** + * Output only. Cloud Build instance UUID associated with deleting this + * deployment. + * + * Generated from protobuf field string delete_build = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_build = ''; + /** + * Output only. Location of Cloud Build logs in Google Cloud Storage, + * populated when deleting this deployment. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string delete_logs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_logs = ''; + /** + * Output only. Errors encountered when deleting this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $tf_errors; + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_logs = ''; + /** + * Optional. User-defined location of Cloud Build logs and artifacts in Google + * Cloud Storage. Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty. + * Default bucket format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * - The field cannot be updated, including changing its presence + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $artifacts_gcs_bucket = null; + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * actuating resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $service_account = null; + /** + * By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field optional bool import_existing_resources = 17; + */ + protected $import_existing_resources = null; + /** + * Optional. The user-specified Cloud Build worker pool resource in which the + * Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $worker_pool = null; + /** + * Output only. Current lock state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.LockState lock_state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lock_state = 0; + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tf_version_constraint = null; + /** + * Output only. The current Terraform version set on the deployment. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tf_version = ''; + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quota_validation = 0; + /** + * Optional. Arbitrary key-value metadata storage e.g. to help client tools + * identify deployments during automation. See + * https://google.aip.dev/148#annotations for details on format and size + * limitations. + * + * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + protected $blueprint; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Config\V1\TerraformBlueprint $terraform_blueprint + * A blueprint described using Terraform's HashiCorp Configuration Language + * as a root module. + * @type string $name + * Resource name of the deployment. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the deployment was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the deployment was last modified. + * @type array|\Google\Protobuf\Internal\MapField $labels + * User-defined metadata for the deployment. + * @type int $state + * Output only. Current state of the deployment. + * @type string $latest_revision + * Output only. Revision name that was most recently applied. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * @type string $state_detail + * Output only. Additional information regarding the current state. + * @type int $error_code + * Output only. Error code describing errors that may have occurred. + * @type \Google\Cloud\Config\V1\ApplyResults $delete_results + * Output only. Location of artifacts from a DeleteDeployment operation. + * @type string $delete_build + * Output only. Cloud Build instance UUID associated with deleting this + * deployment. + * @type string $delete_logs + * Output only. Location of Cloud Build logs in Google Cloud Storage, + * populated when deleting this deployment. Format: `gs://{bucket}/{object}`. + * @type array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $tf_errors + * Output only. Errors encountered when deleting this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * @type string $error_logs + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * @type string $artifacts_gcs_bucket + * Optional. User-defined location of Cloud Build logs and artifacts in Google + * Cloud Storage. Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty. + * Default bucket format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * - The field cannot be updated, including changing its presence + * @type string $service_account + * Optional. User-specified Service Account (SA) credentials to be used when + * actuating resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * @type bool $import_existing_resources + * By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * @type string $worker_pool + * Optional. The user-specified Cloud Build worker pool resource in which the + * Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * @type int $lock_state + * Output only. Current lock state of the deployment. + * @type string $tf_version_constraint + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * @type string $tf_version + * Output only. The current Terraform version set on the deployment. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * @type int $quota_validation + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Arbitrary key-value metadata storage e.g. to help client tools + * identify deployments during automation. See + * https://google.aip.dev/148#annotations for details on format and size + * limitations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * A blueprint described using Terraform's HashiCorp Configuration Language + * as a root module. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6; + * @return \Google\Cloud\Config\V1\TerraformBlueprint|null + */ + public function getTerraformBlueprint() + { + return $this->readOneof(6); + } + + public function hasTerraformBlueprint() + { + return $this->hasOneof(6); + } + + /** + * A blueprint described using Terraform's HashiCorp Configuration Language + * as a root module. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6; + * @param \Google\Cloud\Config\V1\TerraformBlueprint $var + * @return $this + */ + public function setTerraformBlueprint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\TerraformBlueprint::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Resource name of the deployment. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of the deployment. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}` + * + * 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. Time when the deployment 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. Time when the deployment 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. Time when the deployment was last modified. + * + * 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 the deployment was last modified. + * + * 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; + } + + /** + * User-defined metadata for the deployment. + * + * Generated from protobuf field map labels = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * User-defined metadata for the deployment. + * + * 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; + } + + /** + * Output only. Current state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Deployment\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Revision name that was most recently applied. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * Generated from protobuf field string latest_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLatestRevision() + { + return $this->latest_revision; + } + + /** + * Output only. Revision name that was most recently applied. + * Format: `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * Generated from protobuf field string latest_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLatestRevision($var) + { + GPBUtil::checkString($var, True); + $this->latest_revision = $var; + + return $this; + } + + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field string state_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateDetail() + { + return $this->state_detail; + } + + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field string state_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateDetail($var) + { + GPBUtil::checkString($var, True); + $this->state_detail = $var; + + return $this; + } + + /** + * Output only. Error code describing errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getErrorCode() + { + return $this->error_code; + } + + /** + * Output only. Error code describing errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setErrorCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Deployment\ErrorCode::class); + $this->error_code = $var; + + return $this; + } + + /** + * Output only. Location of artifacts from a DeleteDeployment operation. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\ApplyResults|null + */ + public function getDeleteResults() + { + return $this->delete_results; + } + + public function hasDeleteResults() + { + return isset($this->delete_results); + } + + public function clearDeleteResults() + { + unset($this->delete_results); + } + + /** + * Output only. Location of artifacts from a DeleteDeployment operation. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\ApplyResults $var + * @return $this + */ + public function setDeleteResults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ApplyResults::class); + $this->delete_results = $var; + + return $this; + } + + /** + * Output only. Cloud Build instance UUID associated with deleting this + * deployment. + * + * Generated from protobuf field string delete_build = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDeleteBuild() + { + return $this->delete_build; + } + + /** + * Output only. Cloud Build instance UUID associated with deleting this + * deployment. + * + * Generated from protobuf field string delete_build = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDeleteBuild($var) + { + GPBUtil::checkString($var, True); + $this->delete_build = $var; + + return $this; + } + + /** + * Output only. Location of Cloud Build logs in Google Cloud Storage, + * populated when deleting this deployment. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string delete_logs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDeleteLogs() + { + return $this->delete_logs; + } + + /** + * Output only. Location of Cloud Build logs in Google Cloud Storage, + * populated when deleting this deployment. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string delete_logs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDeleteLogs($var) + { + GPBUtil::checkString($var, True); + $this->delete_logs = $var; + + return $this; + } + + /** + * Output only. Errors encountered when deleting this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTfErrors() + { + return $this->tf_errors; + } + + /** + * Output only. Errors encountered when deleting this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTfErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformError::class); + $this->tf_errors = $arr; + + return $this; + } + + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorLogs() + { + return $this->error_logs; + } + + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorLogs($var) + { + GPBUtil::checkString($var, True); + $this->error_logs = $var; + + return $this; + } + + /** + * Optional. User-defined location of Cloud Build logs and artifacts in Google + * Cloud Storage. Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty. + * Default bucket format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * - The field cannot be updated, including changing its presence + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getArtifactsGcsBucket() + { + return isset($this->artifacts_gcs_bucket) ? $this->artifacts_gcs_bucket : ''; + } + + public function hasArtifactsGcsBucket() + { + return isset($this->artifacts_gcs_bucket); + } + + public function clearArtifactsGcsBucket() + { + unset($this->artifacts_gcs_bucket); + } + + /** + * Optional. User-defined location of Cloud Build logs and artifacts in Google + * Cloud Storage. Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty. + * Default bucket format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * - The field cannot be updated, including changing its presence + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setArtifactsGcsBucket($var) + { + GPBUtil::checkString($var, True); + $this->artifacts_gcs_bucket = $var; + + return $this; + } + + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * actuating resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getServiceAccount() + { + return isset($this->service_account) ? $this->service_account : ''; + } + + public function hasServiceAccount() + { + return isset($this->service_account); + } + + public function clearServiceAccount() + { + unset($this->service_account); + } + + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * actuating resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field optional bool import_existing_resources = 17; + * @return bool + */ + public function getImportExistingResources() + { + return isset($this->import_existing_resources) ? $this->import_existing_resources : false; + } + + public function hasImportExistingResources() + { + return isset($this->import_existing_resources); + } + + public function clearImportExistingResources() + { + unset($this->import_existing_resources); + } + + /** + * By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field optional bool import_existing_resources = 17; + * @param bool $var + * @return $this + */ + public function setImportExistingResources($var) + { + GPBUtil::checkBool($var); + $this->import_existing_resources = $var; + + return $this; + } + + /** + * Optional. The user-specified Cloud Build worker pool resource in which the + * Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkerPool() + { + return isset($this->worker_pool) ? $this->worker_pool : ''; + } + + public function hasWorkerPool() + { + return isset($this->worker_pool); + } + + public function clearWorkerPool() + { + unset($this->worker_pool); + } + + /** + * Optional. The user-specified Cloud Build worker pool resource in which the + * Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Output only. Current lock state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.LockState lock_state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLockState() + { + return $this->lock_state; + } + + /** + * Output only. Current lock state of the deployment. + * + * Generated from protobuf field .google.cloud.config.v1.Deployment.LockState lock_state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLockState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Deployment\LockState::class); + $this->lock_state = $var; + + return $this; + } + + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTfVersionConstraint() + { + return isset($this->tf_version_constraint) ? $this->tf_version_constraint : ''; + } + + public function hasTfVersionConstraint() + { + return isset($this->tf_version_constraint); + } + + public function clearTfVersionConstraint() + { + unset($this->tf_version_constraint); + } + + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTfVersionConstraint($var) + { + GPBUtil::checkString($var, True); + $this->tf_version_constraint = $var; + + return $this; + } + + /** + * Output only. The current Terraform version set on the deployment. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTfVersion() + { + return $this->tf_version; + } + + /** + * Output only. The current Terraform version set on the deployment. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTfVersion($var) + { + GPBUtil::checkString($var, True); + $this->tf_version = $var; + + return $this; + } + + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQuotaValidation() + { + return $this->quota_validation; + } + + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQuotaValidation($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\QuotaValidation::class); + $this->quota_validation = $var; + + return $this; + } + + /** + * Optional. Arbitrary key-value metadata storage e.g. to help client tools + * identify deployments during automation. See + * https://google.aip.dev/148#annotations for details on format and size + * limitations. + * + * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Arbitrary key-value metadata storage e.g. to help client tools + * identify deployments during automation. See + * https://google.aip.dev/148#annotations for details on format and size + * limitations. + * + * Generated from protobuf field map annotations = 24 [(.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; + } + + /** + * @return string + */ + public function getBlueprint() + { + return $this->whichOneof("blueprint"); + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/ErrorCode.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/ErrorCode.php new file mode 100644 index 000000000000..956e273d0fa6 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/ErrorCode.php @@ -0,0 +1,95 @@ +google.cloud.config.v1.Deployment.ErrorCode + */ +class ErrorCode +{ + /** + * No error code was specified. + * + * Generated from protobuf enum ERROR_CODE_UNSPECIFIED = 0; + */ + const ERROR_CODE_UNSPECIFIED = 0; + /** + * The revision failed. See Revision for more details. + * + * Generated from protobuf enum REVISION_FAILED = 1; + */ + const REVISION_FAILED = 1; + /** + * Cloud Build failed due to a permission issue. + * + * Generated from protobuf enum CLOUD_BUILD_PERMISSION_DENIED = 3; + */ + const CLOUD_BUILD_PERMISSION_DENIED = 3; + /** + * Cloud Build job associated with a deployment deletion could not be + * started. + * + * Generated from protobuf enum DELETE_BUILD_API_FAILED = 5; + */ + const DELETE_BUILD_API_FAILED = 5; + /** + * Cloud Build job associated with a deployment deletion was started but + * failed. + * + * Generated from protobuf enum DELETE_BUILD_RUN_FAILED = 6; + */ + const DELETE_BUILD_RUN_FAILED = 6; + /** + * Cloud Storage bucket creation failed due to a permission issue. + * + * Generated from protobuf enum BUCKET_CREATION_PERMISSION_DENIED = 7; + */ + const BUCKET_CREATION_PERMISSION_DENIED = 7; + /** + * Cloud Storage bucket creation failed due to an issue unrelated to + * permissions. + * + * Generated from protobuf enum BUCKET_CREATION_FAILED = 8; + */ + const BUCKET_CREATION_FAILED = 8; + + private static $valueToName = [ + self::ERROR_CODE_UNSPECIFIED => 'ERROR_CODE_UNSPECIFIED', + self::REVISION_FAILED => 'REVISION_FAILED', + self::CLOUD_BUILD_PERMISSION_DENIED => 'CLOUD_BUILD_PERMISSION_DENIED', + self::DELETE_BUILD_API_FAILED => 'DELETE_BUILD_API_FAILED', + self::DELETE_BUILD_RUN_FAILED => 'DELETE_BUILD_RUN_FAILED', + self::BUCKET_CREATION_PERMISSION_DENIED => 'BUCKET_CREATION_PERMISSION_DENIED', + self::BUCKET_CREATION_FAILED => 'BUCKET_CREATION_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(ErrorCode::class, \Google\Cloud\Config\V1\Deployment_ErrorCode::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/LockState.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/LockState.php new file mode 100644 index 000000000000..40fbf6a2edd0 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/LockState.php @@ -0,0 +1,92 @@ +google.cloud.config.v1.Deployment.LockState + */ +class LockState +{ + /** + * The default value. This value is used if the lock state is omitted. + * + * Generated from protobuf enum LOCK_STATE_UNSPECIFIED = 0; + */ + const LOCK_STATE_UNSPECIFIED = 0; + /** + * The deployment is locked. + * + * Generated from protobuf enum LOCKED = 1; + */ + const LOCKED = 1; + /** + * The deployment is unlocked. + * + * Generated from protobuf enum UNLOCKED = 2; + */ + const UNLOCKED = 2; + /** + * The deployment is being locked. + * + * Generated from protobuf enum LOCKING = 3; + */ + const LOCKING = 3; + /** + * The deployment is being unlocked. + * + * Generated from protobuf enum UNLOCKING = 4; + */ + const UNLOCKING = 4; + /** + * The deployment has failed to lock. + * + * Generated from protobuf enum LOCK_FAILED = 5; + */ + const LOCK_FAILED = 5; + /** + * The deployment has failed to unlock. + * + * Generated from protobuf enum UNLOCK_FAILED = 6; + */ + const UNLOCK_FAILED = 6; + + private static $valueToName = [ + self::LOCK_STATE_UNSPECIFIED => 'LOCK_STATE_UNSPECIFIED', + self::LOCKED => 'LOCKED', + self::UNLOCKED => 'UNLOCKED', + self::LOCKING => 'LOCKING', + self::UNLOCKING => 'UNLOCKING', + self::LOCK_FAILED => 'LOCK_FAILED', + self::UNLOCK_FAILED => 'UNLOCK_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(LockState::class, \Google\Cloud\Config\V1\Deployment_LockState::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/State.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/State.php new file mode 100644 index 000000000000..d7614899fe8c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Deployment/State.php @@ -0,0 +1,100 @@ +google.cloud.config.v1.Deployment.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 deployment is being created. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * The deployment is healthy. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * The deployment is being updated. + * + * Generated from protobuf enum UPDATING = 3; + */ + const UPDATING = 3; + /** + * The deployment is being deleted. + * + * Generated from protobuf enum DELETING = 4; + */ + const DELETING = 4; + /** + * The deployment has encountered an unexpected error. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + /** + * The deployment is no longer being actively reconciled. + * This may be the result of recovering the project after deletion. + * + * Generated from protobuf enum SUSPENDED = 6; + */ + const SUSPENDED = 6; + /** + * The deployment has been deleted. + * + * Generated from protobuf enum DELETED = 7; + */ + const DELETED = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::ACTIVE => 'ACTIVE', + self::UPDATING => 'UPDATING', + self::DELETING => 'DELETING', + self::FAILED => 'FAILED', + 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\Cloud\Config\V1\Deployment_State::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata.php new file mode 100644 index 000000000000..7552319424f3 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata.php @@ -0,0 +1,183 @@ +google.cloud.config.v1.DeploymentOperationMetadata + */ +class DeploymentOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The current step the deployment operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep step = 1; + */ + protected $step = 0; + /** + * Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 2; + */ + protected $apply_results = null; + /** + * Output only. Cloud Build instance UUID associated with this operation. + * + * Generated from protobuf field string build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $build = ''; + /** + * Output only. Location of Deployment operations logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $logs = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The current step the deployment operation is running. + * @type \Google\Cloud\Config\V1\ApplyResults $apply_results + * Outputs and artifacts from applying a deployment. + * @type string $build + * Output only. Cloud Build instance UUID associated with this operation. + * @type string $logs + * Output only. Location of Deployment operations logs in + * `gs://{bucket}/{object}` format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * The current step the deployment operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The current step the deployment operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\DeploymentOperationMetadata\DeploymentStep::class); + $this->step = $var; + + return $this; + } + + /** + * Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 2; + * @return \Google\Cloud\Config\V1\ApplyResults|null + */ + public function getApplyResults() + { + return $this->apply_results; + } + + public function hasApplyResults() + { + return isset($this->apply_results); + } + + public function clearApplyResults() + { + unset($this->apply_results); + } + + /** + * Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 2; + * @param \Google\Cloud\Config\V1\ApplyResults $var + * @return $this + */ + public function setApplyResults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ApplyResults::class); + $this->apply_results = $var; + + return $this; + } + + /** + * Output only. Cloud Build instance UUID associated with this operation. + * + * Generated from protobuf field string build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. Cloud Build instance UUID associated with this operation. + * + * Generated from protobuf field string build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. Location of Deployment operations logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Output only. Location of Deployment operations logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLogs($var) + { + GPBUtil::checkString($var, True); + $this->logs = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata/DeploymentStep.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata/DeploymentStep.php new file mode 100644 index 000000000000..ee19e323e236 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/DeploymentOperationMetadata/DeploymentStep.php @@ -0,0 +1,135 @@ +google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep + */ +class DeploymentStep +{ + /** + * Unspecified deployment step + * + * Generated from protobuf enum DEPLOYMENT_STEP_UNSPECIFIED = 0; + */ + const DEPLOYMENT_STEP_UNSPECIFIED = 0; + /** + * Infra Manager is creating a Google Cloud Storage bucket to store + * artifacts and metadata about the deployment and revision + * + * Generated from protobuf enum PREPARING_STORAGE_BUCKET = 1; + */ + const PREPARING_STORAGE_BUCKET = 1; + /** + * Downloading the blueprint onto the Google Cloud Storage bucket + * + * Generated from protobuf enum DOWNLOADING_BLUEPRINT = 2; + */ + const DOWNLOADING_BLUEPRINT = 2; + /** + * Initializing Terraform using `terraform init` + * + * Generated from protobuf enum RUNNING_TF_INIT = 3; + */ + const RUNNING_TF_INIT = 3; + /** + * Running `terraform plan` + * + * Generated from protobuf enum RUNNING_TF_PLAN = 4; + */ + const RUNNING_TF_PLAN = 4; + /** + * Actuating resources using Terraform using `terraform apply` + * + * Generated from protobuf enum RUNNING_TF_APPLY = 5; + */ + const RUNNING_TF_APPLY = 5; + /** + * Destroying resources using Terraform using `terraform destroy` + * + * Generated from protobuf enum RUNNING_TF_DESTROY = 6; + */ + const RUNNING_TF_DESTROY = 6; + /** + * Validating the uploaded TF state file when unlocking a deployment + * + * Generated from protobuf enum RUNNING_TF_VALIDATE = 7; + */ + const RUNNING_TF_VALIDATE = 7; + /** + * Unlocking a deployment + * + * Generated from protobuf enum UNLOCKING_DEPLOYMENT = 8; + */ + const UNLOCKING_DEPLOYMENT = 8; + /** + * Operation was successful + * + * Generated from protobuf enum SUCCEEDED = 9; + */ + const SUCCEEDED = 9; + /** + * Operation failed + * + * Generated from protobuf enum FAILED = 10; + */ + const FAILED = 10; + /** + * Validating the provided repository. + * + * Generated from protobuf enum VALIDATING_REPOSITORY = 11; + */ + const VALIDATING_REPOSITORY = 11; + /** + * Running quota validation + * + * Generated from protobuf enum RUNNING_QUOTA_VALIDATION = 12; + */ + const RUNNING_QUOTA_VALIDATION = 12; + + private static $valueToName = [ + self::DEPLOYMENT_STEP_UNSPECIFIED => 'DEPLOYMENT_STEP_UNSPECIFIED', + self::PREPARING_STORAGE_BUCKET => 'PREPARING_STORAGE_BUCKET', + self::DOWNLOADING_BLUEPRINT => 'DOWNLOADING_BLUEPRINT', + self::RUNNING_TF_INIT => 'RUNNING_TF_INIT', + self::RUNNING_TF_PLAN => 'RUNNING_TF_PLAN', + self::RUNNING_TF_APPLY => 'RUNNING_TF_APPLY', + self::RUNNING_TF_DESTROY => 'RUNNING_TF_DESTROY', + self::RUNNING_TF_VALIDATE => 'RUNNING_TF_VALIDATE', + self::UNLOCKING_DEPLOYMENT => 'UNLOCKING_DEPLOYMENT', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::VALIDATING_REPOSITORY => 'VALIDATING_REPOSITORY', + self::RUNNING_QUOTA_VALIDATION => 'RUNNING_QUOTA_VALIDATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DeploymentStep::class, \Google\Cloud\Config\V1\DeploymentOperationMetadata_DeploymentStep::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportDeploymentStatefileRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportDeploymentStatefileRequest.php new file mode 100644 index 000000000000..8bf09469d3de --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportDeploymentStatefileRequest.php @@ -0,0 +1,118 @@ +google.cloud.config.v1.ExportDeploymentStatefileRequest + */ +class ExportDeploymentStatefileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. If this flag is set to true, the exported deployment state file + * will be the draft state. This will enable the draft file to be validated + * before copying it over to the working state on unlock. + * + * Generated from protobuf field bool draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $draft = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @type bool $draft + * Optional. If this flag is set to true, the exported deployment state file + * will be the draft state. This will enable the draft file to be validated + * before copying it over to the working state on unlock. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated 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 in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. If this flag is set to true, the exported deployment state file + * will be the draft state. This will enable the draft file to be validated + * before copying it over to the working state on unlock. + * + * Generated from protobuf field bool draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDraft() + { + return $this->draft; + } + + /** + * Optional. If this flag is set to true, the exported deployment state file + * will be the draft state. This will enable the draft file to be validated + * before copying it over to the working state on unlock. + * + * Generated from protobuf field bool draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDraft($var) + { + GPBUtil::checkBool($var); + $this->draft = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportLockInfoRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportLockInfoRequest.php new file mode 100644 index 000000000000..ef195f0e38e0 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportLockInfoRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.ExportLockInfoRequest + */ +class ExportLockInfoRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\ExportLockInfoRequest + * + * @experimental + */ + public static function 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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/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/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultRequest.php new file mode 100644 index 000000000000..b00ee3ad96cc --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultRequest.php @@ -0,0 +1,75 @@ +google.cloud.config.v1.ExportPreviewResultRequest + */ +class ExportPreviewResultRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The preview whose results should be exported. The preview value + * is in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The preview whose results should be exported. The preview value + * is in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The preview whose results should be exported. The preview value + * is in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated 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 preview whose results should be exported. The preview value + * is in the format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultResponse.php new file mode 100644 index 000000000000..562f5b801d7f --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportPreviewResultResponse.php @@ -0,0 +1,77 @@ +google.cloud.config.v1.ExportPreviewResultResponse + */ +class ExportPreviewResultResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Signed URLs for accessing the plan files. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewResult result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Config\V1\PreviewResult $result + * Output only. Signed URLs for accessing the plan files. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Signed URLs for accessing the plan files. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewResult result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\PreviewResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Output only. Signed URLs for accessing the plan files. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewResult result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\PreviewResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\PreviewResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportRevisionStatefileRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportRevisionStatefileRequest.php new file mode 100644 index 000000000000..579d506a9e94 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ExportRevisionStatefileRequest.php @@ -0,0 +1,76 @@ +google.cloud.config.v1.ExportRevisionStatefileRequest + */ +class ExportRevisionStatefileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated 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 in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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/Config/v1/proto/src/Google/Cloud/Config/V1/GetDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetDeploymentRequest.php new file mode 100644 index 000000000000..59a272183d84 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetDeploymentRequest.php @@ -0,0 +1,84 @@ +google.cloud.config.v1.GetDeploymentRequest + */ +class GetDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the deployment. Format: + * 'projects/{project_id}/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. Format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\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. Format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the deployment. Format: + * 'projects/{project_id}/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. Format: + * 'projects/{project_id}/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/Config/v1/proto/src/Google/Cloud/Config/V1/GetPreviewRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetPreviewRequest.php new file mode 100644 index 000000000000..ea775d2d2a84 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetPreviewRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.GetPreviewRequest + */ +class GetPreviewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the preview. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * 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 preview. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. Please see + * {@see ConfigClient::previewName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\GetPreviewRequest + * + * @experimental + */ + public static function 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 preview. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the preview. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from 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 preview. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetResourceRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetResourceRequest.php new file mode 100644 index 000000000000..be4a56002c9d --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetResourceRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.GetResourceRequest + */ +class GetResourceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Resource in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. + * + * 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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. Please see + * {@see ConfigClient::resourceName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\GetResourceRequest + * + * @experimental + */ + public static function 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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Resource in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{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. The name of the Resource in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{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/Config/v1/proto/src/Google/Cloud/Config/V1/GetRevisionRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetRevisionRequest.php new file mode 100644 index 000000000000..a551f41c7a7b --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetRevisionRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.GetRevisionRequest + */ +class GetRevisionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Revision in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * 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 Revision in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. Please see + * {@see ConfigClient::revisionName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\GetRevisionRequest + * + * @experimental + */ + public static function 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 Revision in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Revision in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from 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 Revision in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetTerraformVersionRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetTerraformVersionRequest.php new file mode 100644 index 000000000000..3808e68209da --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GetTerraformVersionRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.GetTerraformVersionRequest + */ +class GetTerraformVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TerraformVersion. Format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_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 TerraformVersion. Format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' + * Please see {@see ConfigClient::terraformVersionName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\GetTerraformVersionRequest + * + * @experimental + */ + public static function 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 TerraformVersion. Format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TerraformVersion. Format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_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 TerraformVersion. Format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_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/Config/v1/proto/src/Google/Cloud/Config/V1/GitSource.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GitSource.php new file mode 100644 index 000000000000..9c54f4f7ec1c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/GitSource.php @@ -0,0 +1,173 @@ +google.cloud.config.v1.GitSource + */ +class GitSource extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Repository URL. + * Example: 'https://github.com/kubernetes/examples.git' + * + * Generated from protobuf field optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $repo = null; + /** + * Optional. Subdirectory inside the repository. + * Example: 'staging/my-package' + * + * Generated from protobuf field optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $directory = null; + /** + * Optional. Git reference (e.g. branch or tag). + * + * Generated from protobuf field optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ref = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $repo + * Optional. Repository URL. + * Example: 'https://github.com/kubernetes/examples.git' + * @type string $directory + * Optional. Subdirectory inside the repository. + * Example: 'staging/my-package' + * @type string $ref + * Optional. Git reference (e.g. branch or tag). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Repository URL. + * Example: 'https://github.com/kubernetes/examples.git' + * + * Generated from protobuf field optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRepo() + { + return isset($this->repo) ? $this->repo : ''; + } + + public function hasRepo() + { + return isset($this->repo); + } + + public function clearRepo() + { + unset($this->repo); + } + + /** + * Optional. Repository URL. + * Example: 'https://github.com/kubernetes/examples.git' + * + * Generated from protobuf field optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRepo($var) + { + GPBUtil::checkString($var, True); + $this->repo = $var; + + return $this; + } + + /** + * Optional. Subdirectory inside the repository. + * Example: 'staging/my-package' + * + * Generated from protobuf field optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDirectory() + { + return isset($this->directory) ? $this->directory : ''; + } + + public function hasDirectory() + { + return isset($this->directory); + } + + public function clearDirectory() + { + unset($this->directory); + } + + /** + * Optional. Subdirectory inside the repository. + * Example: 'staging/my-package' + * + * Generated from protobuf field optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDirectory($var) + { + GPBUtil::checkString($var, True); + $this->directory = $var; + + return $this; + } + + /** + * Optional. Git reference (e.g. branch or tag). + * + * Generated from protobuf field optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRef() + { + return isset($this->ref) ? $this->ref : ''; + } + + public function hasRef() + { + return isset($this->ref); + } + + public function clearRef() + { + unset($this->ref); + } + + /** + * Optional. Git reference (e.g. branch or tag). + * + * Generated from protobuf field optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRef($var) + { + GPBUtil::checkString($var, True); + $this->ref = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ImportStatefileRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ImportStatefileRequest.php new file mode 100644 index 000000000000..a70d7cbb9eba --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ImportStatefileRequest.php @@ -0,0 +1,166 @@ +google.cloud.config.v1.ImportStatefileRequest + */ +class ImportStatefileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Lock ID of the lock file to verify that the user who is importing + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lock_id = 0; + /** + * Optional. + * + * Generated from protobuf field bool skip_draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip_draft = false; + + /** + * @param string $parent Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * @param int $lockId Required. Lock ID of the lock file to verify that the user who is importing + * the state file previously locked the Deployment. + * + * @return \Google\Cloud\Config\V1\ImportStatefileRequest + * + * @experimental + */ + public static function build(string $parent, int $lockId): self + { + return (new self()) + ->setParent($parent) + ->setLockId($lockId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @type int|string $lock_id + * Required. Lock ID of the lock file to verify that the user who is importing + * the state file previously locked the Deployment. + * @type bool $skip_draft + * Optional. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated 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 in whose context the statefile is listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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. Lock ID of the lock file to verify that the user who is importing + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getLockId() + { + return $this->lock_id; + } + + /** + * Required. Lock ID of the lock file to verify that the user who is importing + * the state file previously locked the Deployment. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setLockId($var) + { + GPBUtil::checkInt64($var); + $this->lock_id = $var; + + return $this; + } + + /** + * Optional. + * + * Generated from protobuf field bool skip_draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSkipDraft() + { + return $this->skip_draft; + } + + /** + * Optional. + * + * Generated from protobuf field bool skip_draft = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSkipDraft($var) + { + GPBUtil::checkBool($var); + $this->skip_draft = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsRequest.php new file mode 100644 index 000000000000..b5aca6b46201 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsRequest.php @@ -0,0 +1,305 @@ +google.cloud.config.v1.ListDeploymentsRequest + */ +class ListDeploymentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Deployments are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Token returned by previous call to 'ListDeployments' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent in whose context the Deployments are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. Please see + * {@see ConfigClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Config\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 in whose context the Deployments are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. + * @type int $page_size + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * @type string $page_token + * Token returned by previous call to 'ListDeployments' which specifies the + * position in the list from where to continue listing the resources. + * @type string $filter + * Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * @type string $order_by + * Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Deployments are listed. The + * parent value is in the format: + * 'projects/{project_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. The parent in whose context the Deployments are listed. The + * parent value is in the format: + * 'projects/{project_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; + } + + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 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; + } + + /** + * Token returned by previous call to 'ListDeployments' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token returned by previous call to 'ListDeployments' which specifies the + * position in the list from where to continue listing the resources. + * + * 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; + } + + /** + * Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * 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; + } + + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to use to sort the list. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsResponse.php new file mode 100644 index 000000000000..9f1b6da072d6 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListDeploymentsResponse.php @@ -0,0 +1,137 @@ +google.cloud.config.v1.ListDeploymentsResponse + */ +class ListDeploymentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of [Deployment][google.cloud.config.v1.Deployment]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Deployment deployments = 1; + */ + private $deployments; + /** + * Token to be supplied to the next ListDeployments request via `page_token` + * to obtain the next set of results. + * + * 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\Config\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $deployments + * List of [Deployment][google.cloud.config.v1.Deployment]s. + * @type string $next_page_token + * Token to be supplied to the next ListDeployments request via `page_token` + * to obtain the next set of results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * List of [Deployment][google.cloud.config.v1.Deployment]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Deployment deployments = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployments() + { + return $this->deployments; + } + + /** + * List of [Deployment][google.cloud.config.v1.Deployment]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Deployment deployments = 1; + * @param array<\Google\Cloud\Config\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\Deployment::class); + $this->deployments = $arr; + + return $this; + } + + /** + * Token to be supplied to the next ListDeployments request via `page_token` + * to obtain the next set of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to be supplied to the next ListDeployments request via `page_token` + * to obtain the next set 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; + } + + /** + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsRequest.php new file mode 100644 index 000000000000..a1f19e2cae2d --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsRequest.php @@ -0,0 +1,306 @@ +google.cloud.config.v1.ListPreviewsRequest + */ +class ListPreviewsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Previews are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Token returned by previous call to 'ListDeployments' which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent in whose context the Previews are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. Please see + * {@see ConfigClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\ListPreviewsRequest + * + * @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 in whose context the Previews are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}'. + * @type int $page_size + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * @type string $page_token + * Optional. Token returned by previous call to 'ListDeployments' which + * specifies the position in the list from where to continue listing the + * resources. + * @type string $filter + * Optional. Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * @type string $order_by + * Optional. Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Previews are listed. The parent + * value is in the format: 'projects/{project_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. The parent in whose context the Previews are listed. The parent + * value is in the format: 'projects/{project_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; + } + + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 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. Token returned by previous call to 'ListDeployments' which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Token returned by previous call to 'ListDeployments' which + * specifies the position in the list from where to continue listing the + * resources. + * + * 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. Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists the Deployments that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Deployments in CREATING state. + * state=CREATING + * + * 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 to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to use to sort the list. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsResponse.php new file mode 100644 index 000000000000..f4532c3073de --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListPreviewsResponse.php @@ -0,0 +1,139 @@ +google.cloud.config.v1.ListPreviewsResponse + */ +class ListPreviewsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of [Previews][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Preview previews = 1; + */ + private $previews; + /** + * Token to be supplied to the next ListPreviews request via `page_token` + * to obtain the next set of results. + * + * 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\Config\V1\Preview>|\Google\Protobuf\Internal\RepeatedField $previews + * List of [Previews][]s. + * @type string $next_page_token + * Token to be supplied to the next ListPreviews request via `page_token` + * to obtain the next set of results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * List of [Previews][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Preview previews = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPreviews() + { + return $this->previews; + } + + /** + * List of [Previews][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Preview previews = 1; + * @param array<\Google\Cloud\Config\V1\Preview>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPreviews($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\Preview::class); + $this->previews = $arr; + + return $this; + } + + /** + * Token to be supplied to the next ListPreviews request via `page_token` + * to obtain the next set of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to be supplied to the next ListPreviews request via `page_token` + * to obtain the next set 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; + } + + /** + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesRequest.php new file mode 100644 index 000000000000..a85db19b3c23 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesRequest.php @@ -0,0 +1,283 @@ +google.cloud.config.v1.ListResourcesRequest + */ +class ListResourcesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Resources are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Token returned by previous call to 'ListResources' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Lists the Resources that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', + * '>=', + * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + * roughly synonymous with equality). {field} can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = + * "projects/foo/locations/us-central1/deployments/dep/revisions/bar/resources/baz + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent in whose context the Resources are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. Please see + * {@see ConfigClient::revisionName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\ListResourcesRequest + * + * @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 in whose context the Resources are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * @type int $page_size + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * @type string $page_token + * Token returned by previous call to 'ListResources' which specifies the + * position in the list from where to continue listing the resources. + * @type string $filter + * Lists the Resources that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', + * '>=', + * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + * roughly synonymous with equality). {field} can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = + * "projects/foo/locations/us-central1/deployments/dep/revisions/bar/resources/baz + * @type string $order_by + * Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Resources are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated 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 in whose context the Resources are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * When requesting a page of resources, 'page_size' specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 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; + } + + /** + * Token returned by previous call to 'ListResources' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token returned by previous call to 'ListResources' which specifies the + * position in the list from where to continue listing the resources. + * + * 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; + } + + /** + * Lists the Resources that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', + * '>=', + * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + * roughly synonymous with equality). {field} can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = + * "projects/foo/locations/us-central1/deployments/dep/revisions/bar/resources/baz + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Lists the Resources that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', + * '>=', + * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + * roughly synonymous with equality). {field} can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = + * "projects/foo/locations/us-central1/deployments/dep/revisions/bar/resources/baz + * + * 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; + } + + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to use to sort the list. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesResponse.php new file mode 100644 index 000000000000..8818e638ae51 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListResourcesResponse.php @@ -0,0 +1,143 @@ +google.cloud.config.v1.ListResourcesResponse + */ +class ListResourcesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of [Resources][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Resource resources = 1; + */ + private $resources; + /** + * A token to request the next page of resources from the 'ListResources' + * method. The value of an empty string means that there are no more resources + * 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\Config\V1\Resource>|\Google\Protobuf\Internal\RepeatedField $resources + * List of [Resources][]s. + * @type string $next_page_token + * A token to request the next page of resources from the 'ListResources' + * method. The value of an empty string means that there are no more resources + * to return. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * List of [Resources][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Resource resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResources() + { + return $this->resources; + } + + /** + * List of [Resources][]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Resource resources = 1; + * @param array<\Google\Cloud\Config\V1\Resource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\Resource::class); + $this->resources = $arr; + + return $this; + } + + /** + * A token to request the next page of resources from the 'ListResources' + * method. The value of an empty string means that there are no more resources + * to return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to request the next page of resources from the 'ListResources' + * method. The value of an empty string means that there are no more resources + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsRequest.php new file mode 100644 index 000000000000..017b31cc9b52 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsRequest.php @@ -0,0 +1,307 @@ +google.cloud.config.v1.ListRevisionsRequest + */ +class ListRevisionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the Revisions are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * When requesting a page of resources, `page_size` specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Token returned by previous call to 'ListRevisions' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Lists the Revisions that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Revisions in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent in whose context the Revisions are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\ListRevisionsRequest + * + * @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 in whose context the Revisions are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @type int $page_size + * When requesting a page of resources, `page_size` specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * @type string $page_token + * Token returned by previous call to 'ListRevisions' which specifies the + * position in the list from where to continue listing the resources. + * @type string $filter + * Lists the Revisions that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Revisions in CREATING state. + * state=CREATING + * @type string $order_by + * Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the Revisions are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated 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 in whose context the Revisions are listed. The parent + * value is in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * When requesting a page of resources, `page_size` specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * When requesting a page of resources, `page_size` specifies number of + * resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 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; + } + + /** + * Token returned by previous call to 'ListRevisions' which specifies the + * position in the list from where to continue listing the resources. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token returned by previous call to 'ListRevisions' which specifies the + * position in the list from where to continue listing the resources. + * + * 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; + } + + /** + * Lists the Revisions that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Revisions in CREATING state. + * state=CREATING + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Lists the Revisions that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form '{field} {operator} {value}' where operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * Examples: + * - Filter by name: + * name = "projects/foo/locations/us-central1/deployments/dep/revisions/bar + * - Filter by labels: + * - Resources that have a key called 'foo' + * labels.foo:* + * - Resources that have a key called 'foo' whose value is 'bar' + * labels.foo = bar + * - Filter by state: + * - Revisions in CREATING state. + * state=CREATING + * + * 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; + } + + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to use to sort the list. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsResponse.php new file mode 100644 index 000000000000..77a270da4f81 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListRevisionsResponse.php @@ -0,0 +1,143 @@ +google.cloud.config.v1.ListRevisionsResponse + */ +class ListRevisionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of [Revision][google.cloud.config.v1.Revision]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Revision revisions = 1; + */ + private $revisions; + /** + * A token to request the next page of resources from the 'ListRevisions' + * method. The value of an empty string means that there are no more resources + * 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\Config\V1\Revision>|\Google\Protobuf\Internal\RepeatedField $revisions + * List of [Revision][google.cloud.config.v1.Revision]s. + * @type string $next_page_token + * A token to request the next page of resources from the 'ListRevisions' + * method. The value of an empty string means that there are no more resources + * to return. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * List of [Revision][google.cloud.config.v1.Revision]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Revision revisions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRevisions() + { + return $this->revisions; + } + + /** + * List of [Revision][google.cloud.config.v1.Revision]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.Revision revisions = 1; + * @param array<\Google\Cloud\Config\V1\Revision>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRevisions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\Revision::class); + $this->revisions = $arr; + + return $this; + } + + /** + * A token to request the next page of resources from the 'ListRevisions' + * method. The value of an empty string means that there are no more resources + * to return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to request the next page of resources from the 'ListRevisions' + * method. The value of an empty string means that there are no more resources + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsRequest.php new file mode 100644 index 000000000000..d396c7211a6e --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsRequest.php @@ -0,0 +1,271 @@ +google.cloud.config.v1.ListTerraformVersionsRequest + */ +class ListTerraformVersionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent in whose context the TerraformVersions are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Token returned by previous call to 'ListTerraformVersions' which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists the TerraformVersions that match the filter expression. A + * filter expression filters the resources listed in the response. The + * expression must be of the form '{field} {operator} {value}' where + * operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent in whose context the TerraformVersions are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. Please see + * {@see ConfigClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\ListTerraformVersionsRequest + * + * @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 in whose context the TerraformVersions are listed. The + * parent value is in the format: + * 'projects/{project_id}/locations/{location}'. + * @type int $page_size + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * @type string $page_token + * Optional. Token returned by previous call to 'ListTerraformVersions' which + * specifies the position in the list from where to continue listing the + * resources. + * @type string $filter + * Optional. Lists the TerraformVersions that match the filter expression. A + * filter expression filters the resources listed in the response. The + * expression must be of the form '{field} {operator} {value}' where + * operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * @type string $order_by + * Optional. Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent in whose context the TerraformVersions are listed. The + * parent value is in the format: + * 'projects/{project_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. The parent in whose context the TerraformVersions are listed. The + * parent value is in the format: + * 'projects/{project_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; + } + + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. When requesting a page of resources, 'page_size' specifies number + * of resources to return. If unspecified, at most 500 will be returned. The + * maximum value is 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. Token returned by previous call to 'ListTerraformVersions' which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Token returned by previous call to 'ListTerraformVersions' which + * specifies the position in the list from where to continue listing the + * resources. + * + * 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. Lists the TerraformVersions that match the filter expression. A + * filter expression filters the resources listed in the response. The + * expression must be of the form '{field} {operator} {value}' where + * operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists the TerraformVersions that match the filter expression. A + * filter expression filters the resources listed in the response. The + * expression must be of the form '{field} {operator} {value}' where + * operators: '<', '>', + * '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + * operator which is roughly synonymous with equality). {field} can refer to a + * proto or JSON field, or a synthetic field. Field names can be camelCase or + * snake_case. + * + * 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 to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to use to sort the list. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsResponse.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsResponse.php new file mode 100644 index 000000000000..db79ce1618bf --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ListTerraformVersionsResponse.php @@ -0,0 +1,139 @@ +google.cloud.config.v1.ListTerraformVersionsResponse + */ +class ListTerraformVersionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of [TerraformVersion][google.cloud.config.v1.TerraformVersion]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformVersion terraform_versions = 1; + */ + private $terraform_versions; + /** + * Token to be supplied to the next ListTerraformVersions request via + * `page_token` to obtain the next set of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unreachable resources, if any. + * + * 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\Config\V1\TerraformVersion>|\Google\Protobuf\Internal\RepeatedField $terraform_versions + * List of [TerraformVersion][google.cloud.config.v1.TerraformVersion]s. + * @type string $next_page_token + * Token to be supplied to the next ListTerraformVersions request via + * `page_token` to obtain the next set of results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unreachable resources, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * List of [TerraformVersion][google.cloud.config.v1.TerraformVersion]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformVersion terraform_versions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTerraformVersions() + { + return $this->terraform_versions; + } + + /** + * List of [TerraformVersion][google.cloud.config.v1.TerraformVersion]s. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformVersion terraform_versions = 1; + * @param array<\Google\Cloud\Config\V1\TerraformVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTerraformVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformVersion::class); + $this->terraform_versions = $arr; + + return $this; + } + + /** + * Token to be supplied to the next ListTerraformVersions request via + * `page_token` to obtain the next set of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to be supplied to the next ListTerraformVersions request via + * `page_token` to obtain the next set 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; + } + + /** + * Unreachable resources, if any. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unreachable resources, if any. + * + * 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/Config/v1/proto/src/Google/Cloud/Config/V1/LockDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockDeploymentRequest.php new file mode 100644 index 000000000000..892e219ddd4e --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockDeploymentRequest.php @@ -0,0 +1,86 @@ +google.cloud.config.v1.LockDeploymentRequest + */ +class LockDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Config\V1\LockDeploymentRequest + * + * @experimental + */ + public static function 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 in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/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/Config/v1/proto/src/Google/Cloud/Config/V1/LockInfo.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockInfo.php new file mode 100644 index 000000000000..e2c17995883b --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/LockInfo.php @@ -0,0 +1,247 @@ +google.cloud.config.v1.LockInfo + */ +class LockInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Unique ID for the lock to be overridden with generation ID in the backend. + * + * Generated from protobuf field int64 lock_id = 1; + */ + protected $lock_id = 0; + /** + * Terraform operation, provided by the caller. + * + * Generated from protobuf field string operation = 2; + */ + protected $operation = ''; + /** + * Extra information to store with the lock, provided by the caller. + * + * Generated from protobuf field string info = 3; + */ + protected $info = ''; + /** + * user@hostname when available + * + * Generated from protobuf field string who = 4; + */ + protected $who = ''; + /** + * Terraform version + * + * Generated from protobuf field string version = 5; + */ + protected $version = ''; + /** + * Time that the lock was taken. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $lock_id + * Unique ID for the lock to be overridden with generation ID in the backend. + * @type string $operation + * Terraform operation, provided by the caller. + * @type string $info + * Extra information to store with the lock, provided by the caller. + * @type string $who + * user@hostname when available + * @type string $version + * Terraform version + * @type \Google\Protobuf\Timestamp $create_time + * Time that the lock was taken. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Unique ID for the lock to be overridden with generation ID in the backend. + * + * Generated from protobuf field int64 lock_id = 1; + * @return int|string + */ + public function getLockId() + { + return $this->lock_id; + } + + /** + * Unique ID for the lock to be overridden with generation ID in the backend. + * + * Generated from protobuf field int64 lock_id = 1; + * @param int|string $var + * @return $this + */ + public function setLockId($var) + { + GPBUtil::checkInt64($var); + $this->lock_id = $var; + + return $this; + } + + /** + * Terraform operation, provided by the caller. + * + * Generated from protobuf field string operation = 2; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * Terraform operation, provided by the caller. + * + * Generated from protobuf field string operation = 2; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + + /** + * Extra information to store with the lock, provided by the caller. + * + * Generated from protobuf field string info = 3; + * @return string + */ + public function getInfo() + { + return $this->info; + } + + /** + * Extra information to store with the lock, provided by the caller. + * + * Generated from protobuf field string info = 3; + * @param string $var + * @return $this + */ + public function setInfo($var) + { + GPBUtil::checkString($var, True); + $this->info = $var; + + return $this; + } + + /** + * user@hostname when available + * + * Generated from protobuf field string who = 4; + * @return string + */ + public function getWho() + { + return $this->who; + } + + /** + * user@hostname when available + * + * Generated from protobuf field string who = 4; + * @param string $var + * @return $this + */ + public function setWho($var) + { + GPBUtil::checkString($var, True); + $this->who = $var; + + return $this; + } + + /** + * Terraform version + * + * Generated from protobuf field string version = 5; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Terraform version + * + * Generated from protobuf field string version = 5; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Time that the lock was taken. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @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 the lock was taken. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @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/Config/v1/proto/src/Google/Cloud/Config/V1/OperationMetadata.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/OperationMetadata.php new file mode 100644 index 000000000000..901be5abadb3 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/OperationMetadata.php @@ -0,0 +1,382 @@ +google.cloud.config.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Time when 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. Time when 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 $resource_metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Config\V1\DeploymentOperationMetadata $deployment_metadata + * Output only. Metadata about the deployment operation state. + * @type \Google\Cloud\Config\V1\PreviewOperationMetadata $preview_metadata + * Output only. Metadata about the preview operation state. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Time when 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\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Metadata about the deployment operation state. + * + * Generated from protobuf field .google.cloud.config.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\DeploymentOperationMetadata|null + */ + public function getDeploymentMetadata() + { + return $this->readOneof(8); + } + + public function hasDeploymentMetadata() + { + return $this->hasOneof(8); + } + + /** + * Output only. Metadata about the deployment operation state. + * + * Generated from protobuf field .google.cloud.config.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\DeploymentOperationMetadata $var + * @return $this + */ + public function setDeploymentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\DeploymentOperationMetadata::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. Metadata about the preview operation state. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\PreviewOperationMetadata|null + */ + public function getPreviewMetadata() + { + return $this->readOneof(9); + } + + public function hasPreviewMetadata() + { + return $this->hasOneof(9); + } + + /** + * Output only. Metadata about the preview operation state. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\PreviewOperationMetadata $var + * @return $this + */ + public function setPreviewMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\PreviewOperationMetadata::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. Time when 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. Time when 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. Time when 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. Time when 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 getResourceMetadata() + { + return $this->whichOneof("resource_metadata"); + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview.php new file mode 100644 index 000000000000..4ad58204222f --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview.php @@ -0,0 +1,853 @@ +google.cloud.config.v1.Preview + */ +class Preview extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the preview. Resource name can be user + * provided or server generated ID if unspecified. Format: + * `projects/{project}/locations/{location}/previews/{preview}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Time the preview was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Optional. User-defined labels for the preview. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. Current state of the preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Optional. Optional deployment reference. If specified, the preview will be + * performed using the provided deployment's current state and use any + * relevant fields from the deployment unless explicitly specified in the + * preview create request. + * + * Generated from protobuf field string deployment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $deployment = ''; + /** + * Optional. Current mode of preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.PreviewMode preview_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $preview_mode = 0; + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * previewing resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $service_account = ''; + /** + * Optional. User-defined location of Cloud Build logs, artifacts, and + * in Google Cloud Storage. + * Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty + * Default Bucket Format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * If omitted and deployment resource ref provided has artifacts_gcs_bucket + * defined, that artifact bucket is used. + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $artifacts_gcs_bucket = null; + /** + * Optional. The user-specified Worker Pool resource in which the Cloud Build + * job will execute. Format + * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + * field is unspecified, the default Cloud Build worker pool will be used. If + * omitted and deployment resource ref provided has worker_pool defined, that + * worker pool is used. + * + * Generated from protobuf field optional string worker_pool = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $worker_pool = null; + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_code = 0; + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field .google.rpc.Status error_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_status = null; + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $build = ''; + /** + * Output only. Summary of errors encountered during Terraform preview. + * It has a size limit of 10, i.e. only top 10 errors will be summarized here. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $tf_errors; + /** + * Output only. Link to tf-error.ndjson file, which contains the full list of + * the errors encountered during a Terraform preview. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_logs = ''; + /** + * Output only. Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $preview_artifacts = null; + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $logs = ''; + /** + * Output only. The current Terraform version set on the preview. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tf_version = ''; + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tf_version_constraint = null; + protected $blueprint; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Config\V1\TerraformBlueprint $terraform_blueprint + * The terraform blueprint to preview. + * @type string $name + * Identifier. Resource name of the preview. Resource name can be user + * provided or server generated ID if unspecified. Format: + * `projects/{project}/locations/{location}/previews/{preview}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the preview was created. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the preview. + * @type int $state + * Output only. Current state of the preview. + * @type string $deployment + * Optional. Optional deployment reference. If specified, the preview will be + * performed using the provided deployment's current state and use any + * relevant fields from the deployment unless explicitly specified in the + * preview create request. + * @type int $preview_mode + * Optional. Current mode of preview. + * @type string $service_account + * Optional. User-specified Service Account (SA) credentials to be used when + * previewing resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * @type string $artifacts_gcs_bucket + * Optional. User-defined location of Cloud Build logs, artifacts, and + * in Google Cloud Storage. + * Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty + * Default Bucket Format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * If omitted and deployment resource ref provided has artifacts_gcs_bucket + * defined, that artifact bucket is used. + * @type string $worker_pool + * Optional. The user-specified Worker Pool resource in which the Cloud Build + * job will execute. Format + * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + * field is unspecified, the default Cloud Build worker pool will be used. If + * omitted and deployment resource ref provided has worker_pool defined, that + * worker pool is used. + * @type int $error_code + * Output only. Code describing any errors that may have occurred. + * @type \Google\Rpc\Status $error_status + * Output only. Additional information regarding the current state. + * @type string $build + * Output only. Cloud Build instance UUID associated with this preview. + * @type array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $tf_errors + * Output only. Summary of errors encountered during Terraform preview. + * It has a size limit of 10, i.e. only top 10 errors will be summarized here. + * @type string $error_logs + * Output only. Link to tf-error.ndjson file, which contains the full list of + * the errors encountered during a Terraform preview. + * Format: `gs://{bucket}/{object}`. + * @type \Google\Cloud\Config\V1\PreviewArtifacts $preview_artifacts + * Output only. Artifacts from preview. + * @type string $logs + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * @type string $tf_version + * Output only. The current Terraform version set on the preview. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * @type string $tf_version_constraint + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * The terraform blueprint to preview. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6; + * @return \Google\Cloud\Config\V1\TerraformBlueprint|null + */ + public function getTerraformBlueprint() + { + return $this->readOneof(6); + } + + public function hasTerraformBlueprint() + { + return $this->hasOneof(6); + } + + /** + * The terraform blueprint to preview. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6; + * @param \Google\Cloud\Config\V1\TerraformBlueprint $var + * @return $this + */ + public function setTerraformBlueprint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\TerraformBlueprint::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Identifier. Resource name of the preview. Resource name can be user + * provided or server generated ID if unspecified. Format: + * `projects/{project}/locations/{location}/previews/{preview}` + * + * 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 preview. Resource name can be user + * provided or server generated ID if unspecified. Format: + * `projects/{project}/locations/{location}/previews/{preview}` + * + * 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. Time the preview 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. Time the preview 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; + } + + /** + * Optional. User-defined labels for the preview. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the preview. + * + * 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. Current state of the preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Preview\State::class); + $this->state = $var; + + return $this; + } + + /** + * Optional. Optional deployment reference. If specified, the preview will be + * performed using the provided deployment's current state and use any + * relevant fields from the deployment unless explicitly specified in the + * preview create request. + * + * Generated from protobuf field string deployment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getDeployment() + { + return $this->deployment; + } + + /** + * Optional. Optional deployment reference. If specified, the preview will be + * performed using the provided deployment's current state and use any + * relevant fields from the deployment unless explicitly specified in the + * preview create request. + * + * Generated from protobuf field string deployment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkString($var, True); + $this->deployment = $var; + + return $this; + } + + /** + * Optional. Current mode of preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.PreviewMode preview_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPreviewMode() + { + return $this->preview_mode; + } + + /** + * Optional. Current mode of preview. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.PreviewMode preview_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPreviewMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Preview\PreviewMode::class); + $this->preview_mode = $var; + + return $this; + } + + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * previewing resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. User-specified Service Account (SA) credentials to be used when + * previewing resources. + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. User-defined location of Cloud Build logs, artifacts, and + * in Google Cloud Storage. + * Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty + * Default Bucket Format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * If omitted and deployment resource ref provided has artifacts_gcs_bucket + * defined, that artifact bucket is used. + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getArtifactsGcsBucket() + { + return isset($this->artifacts_gcs_bucket) ? $this->artifacts_gcs_bucket : ''; + } + + public function hasArtifactsGcsBucket() + { + return isset($this->artifacts_gcs_bucket); + } + + public function clearArtifactsGcsBucket() + { + unset($this->artifacts_gcs_bucket); + } + + /** + * Optional. User-defined location of Cloud Build logs, artifacts, and + * in Google Cloud Storage. + * Format: `gs://{bucket}/{folder}` + * A default bucket will be bootstrapped if the field is not set or empty + * Default Bucket Format: `gs://--blueprint-config` + * Constraints: + * - The bucket needs to be in the same project as the deployment + * - The path cannot be within the path of `gcs_source` + * If omitted and deployment resource ref provided has artifacts_gcs_bucket + * defined, that artifact bucket is used. + * + * Generated from protobuf field optional string artifacts_gcs_bucket = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setArtifactsGcsBucket($var) + { + GPBUtil::checkString($var, True); + $this->artifacts_gcs_bucket = $var; + + return $this; + } + + /** + * Optional. The user-specified Worker Pool resource in which the Cloud Build + * job will execute. Format + * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + * field is unspecified, the default Cloud Build worker pool will be used. If + * omitted and deployment resource ref provided has worker_pool defined, that + * worker pool is used. + * + * Generated from protobuf field optional string worker_pool = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkerPool() + { + return isset($this->worker_pool) ? $this->worker_pool : ''; + } + + public function hasWorkerPool() + { + return isset($this->worker_pool); + } + + public function clearWorkerPool() + { + unset($this->worker_pool); + } + + /** + * Optional. The user-specified Worker Pool resource in which the Cloud Build + * job will execute. Format + * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + * field is unspecified, the default Cloud Build worker pool will be used. If + * omitted and deployment resource ref provided has worker_pool defined, that + * worker pool is used. + * + * Generated from protobuf field optional string worker_pool = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getErrorCode() + { + return $this->error_code; + } + + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Preview.ErrorCode error_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setErrorCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Preview\ErrorCode::class); + $this->error_code = $var; + + return $this; + } + + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field .google.rpc.Status error_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getErrorStatus() + { + return $this->error_status; + } + + public function hasErrorStatus() + { + return isset($this->error_status); + } + + public function clearErrorStatus() + { + unset($this->error_status); + } + + /** + * Output only. Additional information regarding the current state. + * + * Generated from protobuf field .google.rpc.Status error_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setErrorStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error_status = $var; + + return $this; + } + + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. Summary of errors encountered during Terraform preview. + * It has a size limit of 10, i.e. only top 10 errors will be summarized here. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTfErrors() + { + return $this->tf_errors; + } + + /** + * Output only. Summary of errors encountered during Terraform preview. + * It has a size limit of 10, i.e. only top 10 errors will be summarized here. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTfErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformError::class); + $this->tf_errors = $arr; + + return $this; + } + + /** + * Output only. Link to tf-error.ndjson file, which contains the full list of + * the errors encountered during a Terraform preview. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorLogs() + { + return $this->error_logs; + } + + /** + * Output only. Link to tf-error.ndjson file, which contains the full list of + * the errors encountered during a Terraform preview. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorLogs($var) + { + GPBUtil::checkString($var, True); + $this->error_logs = $var; + + return $this; + } + + /** + * Output only. Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\PreviewArtifacts|null + */ + public function getPreviewArtifacts() + { + return $this->preview_artifacts; + } + + public function hasPreviewArtifacts() + { + return isset($this->preview_artifacts); + } + + public function clearPreviewArtifacts() + { + unset($this->preview_artifacts); + } + + /** + * Output only. Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\PreviewArtifacts $var + * @return $this + */ + public function setPreviewArtifacts($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\PreviewArtifacts::class); + $this->preview_artifacts = $var; + + return $this; + } + + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLogs($var) + { + GPBUtil::checkString($var, True); + $this->logs = $var; + + return $this; + } + + /** + * Output only. The current Terraform version set on the preview. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTfVersion() + { + return $this->tf_version; + } + + /** + * Output only. The current Terraform version set on the preview. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTfVersion($var) + { + GPBUtil::checkString($var, True); + $this->tf_version = $var; + + return $this; + } + + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTfVersionConstraint() + { + return isset($this->tf_version_constraint) ? $this->tf_version_constraint : ''; + } + + public function hasTfVersionConstraint() + { + return isset($this->tf_version_constraint); + } + + public function clearTfVersionConstraint() + { + unset($this->tf_version_constraint); + } + + /** + * Optional. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTfVersionConstraint($var) + { + GPBUtil::checkString($var, True); + $this->tf_version_constraint = $var; + + return $this; + } + + /** + * @return string + */ + public function getBlueprint() + { + return $this->whichOneof("blueprint"); + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/ErrorCode.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/ErrorCode.php new file mode 100644 index 000000000000..c515ac058752 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/ErrorCode.php @@ -0,0 +1,92 @@ +google.cloud.config.v1.Preview.ErrorCode + */ +class ErrorCode +{ + /** + * No error code was specified. + * + * Generated from protobuf enum ERROR_CODE_UNSPECIFIED = 0; + */ + const ERROR_CODE_UNSPECIFIED = 0; + /** + * Cloud Build failed due to a permissions issue. + * + * Generated from protobuf enum CLOUD_BUILD_PERMISSION_DENIED = 1; + */ + const CLOUD_BUILD_PERMISSION_DENIED = 1; + /** + * Cloud Storage bucket failed to create due to a permissions issue. + * + * Generated from protobuf enum BUCKET_CREATION_PERMISSION_DENIED = 2; + */ + const BUCKET_CREATION_PERMISSION_DENIED = 2; + /** + * Cloud Storage bucket failed for a non-permissions-related issue. + * + * Generated from protobuf enum BUCKET_CREATION_FAILED = 3; + */ + const BUCKET_CREATION_FAILED = 3; + /** + * Acquiring lock on provided deployment reference failed. + * + * Generated from protobuf enum DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4; + */ + const DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4; + /** + * Preview encountered an error when trying to access Cloud Build API. + * + * Generated from protobuf enum PREVIEW_BUILD_API_FAILED = 5; + */ + const PREVIEW_BUILD_API_FAILED = 5; + /** + * Preview created a build but build failed and logs were generated. + * + * Generated from protobuf enum PREVIEW_BUILD_RUN_FAILED = 6; + */ + const PREVIEW_BUILD_RUN_FAILED = 6; + + private static $valueToName = [ + self::ERROR_CODE_UNSPECIFIED => 'ERROR_CODE_UNSPECIFIED', + self::CLOUD_BUILD_PERMISSION_DENIED => 'CLOUD_BUILD_PERMISSION_DENIED', + self::BUCKET_CREATION_PERMISSION_DENIED => 'BUCKET_CREATION_PERMISSION_DENIED', + self::BUCKET_CREATION_FAILED => 'BUCKET_CREATION_FAILED', + self::DEPLOYMENT_LOCK_ACQUIRE_FAILED => 'DEPLOYMENT_LOCK_ACQUIRE_FAILED', + self::PREVIEW_BUILD_API_FAILED => 'PREVIEW_BUILD_API_FAILED', + self::PREVIEW_BUILD_RUN_FAILED => 'PREVIEW_BUILD_RUN_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(ErrorCode::class, \Google\Cloud\Config\V1\Preview_ErrorCode::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/PreviewMode.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/PreviewMode.php new file mode 100644 index 000000000000..fe378ae89090 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/PreviewMode.php @@ -0,0 +1,69 @@ +google.cloud.config.v1.Preview.PreviewMode + */ +class PreviewMode +{ + /** + * Unspecified policy, default mode will be used. + * + * Generated from protobuf enum PREVIEW_MODE_UNSPECIFIED = 0; + */ + const PREVIEW_MODE_UNSPECIFIED = 0; + /** + * DEFAULT mode generates an execution plan for reconciling current resource + * state into expected resource state. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * DELETE mode generates as execution plan for destroying current resources. + * + * Generated from protobuf enum DELETE = 2; + */ + const DELETE = 2; + + private static $valueToName = [ + self::PREVIEW_MODE_UNSPECIFIED => 'PREVIEW_MODE_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + 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)) { + $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(PreviewMode::class, \Google\Cloud\Config\V1\Preview_PreviewMode::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/State.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/State.php new file mode 100644 index 000000000000..bf1f38437126 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Preview/State.php @@ -0,0 +1,100 @@ +google.cloud.config.v1.Preview.State + */ +class State +{ + /** + * The default value. This value is used if the state is unknown. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The preview is being created. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * The preview has succeeded. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * The preview is being applied. + * + * Generated from protobuf enum APPLYING = 3; + */ + const APPLYING = 3; + /** + * The preview is stale. A preview can become stale if a revision has been + * applied after this preview was created. + * + * Generated from protobuf enum STALE = 4; + */ + const STALE = 4; + /** + * The preview is being deleted. + * + * Generated from protobuf enum DELETING = 5; + */ + const DELETING = 5; + /** + * The preview has encountered an unexpected error. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + /** + * The preview has been deleted. + * + * Generated from protobuf enum DELETED = 7; + */ + const DELETED = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::SUCCEEDED => 'SUCCEEDED', + self::APPLYING => 'APPLYING', + self::STALE => 'STALE', + self::DELETING => 'DELETING', + self::FAILED => 'FAILED', + 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\Cloud\Config\V1\Preview_State::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewArtifacts.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewArtifacts.php new file mode 100644 index 000000000000..91e8247154f2 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewArtifacts.php @@ -0,0 +1,109 @@ +google.cloud.config.v1.PreviewArtifacts + */ +class PreviewArtifacts extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Location of a blueprint copy and other content in Google Cloud + * Storage. Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $content = ''; + /** + * Output only. Location of artifacts in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $artifacts = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content + * Output only. Location of a blueprint copy and other content in Google Cloud + * Storage. Format: `gs://{bucket}/{object}` + * @type string $artifacts + * Output only. Location of artifacts in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Location of a blueprint copy and other content in Google Cloud + * Storage. Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Output only. Location of a blueprint copy and other content in Google Cloud + * Storage. Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Output only. Location of artifacts in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArtifacts() + { + return $this->artifacts; + } + + /** + * Output only. Location of artifacts in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * + * Generated from protobuf field string artifacts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArtifacts($var) + { + GPBUtil::checkString($var, True); + $this->artifacts = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata.php new file mode 100644 index 000000000000..0aefd3e3567d --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata.php @@ -0,0 +1,179 @@ +google.cloud.config.v1.PreviewOperationMetadata + */ +class PreviewOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The current step the preview operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewOperationMetadata.PreviewStep step = 1; + */ + protected $step = 0; + /** + * Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 2; + */ + protected $preview_artifacts = null; + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $logs = ''; + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $build = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The current step the preview operation is running. + * @type \Google\Cloud\Config\V1\PreviewArtifacts $preview_artifacts + * Artifacts from preview. + * @type string $logs + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * @type string $build + * Output only. Cloud Build instance UUID associated with this preview. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * The current step the preview operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewOperationMetadata.PreviewStep step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The current step the preview operation is running. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewOperationMetadata.PreviewStep step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\PreviewOperationMetadata\PreviewStep::class); + $this->step = $var; + + return $this; + } + + /** + * Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 2; + * @return \Google\Cloud\Config\V1\PreviewArtifacts|null + */ + public function getPreviewArtifacts() + { + return $this->preview_artifacts; + } + + public function hasPreviewArtifacts() + { + return isset($this->preview_artifacts); + } + + public function clearPreviewArtifacts() + { + unset($this->preview_artifacts); + } + + /** + * Artifacts from preview. + * + * Generated from protobuf field .google.cloud.config.v1.PreviewArtifacts preview_artifacts = 2; + * @param \Google\Cloud\Config\V1\PreviewArtifacts $var + * @return $this + */ + public function setPreviewArtifacts($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\PreviewArtifacts::class); + $this->preview_artifacts = $var; + + return $this; + } + + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Output only. Location of preview logs in `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLogs($var) + { + GPBUtil::checkString($var, True); + $this->logs = $var; + + return $this; + } + + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. Cloud Build instance UUID associated with this preview. + * + * Generated from protobuf field string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata/PreviewStep.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata/PreviewStep.php new file mode 100644 index 000000000000..7b7c8565167b --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewOperationMetadata/PreviewStep.php @@ -0,0 +1,121 @@ +google.cloud.config.v1.PreviewOperationMetadata.PreviewStep + */ +class PreviewStep +{ + /** + * Unspecified preview step. + * + * Generated from protobuf enum PREVIEW_STEP_UNSPECIFIED = 0; + */ + const PREVIEW_STEP_UNSPECIFIED = 0; + /** + * Infra Manager is creating a Google Cloud Storage bucket to store + * artifacts and metadata about the preview. + * + * Generated from protobuf enum PREPARING_STORAGE_BUCKET = 1; + */ + const PREPARING_STORAGE_BUCKET = 1; + /** + * Downloading the blueprint onto the Google Cloud Storage bucket. + * + * Generated from protobuf enum DOWNLOADING_BLUEPRINT = 2; + */ + const DOWNLOADING_BLUEPRINT = 2; + /** + * Initializing Terraform using `terraform init`. + * + * Generated from protobuf enum RUNNING_TF_INIT = 3; + */ + const RUNNING_TF_INIT = 3; + /** + * Running `terraform plan`. + * + * Generated from protobuf enum RUNNING_TF_PLAN = 4; + */ + const RUNNING_TF_PLAN = 4; + /** + * Fetching a deployment. + * + * Generated from protobuf enum FETCHING_DEPLOYMENT = 5; + */ + const FETCHING_DEPLOYMENT = 5; + /** + * Locking a deployment. + * + * Generated from protobuf enum LOCKING_DEPLOYMENT = 6; + */ + const LOCKING_DEPLOYMENT = 6; + /** + * Unlocking a deployment. + * + * Generated from protobuf enum UNLOCKING_DEPLOYMENT = 7; + */ + const UNLOCKING_DEPLOYMENT = 7; + /** + * Operation was successful. + * + * Generated from protobuf enum SUCCEEDED = 8; + */ + const SUCCEEDED = 8; + /** + * Operation failed. + * + * Generated from protobuf enum FAILED = 9; + */ + const FAILED = 9; + /** + * Validating the provided repository. + * + * Generated from protobuf enum VALIDATING_REPOSITORY = 10; + */ + const VALIDATING_REPOSITORY = 10; + + private static $valueToName = [ + self::PREVIEW_STEP_UNSPECIFIED => 'PREVIEW_STEP_UNSPECIFIED', + self::PREPARING_STORAGE_BUCKET => 'PREPARING_STORAGE_BUCKET', + self::DOWNLOADING_BLUEPRINT => 'DOWNLOADING_BLUEPRINT', + self::RUNNING_TF_INIT => 'RUNNING_TF_INIT', + self::RUNNING_TF_PLAN => 'RUNNING_TF_PLAN', + self::FETCHING_DEPLOYMENT => 'FETCHING_DEPLOYMENT', + self::LOCKING_DEPLOYMENT => 'LOCKING_DEPLOYMENT', + self::UNLOCKING_DEPLOYMENT => 'UNLOCKING_DEPLOYMENT', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::VALIDATING_REPOSITORY => 'VALIDATING_REPOSITORY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PreviewStep::class, \Google\Cloud\Config\V1\PreviewOperationMetadata_PreviewStep::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewResult.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewResult.php new file mode 100644 index 000000000000..0359b1700f4a --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/PreviewResult.php @@ -0,0 +1,101 @@ +google.cloud.config.v1.PreviewResult + */ +class PreviewResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Plan binary signed URL + * + * Generated from protobuf field string binary_signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $binary_signed_uri = ''; + /** + * Output only. Plan JSON signed URL + * + * Generated from protobuf field string json_signed_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $json_signed_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $binary_signed_uri + * Output only. Plan binary signed URL + * @type string $json_signed_uri + * Output only. Plan JSON signed URL + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Plan binary signed URL + * + * Generated from protobuf field string binary_signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBinarySignedUri() + { + return $this->binary_signed_uri; + } + + /** + * Output only. Plan binary signed URL + * + * Generated from protobuf field string binary_signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBinarySignedUri($var) + { + GPBUtil::checkString($var, True); + $this->binary_signed_uri = $var; + + return $this; + } + + /** + * Output only. Plan JSON signed URL + * + * Generated from protobuf field string json_signed_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJsonSignedUri() + { + return $this->json_signed_uri; + } + + /** + * Output only. Plan JSON signed URL + * + * Generated from protobuf field string json_signed_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJsonSignedUri($var) + { + GPBUtil::checkString($var, True); + $this->json_signed_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/QuotaValidation.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/QuotaValidation.php new file mode 100644 index 000000000000..60210b30d50c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/QuotaValidation.php @@ -0,0 +1,66 @@ +google.cloud.config.v1.QuotaValidation + */ +class QuotaValidation +{ + /** + * The default value. + * QuotaValidation on terraform configuration files will be disabled in + * this case. + * + * Generated from protobuf enum QUOTA_VALIDATION_UNSPECIFIED = 0; + */ + const QUOTA_VALIDATION_UNSPECIFIED = 0; + /** + * Enable computing quotas for resources in terraform configuration files to + * get visibility on resources with insufficient quotas. + * + * Generated from protobuf enum ENABLED = 1; + */ + const ENABLED = 1; + /** + * Enforce quota checks so deployment fails if there isn't sufficient quotas + * available to deploy resources in terraform configuration files. + * + * Generated from protobuf enum ENFORCED = 2; + */ + const ENFORCED = 2; + + private static $valueToName = [ + self::QUOTA_VALIDATION_UNSPECIFIED => 'QUOTA_VALIDATION_UNSPECIFIED', + self::ENABLED => 'ENABLED', + self::ENFORCED => 'ENFORCED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/Config/v1/proto/src/Google/Cloud/Config/V1/Resource.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource.php new file mode 100644 index 000000000000..7332bd595556 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource.php @@ -0,0 +1,234 @@ +google.cloud.config.v1.Resource + */ +class Resource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name. + * Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Terraform-specific info if this resource was created using + * Terraform. + * + * Generated from protobuf field .google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $terraform_info = null; + /** + * Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI + * ID). CAI type format follows + * https://cloud.google.com/asset-inventory/docs/supported-asset-types + * + * Generated from protobuf field map cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $cai_assets; + /** + * Output only. Intent of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $intent = 0; + /** + * Output only. Current state of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.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 + * Output only. Resource name. + * Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}` + * @type \Google\Cloud\Config\V1\ResourceTerraformInfo $terraform_info + * Output only. Terraform-specific info if this resource was created using + * Terraform. + * @type array|\Google\Protobuf\Internal\MapField $cai_assets + * Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI + * ID). CAI type format follows + * https://cloud.google.com/asset-inventory/docs/supported-asset-types + * @type int $intent + * Output only. Intent of the resource. + * @type int $state + * Output only. Current state of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name. + * Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}` + * + * 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: + * `projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}` + * + * 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. Terraform-specific info if this resource was created using + * Terraform. + * + * Generated from protobuf field .google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\ResourceTerraformInfo|null + */ + public function getTerraformInfo() + { + return $this->terraform_info; + } + + public function hasTerraformInfo() + { + return isset($this->terraform_info); + } + + public function clearTerraformInfo() + { + unset($this->terraform_info); + } + + /** + * Output only. Terraform-specific info if this resource was created using + * Terraform. + * + * Generated from protobuf field .google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\ResourceTerraformInfo $var + * @return $this + */ + public function setTerraformInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ResourceTerraformInfo::class); + $this->terraform_info = $var; + + return $this; + } + + /** + * Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI + * ID). CAI type format follows + * https://cloud.google.com/asset-inventory/docs/supported-asset-types + * + * Generated from protobuf field map cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getCaiAssets() + { + return $this->cai_assets; + } + + /** + * Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI + * ID). CAI type format follows + * https://cloud.google.com/asset-inventory/docs/supported-asset-types + * + * Generated from protobuf field map cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setCaiAssets($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\ResourceCAIInfo::class); + $this->cai_assets = $arr; + + return $this; + } + + /** + * Output only. Intent of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getIntent() + { + return $this->intent; + } + + /** + * Output only. Intent of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setIntent($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Resource\Intent::class); + $this->intent = $var; + + return $this; + } + + /** + * Output only. Current state of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the resource. + * + * Generated from protobuf field .google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Resource\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/Intent.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/Intent.php new file mode 100644 index 000000000000..07ce2df7cdc6 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/Intent.php @@ -0,0 +1,85 @@ +google.cloud.config.v1.Resource.Intent + */ +class Intent +{ + /** + * The default value. This value is used if the intent is omitted. + * + * Generated from protobuf enum INTENT_UNSPECIFIED = 0; + */ + const INTENT_UNSPECIFIED = 0; + /** + * Infra Manager will create this Resource. + * + * Generated from protobuf enum CREATE = 1; + */ + const CREATE = 1; + /** + * Infra Manager will update this Resource. + * + * Generated from protobuf enum UPDATE = 2; + */ + const UPDATE = 2; + /** + * Infra Manager will delete this Resource. + * + * Generated from protobuf enum DELETE = 3; + */ + const DELETE = 3; + /** + * Infra Manager will destroy and recreate this Resource. + * + * Generated from protobuf enum RECREATE = 4; + */ + const RECREATE = 4; + /** + * Infra Manager will leave this Resource untouched. + * + * Generated from protobuf enum UNCHANGED = 5; + */ + const UNCHANGED = 5; + + private static $valueToName = [ + self::INTENT_UNSPECIFIED => 'INTENT_UNSPECIFIED', + self::CREATE => 'CREATE', + self::UPDATE => 'UPDATE', + self::DELETE => 'DELETE', + self::RECREATE => 'RECREATE', + self::UNCHANGED => 'UNCHANGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Intent::class, \Google\Cloud\Config\V1\Resource_Intent::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/State.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/State.php new file mode 100644 index 000000000000..d27fedd48aa4 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Resource/State.php @@ -0,0 +1,78 @@ +google.cloud.config.v1.Resource.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; + /** + * Resource has been planned for reconcile. + * + * Generated from protobuf enum PLANNED = 1; + */ + const PLANNED = 1; + /** + * Resource is actively reconciling into the intended state. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * Resource has reconciled to intended state. + * + * Generated from protobuf enum RECONCILED = 3; + */ + const RECONCILED = 3; + /** + * Resource failed to reconcile. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PLANNED => 'PLANNED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::RECONCILED => 'RECONCILED', + 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\Config\V1\Resource_State::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceCAIInfo.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceCAIInfo.php new file mode 100644 index 000000000000..2f64a7ffb66c --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceCAIInfo.php @@ -0,0 +1,71 @@ +google.cloud.config.v1.ResourceCAIInfo + */ +class ResourceCAIInfo extends \Google\Protobuf\Internal\Message +{ + /** + * CAI resource name in the format following + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * Generated from protobuf field string full_resource_name = 1; + */ + protected $full_resource_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $full_resource_name + * CAI resource name in the format following + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * CAI resource name in the format following + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * Generated from protobuf field string full_resource_name = 1; + * @return string + */ + public function getFullResourceName() + { + return $this->full_resource_name; + } + + /** + * CAI resource name in the format following + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * 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; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceTerraformInfo.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceTerraformInfo.php new file mode 100644 index 000000000000..452e1b4fcaf4 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/ResourceTerraformInfo.php @@ -0,0 +1,139 @@ +google.cloud.config.v1.ResourceTerraformInfo + */ +class ResourceTerraformInfo extends \Google\Protobuf\Internal\Message +{ + /** + * TF resource address that uniquely identifies this resource within this + * deployment. + * + * Generated from protobuf field string address = 1; + */ + protected $address = ''; + /** + * TF resource type + * + * Generated from protobuf field string type = 2; + */ + protected $type = ''; + /** + * ID attribute of the TF resource + * + * Generated from protobuf field string id = 3; + */ + protected $id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $address + * TF resource address that uniquely identifies this resource within this + * deployment. + * @type string $type + * TF resource type + * @type string $id + * ID attribute of the TF resource + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * TF resource address that uniquely identifies this resource within this + * deployment. + * + * Generated from protobuf field string address = 1; + * @return string + */ + public function getAddress() + { + return $this->address; + } + + /** + * TF resource address that uniquely identifies this resource within this + * deployment. + * + * Generated from protobuf field string address = 1; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * TF resource type + * + * Generated from protobuf field string type = 2; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * TF resource type + * + * 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; + } + + /** + * ID attribute of the TF resource + * + * Generated from protobuf field string id = 3; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID attribute of the TF resource + * + * Generated from protobuf field string id = 3; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision.php new file mode 100644 index 000000000000..d59d20bacce5 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision.php @@ -0,0 +1,848 @@ +google.cloud.config.v1.Revision + */ +class Revision extends \Google\Protobuf\Internal\Message +{ + /** + * Revision name. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. Time when the revision was 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 the revision was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The action which created this revision + * + * Generated from protobuf field .google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $action = 0; + /** + * Output only. Current state of the revision. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $apply_results = null; + /** + * Output only. Additional info regarding the current state. + * + * Generated from protobuf field string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_detail = ''; + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_code = 0; + /** + * Output only. Cloud Build instance UUID associated with this revision. + * + * Generated from protobuf field string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $build = ''; + /** + * Output only. Location of Revision operation logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $logs = ''; + /** + * Output only. Errors encountered when creating or updating this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $tf_errors; + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_logs = ''; + /** + * Output only. User-specified Service Account (SA) to be used as credential + * to manage resources. Format: + * `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $service_account = ''; + /** + * Output only. By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $import_existing_resources = false; + /** + * Output only. The user-specified Cloud Build worker pool resource in which + * the Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $worker_pool = ''; + /** + * Output only. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tf_version_constraint = ''; + /** + * Output only. The version of Terraform used to create the Revision. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tf_version = ''; + /** + * Output only. Cloud Storage path containing quota validation results. This + * field is set when a user sets Deployment.quota_validation field to ENABLED + * or ENFORCED. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $quota_validation_results = ''; + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quota_validation = 0; + protected $blueprint; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Config\V1\TerraformBlueprint $terraform_blueprint + * Output only. A blueprint described using Terraform's HashiCorp + * Configuration Language as a root module. + * @type string $name + * Revision name. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the revision was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the revision was last modified. + * @type int $action + * Output only. The action which created this revision + * @type int $state + * Output only. Current state of the revision. + * @type \Google\Cloud\Config\V1\ApplyResults $apply_results + * Output only. Outputs and artifacts from applying a deployment. + * @type string $state_detail + * Output only. Additional info regarding the current state. + * @type int $error_code + * Output only. Code describing any errors that may have occurred. + * @type string $build + * Output only. Cloud Build instance UUID associated with this revision. + * @type string $logs + * Output only. Location of Revision operation logs in + * `gs://{bucket}/{object}` format. + * @type array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $tf_errors + * Output only. Errors encountered when creating or updating this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * @type string $error_logs + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * @type string $service_account + * Output only. User-specified Service Account (SA) to be used as credential + * to manage resources. Format: + * `projects/{projectID}/serviceAccounts/{serviceAccount}` + * @type bool $import_existing_resources + * Output only. By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * @type string $worker_pool + * Output only. The user-specified Cloud Build worker pool resource in which + * the Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * @type string $tf_version_constraint + * Output only. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * @type string $tf_version + * Output only. The version of Terraform used to create the Revision. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * @type string $quota_validation_results + * Output only. Cloud Storage path containing quota validation results. This + * field is set when a user sets Deployment.quota_validation field to ENABLED + * or ENFORCED. Format: `gs://{bucket}/{object}`. + * @type int $quota_validation + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. A blueprint described using Terraform's HashiCorp + * Configuration Language as a root module. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\TerraformBlueprint|null + */ + public function getTerraformBlueprint() + { + return $this->readOneof(6); + } + + public function hasTerraformBlueprint() + { + return $this->hasOneof(6); + } + + /** + * Output only. A blueprint described using Terraform's HashiCorp + * Configuration Language as a root module. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\TerraformBlueprint $var + * @return $this + */ + public function setTerraformBlueprint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\TerraformBlueprint::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Revision name. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Revision name. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}/ + * revisions/{revision}` + * + * 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. Time when the revision 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. Time when the revision 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. Time when the revision was last modified. + * + * 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 the revision was last modified. + * + * 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 action which created this revision + * + * Generated from protobuf field .google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Output only. The action which created this revision + * + * Generated from protobuf field .google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Revision\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Output only. Current state of the revision. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the revision. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Revision\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\ApplyResults|null + */ + public function getApplyResults() + { + return $this->apply_results; + } + + public function hasApplyResults() + { + return isset($this->apply_results); + } + + public function clearApplyResults() + { + unset($this->apply_results); + } + + /** + * Output only. Outputs and artifacts from applying a deployment. + * + * Generated from protobuf field .google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\ApplyResults $var + * @return $this + */ + public function setApplyResults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ApplyResults::class); + $this->apply_results = $var; + + return $this; + } + + /** + * Output only. Additional info regarding the current state. + * + * Generated from protobuf field string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateDetail() + { + return $this->state_detail; + } + + /** + * Output only. Additional info regarding the current state. + * + * Generated from protobuf field string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateDetail($var) + { + GPBUtil::checkString($var, True); + $this->state_detail = $var; + + return $this; + } + + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getErrorCode() + { + return $this->error_code; + } + + /** + * Output only. Code describing any errors that may have occurred. + * + * Generated from protobuf field .google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setErrorCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\Revision\ErrorCode::class); + $this->error_code = $var; + + return $this; + } + + /** + * Output only. Cloud Build instance UUID associated with this revision. + * + * Generated from protobuf field string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. Cloud Build instance UUID associated with this revision. + * + * Generated from protobuf field string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. Location of Revision operation logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Output only. Location of Revision operation logs in + * `gs://{bucket}/{object}` format. + * + * Generated from protobuf field string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLogs($var) + { + GPBUtil::checkString($var, True); + $this->logs = $var; + + return $this; + } + + /** + * Output only. Errors encountered when creating or updating this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTfErrors() + { + return $this->tf_errors; + } + + /** + * Output only. Errors encountered when creating or updating this deployment. + * Errors are truncated to 10 entries, see `delete_results` and `error_logs` + * for full details. + * + * Generated from protobuf field repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Config\V1\TerraformError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTfErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformError::class); + $this->tf_errors = $arr; + + return $this; + } + + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorLogs() + { + return $this->error_logs; + } + + /** + * Output only. Location of Terraform error logs in Google Cloud Storage. + * Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorLogs($var) + { + GPBUtil::checkString($var, True); + $this->error_logs = $var; + + return $this; + } + + /** + * Output only. User-specified Service Account (SA) to be used as credential + * to manage resources. Format: + * `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Output only. User-specified Service Account (SA) to be used as credential + * to manage resources. Format: + * `projects/{projectID}/serviceAccounts/{serviceAccount}` + * + * Generated from protobuf field string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Output only. By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getImportExistingResources() + { + return $this->import_existing_resources; + } + + /** + * Output only. By default, Infra Manager will return a failure when + * Terraform encounters a 409 code (resource conflict error) during actuation. + * If this flag is set to true, Infra Manager will instead + * attempt to automatically import the resource into the Terraform state (for + * supported resource types) and continue actuation. + * Not all resource types are supported, refer to documentation. + * + * Generated from protobuf field bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setImportExistingResources($var) + { + GPBUtil::checkBool($var); + $this->import_existing_resources = $var; + + return $this; + } + + /** + * Output only. The user-specified Cloud Build worker pool resource in which + * the Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkerPool() + { + return $this->worker_pool; + } + + /** + * Output only. The user-specified Cloud Build worker pool resource in which + * the Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + * If this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * Generated from protobuf field string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Output only. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTfVersionConstraint() + { + return $this->tf_version_constraint; + } + + /** + * Output only. The user-specified Terraform version constraint. + * Example: "=1.3.10". + * + * Generated from protobuf field string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTfVersionConstraint($var) + { + GPBUtil::checkString($var, True); + $this->tf_version_constraint = $var; + + return $this; + } + + /** + * Output only. The version of Terraform used to create the Revision. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTfVersion() + { + return $this->tf_version; + } + + /** + * Output only. The version of Terraform used to create the Revision. + * It is in the format of "Major.Minor.Patch", for example, "1.3.10". + * + * Generated from protobuf field string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTfVersion($var) + { + GPBUtil::checkString($var, True); + $this->tf_version = $var; + + return $this; + } + + /** + * Output only. Cloud Storage path containing quota validation results. This + * field is set when a user sets Deployment.quota_validation field to ENABLED + * or ENFORCED. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getQuotaValidationResults() + { + return $this->quota_validation_results; + } + + /** + * Output only. Cloud Storage path containing quota validation results. This + * field is set when a user sets Deployment.quota_validation field to ENABLED + * or ENFORCED. Format: `gs://{bucket}/{object}`. + * + * Generated from protobuf field string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setQuotaValidationResults($var) + { + GPBUtil::checkString($var, True); + $this->quota_validation_results = $var; + + return $this; + } + + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQuotaValidation() + { + return $this->quota_validation; + } + + /** + * Optional. Input to control quota checks for resources in terraform + * configuration files. There are limited resources on which quota validation + * applies. + * + * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQuotaValidation($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\QuotaValidation::class); + $this->quota_validation = $var; + + return $this; + } + + /** + * @return string + */ + public function getBlueprint() + { + return $this->whichOneof("blueprint"); + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/Action.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/Action.php new file mode 100644 index 000000000000..c534a168ff30 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/Action.php @@ -0,0 +1,71 @@ +google.cloud.config.v1.Revision.Action + */ +class Action +{ + /** + * The default value. This value is used if the action is omitted. + * + * Generated from protobuf enum ACTION_UNSPECIFIED = 0; + */ + const ACTION_UNSPECIFIED = 0; + /** + * The revision was generated by creating a deployment. + * + * Generated from protobuf enum CREATE = 1; + */ + const CREATE = 1; + /** + * The revision was generated by updating a deployment. + * + * Generated from protobuf enum UPDATE = 2; + */ + const UPDATE = 2; + /** + * The revision was deleted. + * + * Generated from protobuf enum DELETE = 3; + */ + const DELETE = 3; + + private static $valueToName = [ + self::ACTION_UNSPECIFIED => 'ACTION_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(Action::class, \Google\Cloud\Config\V1\Revision_Action::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/ErrorCode.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/ErrorCode.php new file mode 100644 index 000000000000..53697151dbe4 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/ErrorCode.php @@ -0,0 +1,81 @@ +google.cloud.config.v1.Revision.ErrorCode + */ +class ErrorCode +{ + /** + * No error code was specified. + * + * Generated from protobuf enum ERROR_CODE_UNSPECIFIED = 0; + */ + const ERROR_CODE_UNSPECIFIED = 0; + /** + * Cloud Build failed due to a permission issue. + * + * Generated from protobuf enum CLOUD_BUILD_PERMISSION_DENIED = 1; + */ + const CLOUD_BUILD_PERMISSION_DENIED = 1; + /** + * Cloud Build job associated with creating or updating a deployment could + * not be started. + * + * Generated from protobuf enum APPLY_BUILD_API_FAILED = 4; + */ + const APPLY_BUILD_API_FAILED = 4; + /** + * Cloud Build job associated with creating or updating a deployment was + * started but failed. + * + * Generated from protobuf enum APPLY_BUILD_RUN_FAILED = 5; + */ + const APPLY_BUILD_RUN_FAILED = 5; + /** + * quota validation failed for one or more resources in terraform + * configuration files. + * + * Generated from protobuf enum QUOTA_VALIDATION_FAILED = 7; + */ + const QUOTA_VALIDATION_FAILED = 7; + + private static $valueToName = [ + self::ERROR_CODE_UNSPECIFIED => 'ERROR_CODE_UNSPECIFIED', + self::CLOUD_BUILD_PERMISSION_DENIED => 'CLOUD_BUILD_PERMISSION_DENIED', + self::APPLY_BUILD_API_FAILED => 'APPLY_BUILD_API_FAILED', + self::APPLY_BUILD_RUN_FAILED => 'APPLY_BUILD_RUN_FAILED', + self::QUOTA_VALIDATION_FAILED => 'QUOTA_VALIDATION_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(ErrorCode::class, \Google\Cloud\Config\V1\Revision_ErrorCode::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/State.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/State.php new file mode 100644 index 000000000000..131fd200bd82 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Revision/State.php @@ -0,0 +1,71 @@ +google.cloud.config.v1.Revision.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 revision is being applied. + * + * Generated from protobuf enum APPLYING = 1; + */ + const APPLYING = 1; + /** + * The revision was applied successfully. + * + * Generated from protobuf enum APPLIED = 2; + */ + const APPLIED = 2; + /** + * The revision could not be applied successfully. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::APPLYING => 'APPLYING', + self::APPLIED => 'APPLIED', + 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\Config\V1\Revision_State::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Statefile.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Statefile.php new file mode 100644 index 000000000000..5ed3c47ac7c1 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/Statefile.php @@ -0,0 +1,71 @@ +google.cloud.config.v1.Statefile + */ +class Statefile extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Cloud Storage signed URI used for downloading or uploading the + * state file. + * + * Generated from protobuf field string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $signed_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $signed_uri + * Output only. Cloud Storage signed URI used for downloading or uploading the + * state file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Cloud Storage signed URI used for downloading or uploading the + * state file. + * + * Generated from protobuf field string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSignedUri() + { + return $this->signed_uri; + } + + /** + * Output only. Cloud Storage signed URI used for downloading or uploading the + * state file. + * + * Generated from protobuf field string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSignedUri($var) + { + GPBUtil::checkString($var, True); + $this->signed_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformBlueprint.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformBlueprint.php new file mode 100644 index 000000000000..ff8aa54b5acd --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformBlueprint.php @@ -0,0 +1,152 @@ +google.cloud.config.v1.TerraformBlueprint + */ +class TerraformBlueprint extends \Google\Protobuf\Internal\Message +{ + /** + * Input variable values for the Terraform blueprint. + * + * Generated from protobuf field map input_values = 4; + */ + private $input_values; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_source + * Required. URI of an object in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * URI may also specify an object version for zipped objects. + * Format: `gs://{bucket}/{object}#{version}` + * @type \Google\Cloud\Config\V1\GitSource $git_source + * Required. URI of a public Git repo. + * @type array|\Google\Protobuf\Internal\MapField $input_values + * Input variable values for the Terraform blueprint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. URI of an object in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * URI may also specify an object version for zipped objects. + * Format: `gs://{bucket}/{object}#{version}` + * + * Generated from protobuf field string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGcsSource() + { + return $this->readOneof(1); + } + + public function hasGcsSource() + { + return $this->hasOneof(1); + } + + /** + * Required. URI of an object in Google Cloud Storage. + * Format: `gs://{bucket}/{object}` + * URI may also specify an object version for zipped objects. + * Format: `gs://{bucket}/{object}#{version}` + * + * Generated from protobuf field string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Required. URI of a public Git repo. + * + * Generated from protobuf field .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Config\V1\GitSource|null + */ + public function getGitSource() + { + return $this->readOneof(2); + } + + public function hasGitSource() + { + return $this->hasOneof(2); + } + + /** + * Required. URI of a public Git repo. + * + * Generated from protobuf field .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Config\V1\GitSource $var + * @return $this + */ + public function setGitSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\GitSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Input variable values for the Terraform blueprint. + * + * Generated from protobuf field map input_values = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getInputValues() + { + return $this->input_values; + } + + /** + * Input variable values for the Terraform blueprint. + * + * Generated from protobuf field map input_values = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setInputValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\TerraformVariable::class); + $this->input_values = $arr; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformError.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformError.php new file mode 100644 index 000000000000..10ea73b1bb8a --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformError.php @@ -0,0 +1,191 @@ +google.cloud.config.v1.TerraformError + */ +class TerraformError extends \Google\Protobuf\Internal\Message +{ + /** + * Address of the resource associated with the error, + * e.g. `google_compute_network.vpc_network`. + * + * Generated from protobuf field string resource_address = 1; + */ + protected $resource_address = ''; + /** + * HTTP response code returned from Google Cloud Platform APIs when Terraform + * fails to provision the resource. If unset or 0, no HTTP response code was + * returned by Terraform. + * + * Generated from protobuf field int32 http_response_code = 2; + */ + protected $http_response_code = 0; + /** + * A human-readable error description. + * + * Generated from protobuf field string error_description = 3; + */ + protected $error_description = ''; + /** + * Original error response from underlying Google API, if available. + * + * Generated from protobuf field .google.rpc.Status error = 4; + */ + protected $error = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_address + * Address of the resource associated with the error, + * e.g. `google_compute_network.vpc_network`. + * @type int $http_response_code + * HTTP response code returned from Google Cloud Platform APIs when Terraform + * fails to provision the resource. If unset or 0, no HTTP response code was + * returned by Terraform. + * @type string $error_description + * A human-readable error description. + * @type \Google\Rpc\Status $error + * Original error response from underlying Google API, if available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Address of the resource associated with the error, + * e.g. `google_compute_network.vpc_network`. + * + * Generated from protobuf field string resource_address = 1; + * @return string + */ + public function getResourceAddress() + { + return $this->resource_address; + } + + /** + * Address of the resource associated with the error, + * e.g. `google_compute_network.vpc_network`. + * + * Generated from protobuf field string resource_address = 1; + * @param string $var + * @return $this + */ + public function setResourceAddress($var) + { + GPBUtil::checkString($var, True); + $this->resource_address = $var; + + return $this; + } + + /** + * HTTP response code returned from Google Cloud Platform APIs when Terraform + * fails to provision the resource. If unset or 0, no HTTP response code was + * returned by Terraform. + * + * Generated from protobuf field int32 http_response_code = 2; + * @return int + */ + public function getHttpResponseCode() + { + return $this->http_response_code; + } + + /** + * HTTP response code returned from Google Cloud Platform APIs when Terraform + * fails to provision the resource. If unset or 0, no HTTP response code was + * returned by Terraform. + * + * Generated from protobuf field int32 http_response_code = 2; + * @param int $var + * @return $this + */ + public function setHttpResponseCode($var) + { + GPBUtil::checkInt32($var); + $this->http_response_code = $var; + + return $this; + } + + /** + * A human-readable error description. + * + * Generated from protobuf field string error_description = 3; + * @return string + */ + public function getErrorDescription() + { + return $this->error_description; + } + + /** + * A human-readable error description. + * + * Generated from protobuf field string error_description = 3; + * @param string $var + * @return $this + */ + public function setErrorDescription($var) + { + GPBUtil::checkString($var, True); + $this->error_description = $var; + + return $this; + } + + /** + * Original error response from underlying Google API, if available. + * + * 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); + } + + /** + * Original error response from underlying Google API, if available. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformOutput.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformOutput.php new file mode 100644 index 000000000000..274b90dccea7 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformOutput.php @@ -0,0 +1,115 @@ +google.cloud.config.v1.TerraformOutput + */ +class TerraformOutput extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies whether Terraform has set this output as a potential + * sensitive value. + * + * Generated from protobuf field bool sensitive = 1; + */ + protected $sensitive = false; + /** + * Value of output. + * + * Generated from protobuf field .google.protobuf.Value value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $sensitive + * Identifies whether Terraform has set this output as a potential + * sensitive value. + * @type \Google\Protobuf\Value $value + * Value of output. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Identifies whether Terraform has set this output as a potential + * sensitive value. + * + * Generated from protobuf field bool sensitive = 1; + * @return bool + */ + public function getSensitive() + { + return $this->sensitive; + } + + /** + * Identifies whether Terraform has set this output as a potential + * sensitive value. + * + * Generated from protobuf field bool sensitive = 1; + * @param bool $var + * @return $this + */ + public function setSensitive($var) + { + GPBUtil::checkBool($var); + $this->sensitive = $var; + + return $this; + } + + /** + * Value of output. + * + * Generated from protobuf field .google.protobuf.Value value = 2; + * @return \Google\Protobuf\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Value of output. + * + * Generated from protobuf field .google.protobuf.Value value = 2; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVariable.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVariable.php new file mode 100644 index 000000000000..6e15fac30434 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVariable.php @@ -0,0 +1,77 @@ +google.cloud.config.v1.TerraformVariable + */ +class TerraformVariable extends \Google\Protobuf\Internal\Message +{ + /** + * Input variable value. + * + * Generated from protobuf field .google.protobuf.Value input_value = 5; + */ + protected $input_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Value $input_value + * Input variable value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Input variable value. + * + * Generated from protobuf field .google.protobuf.Value input_value = 5; + * @return \Google\Protobuf\Value|null + */ + public function getInputValue() + { + return $this->input_value; + } + + public function hasInputValue() + { + return isset($this->input_value); + } + + public function clearInputValue() + { + unset($this->input_value); + } + + /** + * Input variable value. + * + * Generated from protobuf field .google.protobuf.Value input_value = 5; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setInputValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->input_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion.php new file mode 100644 index 000000000000..15be7f36d1d1 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion.php @@ -0,0 +1,238 @@ +google.cloud.config.v1.TerraformVersion + */ +class TerraformVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The version name is in the format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. When the version is supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $support_time = null; + /** + * Output only. When the version is deprecated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deprecate_time = null; + /** + * Output only. When the version is obsolete. + * + * Generated from protobuf field optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $obsolete_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The version name is in the format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. + * @type int $state + * Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. + * @type \Google\Protobuf\Timestamp $support_time + * Output only. When the version is supported. + * @type \Google\Protobuf\Timestamp $deprecate_time + * Output only. When the version is deprecated. + * @type \Google\Protobuf\Timestamp $obsolete_time + * Output only. When the version is obsolete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The version name is in the format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The version name is in the format: + * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_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; + } + + /** + * Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. + * + * Generated from protobuf field .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\TerraformVersion\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. When the version is supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSupportTime() + { + return $this->support_time; + } + + public function hasSupportTime() + { + return isset($this->support_time); + } + + public function clearSupportTime() + { + unset($this->support_time); + } + + /** + * Output only. When the version is supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSupportTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->support_time = $var; + + return $this; + } + + /** + * Output only. When the version is deprecated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeprecateTime() + { + return $this->deprecate_time; + } + + public function hasDeprecateTime() + { + return isset($this->deprecate_time); + } + + public function clearDeprecateTime() + { + unset($this->deprecate_time); + } + + /** + * Output only. When the version is deprecated. + * + * Generated from protobuf field optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeprecateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->deprecate_time = $var; + + return $this; + } + + /** + * Output only. When the version is obsolete. + * + * Generated from protobuf field optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getObsoleteTime() + { + return $this->obsolete_time; + } + + public function hasObsoleteTime() + { + return isset($this->obsolete_time); + } + + public function clearObsoleteTime() + { + unset($this->obsolete_time); + } + + /** + * Output only. When the version is obsolete. + * + * Generated from protobuf field optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setObsoleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->obsolete_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion/State.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion/State.php new file mode 100644 index 000000000000..de07b8523f35 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/TerraformVersion/State.php @@ -0,0 +1,71 @@ +google.cloud.config.v1.TerraformVersion.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 version is actively supported. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The version is deprecated. + * + * Generated from protobuf enum DEPRECATED = 2; + */ + const DEPRECATED = 2; + /** + * The version is obsolete. + * + * Generated from protobuf enum OBSOLETE = 3; + */ + const OBSOLETE = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::DEPRECATED => 'DEPRECATED', + 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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Config\V1\TerraformVersion_State::class); + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UnlockDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UnlockDeploymentRequest.php new file mode 100644 index 000000000000..b37045f8c520 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UnlockDeploymentRequest.php @@ -0,0 +1,122 @@ +google.cloud.config.v1.UnlockDeploymentRequest + */ +class UnlockDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Lock ID of the lock file to be unlocked. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lock_id = 0; + + /** + * @param string $name Required. The name of the deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see + * {@see ConfigClient::deploymentName()} for help formatting this field. + * @param int $lockId Required. Lock ID of the lock file to be unlocked. + * + * @return \Google\Cloud\Config\V1\UnlockDeploymentRequest + * + * @experimental + */ + public static function build(string $name, int $lockId): self + { + return (new self()) + ->setName($name) + ->setLockId($lockId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the deployment in the format: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. + * @type int|string $lock_id + * Required. Lock ID of the lock file to be unlocked. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the deployment in the format: + * 'projects/{project_id}/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 in the format: + * 'projects/{project_id}/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; + } + + /** + * Required. Lock ID of the lock file to be unlocked. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getLockId() + { + return $this->lock_id; + } + + /** + * Required. Lock ID of the lock file to be unlocked. + * + * Generated from protobuf field int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setLockId($var) + { + GPBUtil::checkInt64($var); + $this->lock_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UpdateDeploymentRequest.php b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UpdateDeploymentRequest.php new file mode 100644 index 000000000000..99451b86cde0 --- /dev/null +++ b/owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UpdateDeploymentRequest.php @@ -0,0 +1,245 @@ +google.cloud.config.v1.UpdateDeploymentRequest + */ +class UpdateDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Field mask used to specify the fields to be overwritten in the + * Deployment 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. [Deployment][google.cloud.config.v1.Deployment] to update. + * The deployment's `name` field is used to identify the resource to be + * updated. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}` + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployment = 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\Config\V1\Deployment $deployment Required. [Deployment][google.cloud.config.v1.Deployment] to update. + * + * The deployment's `name` field is used to identify the resource to be + * updated. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}` + * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask used to specify the fields to be overwritten in the + * Deployment 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\Config\V1\UpdateDeploymentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Config\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\Protobuf\FieldMask $update_mask + * Optional. Field mask used to specify the fields to be overwritten in the + * Deployment 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\Config\V1\Deployment $deployment + * Required. [Deployment][google.cloud.config.v1.Deployment] to update. + * The deployment's `name` field is used to identify the resource to be + * updated. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}` + * @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\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Field mask used to specify the fields to be overwritten in the + * Deployment 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 used to specify the fields to be overwritten in the + * Deployment 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. [Deployment][google.cloud.config.v1.Deployment] to update. + * The deployment's `name` field is used to identify the resource to be + * updated. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}` + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Config\V1\Deployment|null + */ + public function getDeployment() + { + return $this->deployment; + } + + public function hasDeployment() + { + return isset($this->deployment); + } + + public function clearDeployment() + { + unset($this->deployment); + } + + /** + * Required. [Deployment][google.cloud.config.v1.Deployment] to update. + * The deployment's `name` field is used to identify the resource to be + * updated. Format: + * `projects/{project}/locations/{location}/deployments/{deployment}` + * + * Generated from protobuf field .google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Config\V1\Deployment $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\Deployment::class); + $this->deployment = $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/Config/v1/samples/V1/ConfigClient/create_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_deployment.php new file mode 100644 index 000000000000..51d91ffdc8ac --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_deployment.php @@ -0,0 +1,89 @@ +setParent($formattedParent) + ->setDeploymentId($deploymentId) + ->setDeployment($deployment); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->createDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Deployment $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 = ConfigClient::locationName('[PROJECT]', '[LOCATION]'); + $deploymentId = '[DEPLOYMENT_ID]'; + + create_deployment_sample($formattedParent, $deploymentId); +} +// [END config_v1_generated_Config_CreateDeployment_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_preview.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_preview.php new file mode 100644 index 000000000000..463618bedd10 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/create_preview.php @@ -0,0 +1,86 @@ +setParent($formattedParent) + ->setPreview($preview); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->createPreview($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Preview $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 = ConfigClient::locationName('[PROJECT]', '[LOCATION]'); + + create_preview_sample($formattedParent); +} +// [END config_v1_generated_Config_CreatePreview_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_deployment.php new file mode 100644 index 000000000000..827bc3366c4b --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_deployment.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->deleteDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Deployment $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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + delete_deployment_sample($formattedName); +} +// [END config_v1_generated_Config_DeleteDeployment_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_preview.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_preview.php new file mode 100644 index 000000000000..e88cf0708420 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_preview.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->deletePreview($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Preview $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 = ConfigClient::previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + + delete_preview_sample($formattedName); +} +// [END config_v1_generated_Config_DeletePreview_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_statefile.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_statefile.php new file mode 100644 index 000000000000..4b2435ab7b41 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/delete_statefile.php @@ -0,0 +1,74 @@ +setName($formattedName) + ->setLockId($lockId); + + // Call the API and handle any network failures. + try { + $configClient->deleteStatefile($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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 0; + + delete_statefile_sample($formattedName, $lockId); +} +// [END config_v1_generated_Config_DeleteStatefile_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_deployment_statefile.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_deployment_statefile.php new file mode 100644 index 000000000000..8853db69fe54 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_deployment_statefile.php @@ -0,0 +1,73 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var Statefile $response */ + $response = $configClient->exportDeploymentStatefile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + export_deployment_statefile_sample($formattedParent); +} +// [END config_v1_generated_Config_ExportDeploymentStatefile_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_lock_info.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_lock_info.php new file mode 100644 index 000000000000..4985c5130c62 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_lock_info.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var LockInfo $response */ + $response = $configClient->exportLockInfo($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + export_lock_info_sample($formattedName); +} +// [END config_v1_generated_Config_ExportLockInfo_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_preview_result.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_preview_result.php new file mode 100644 index 000000000000..7d0d2070840c --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_preview_result.php @@ -0,0 +1,73 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ExportPreviewResultResponse $response */ + $response = $configClient->exportPreviewResult($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ConfigClient::previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + + export_preview_result_sample($formattedParent); +} +// [END config_v1_generated_Config_ExportPreviewResult_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_revision_statefile.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_revision_statefile.php new file mode 100644 index 000000000000..8f6b784c1b50 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/export_revision_statefile.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var Statefile $response */ + $response = $configClient->exportRevisionStatefile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ConfigClient::revisionName( + '[PROJECT]', + '[LOCATION]', + '[DEPLOYMENT]', + '[REVISION]' + ); + + export_revision_statefile_sample($formattedParent); +} +// [END config_v1_generated_Config_ExportRevisionStatefile_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_deployment.php new file mode 100644 index 000000000000..e6308e87f630 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_deployment.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Deployment $response */ + $response = $configClient->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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + get_deployment_sample($formattedName); +} +// [END config_v1_generated_Config_GetDeployment_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_iam_policy.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_iam_policy.php new file mode 100644 index 000000000000..8cb5f81a3d62 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $configClient->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 config_v1_generated_Config_GetIamPolicy_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_location.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_location.php new file mode 100644 index 000000000000..627717550000 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END config_v1_generated_Config_GetLocation_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_preview.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_preview.php new file mode 100644 index 000000000000..4a0d5e75a321 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_preview.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Preview $response */ + $response = $configClient->getPreview($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ConfigClient::previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + + get_preview_sample($formattedName); +} +// [END config_v1_generated_Config_GetPreview_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_resource.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_resource.php new file mode 100644 index 000000000000..0a522239cac5 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_resource.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Resource $response */ + $response = $configClient->getResource($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ConfigClient::resourceName( + '[PROJECT]', + '[LOCATION]', + '[DEPLOYMENT]', + '[REVISION]', + '[RESOURCE]' + ); + + get_resource_sample($formattedName); +} +// [END config_v1_generated_Config_GetResource_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_revision.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_revision.php new file mode 100644 index 000000000000..46a04228942e --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_revision.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Revision $response */ + $response = $configClient->getRevision($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ConfigClient::revisionName( + '[PROJECT]', + '[LOCATION]', + '[DEPLOYMENT]', + '[REVISION]' + ); + + get_revision_sample($formattedName); +} +// [END config_v1_generated_Config_GetRevision_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_terraform_version.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_terraform_version.php new file mode 100644 index 000000000000..1985808c019a --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/get_terraform_version.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TerraformVersion $response */ + $response = $configClient->getTerraformVersion($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ConfigClient::terraformVersionName( + '[PROJECT]', + '[LOCATION]', + '[TERRAFORM_VERSION]' + ); + + get_terraform_version_sample($formattedName); +} +// [END config_v1_generated_Config_GetTerraformVersion_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/import_statefile.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/import_statefile.php new file mode 100644 index 000000000000..7a009142cd58 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/import_statefile.php @@ -0,0 +1,78 @@ +setParent($formattedParent) + ->setLockId($lockId); + + // Call the API and handle any network failures. + try { + /** @var Statefile $response */ + $response = $configClient->importStatefile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 0; + + import_statefile_sample($formattedParent, $lockId); +} +// [END config_v1_generated_Config_ImportStatefile_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_deployments.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_deployments.php new file mode 100644 index 000000000000..a03c0cbbdf98 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_deployments.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listDeployments($request); + + /** @var Deployment $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 = ConfigClient::locationName('[PROJECT]', '[LOCATION]'); + + list_deployments_sample($formattedParent); +} +// [END config_v1_generated_Config_ListDeployments_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_locations.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_locations.php new file mode 100644 index 000000000000..200a01247c2d --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_locations.php @@ -0,0 +1,62 @@ +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 config_v1_generated_Config_ListLocations_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_previews.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_previews.php new file mode 100644 index 000000000000..75d044f88d12 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_previews.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listPreviews($request); + + /** @var Preview $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 = ConfigClient::locationName('[PROJECT]', '[LOCATION]'); + + list_previews_sample($formattedParent); +} +// [END config_v1_generated_Config_ListPreviews_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_resources.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_resources.php new file mode 100644 index 000000000000..0c2b0c5e4d20 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_resources.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listResources($request); + + /** @var Resource $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 = ConfigClient::revisionName( + '[PROJECT]', + '[LOCATION]', + '[DEPLOYMENT]', + '[REVISION]' + ); + + list_resources_sample($formattedParent); +} +// [END config_v1_generated_Config_ListResources_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_revisions.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_revisions.php new file mode 100644 index 000000000000..ce791f7f79f6 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_revisions.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listRevisions($request); + + /** @var Revision $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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + list_revisions_sample($formattedParent); +} +// [END config_v1_generated_Config_ListRevisions_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_terraform_versions.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_terraform_versions.php new file mode 100644 index 000000000000..5dfc2095ef22 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/list_terraform_versions.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listTerraformVersions($request); + + /** @var TerraformVersion $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 = ConfigClient::locationName('[PROJECT]', '[LOCATION]'); + + list_terraform_versions_sample($formattedParent); +} +// [END config_v1_generated_Config_ListTerraformVersions_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/lock_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/lock_deployment.php new file mode 100644 index 000000000000..3cb371c746b2 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/lock_deployment.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->lockDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Deployment $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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + + lock_deployment_sample($formattedName); +} +// [END config_v1_generated_Config_LockDeployment_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/set_iam_policy.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/set_iam_policy.php new file mode 100644 index 000000000000..88bf5c0324bb --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $configClient->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 config_v1_generated_Config_SetIamPolicy_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/test_iam_permissions.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/test_iam_permissions.php new file mode 100644 index 000000000000..29f93422e4d7 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $configClient->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 config_v1_generated_Config_TestIamPermissions_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/unlock_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/unlock_deployment.php new file mode 100644 index 000000000000..41afcaaacacd --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/unlock_deployment.php @@ -0,0 +1,87 @@ +setName($formattedName) + ->setLockId($lockId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->unlockDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Deployment $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 = ConfigClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 0; + + unlock_deployment_sample($formattedName, $lockId); +} +// [END config_v1_generated_Config_UnlockDeployment_sync] diff --git a/owl-bot-staging/Config/v1/samples/V1/ConfigClient/update_deployment.php b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/update_deployment.php new file mode 100644 index 000000000000..140fc01c0b68 --- /dev/null +++ b/owl-bot-staging/Config/v1/samples/V1/ConfigClient/update_deployment.php @@ -0,0 +1,71 @@ +setDeployment($deployment); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $configClient->updateDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Deployment $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 config_v1_generated_Config_UpdateDeployment_sync] diff --git a/owl-bot-staging/Config/v1/src/V1/Client/ConfigClient.php b/owl-bot-staging/Config/v1/src/V1/Client/ConfigClient.php new file mode 100644 index 000000000000..9cd27ca18768 --- /dev/null +++ b/owl-bot-staging/Config/v1/src/V1/Client/ConfigClient.php @@ -0,0 +1,1218 @@ + createDeploymentAsync(CreateDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPreviewAsync(CreatePreviewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeploymentAsync(DeleteDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePreviewAsync(DeletePreviewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteStatefileAsync(DeleteStatefileRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportDeploymentStatefileAsync(ExportDeploymentStatefileRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportLockInfoAsync(ExportLockInfoRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportPreviewResultAsync(ExportPreviewResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportRevisionStatefileAsync(ExportRevisionStatefileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPreviewAsync(GetPreviewRequest $request, array $optionalArgs = []) + * @method PromiseInterface getResourceAsync(GetResourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRevisionAsync(GetRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTerraformVersionAsync(GetTerraformVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface importStatefileAsync(ImportStatefileRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeploymentsAsync(ListDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPreviewsAsync(ListPreviewsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listResourcesAsync(ListResourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRevisionsAsync(ListRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTerraformVersionsAsync(ListTerraformVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lockDeploymentAsync(LockDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface unlockDeploymentAsync(UnlockDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeploymentAsync(UpdateDeploymentRequest $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 ConfigClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.config.v1.Config'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'config.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'config.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/config_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/config_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/config_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/config_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 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 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 preview + * resource. + * + * @param string $project + * @param string $location + * @param string $preview + * + * @return string The formatted preview resource. + */ + public static function previewName(string $project, string $location, string $preview): string + { + return self::getPathTemplate('preview')->render([ + 'project' => $project, + 'location' => $location, + 'preview' => $preview, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a resource + * resource. + * + * @param string $project + * @param string $location + * @param string $deployment + * @param string $revision + * @param string $resource + * + * @return string The formatted resource resource. + */ + public static function resourceName(string $project, string $location, string $deployment, string $revision, string $resource): string + { + return self::getPathTemplate('resource')->render([ + 'project' => $project, + 'location' => $location, + 'deployment' => $deployment, + 'revision' => $revision, + 'resource' => $resource, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a revision + * resource. + * + * @param string $project + * @param string $location + * @param string $deployment + * @param string $revision + * + * @return string The formatted revision resource. + */ + public static function revisionName(string $project, string $location, string $deployment, string $revision): string + { + return self::getPathTemplate('revision')->render([ + 'project' => $project, + 'location' => $location, + 'deployment' => $deployment, + 'revision' => $revision, + ]); + } + + /** + * 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, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * terraform_version resource. + * + * @param string $project + * @param string $location + * @param string $terraformVersion + * + * @return string The formatted terraform_version resource. + */ + public static function terraformVersionName(string $project, string $location, string $terraformVersion): string + { + return self::getPathTemplate('terraformVersion')->render([ + 'project' => $project, + 'location' => $location, + 'terraform_version' => $terraformVersion, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a worker_pool + * resource. + * + * @param string $project + * @param string $location + * @param string $workerPool + * + * @return string The formatted worker_pool resource. + */ + public static function workerPoolName(string $project, string $location, string $workerPool): string + { + return self::getPathTemplate('workerPool')->render([ + 'project' => $project, + 'location' => $location, + 'worker_pool' => $workerPool, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - deployment: projects/{project}/locations/{location}/deployments/{deployment} + * - location: projects/{project}/locations/{location} + * - preview: projects/{project}/locations/{location}/previews/{preview} + * - resource: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource} + * - revision: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision} + * - serviceAccount: projects/{project}/serviceAccounts/{service_account} + * - terraformVersion: projects/{project}/locations/{location}/terraformVersions/{terraform_version} + * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool} + * + * 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 'config.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 [Deployment][google.cloud.config.v1.Deployment]. + * + * The async variant is {@see ConfigClient::createDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDeployment(CreateDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDeployment', $request, $callOptions)->wait(); + } + + /** + * Creates a [Preview][google.cloud.config.v1.Preview]. + * + * The async variant is {@see ConfigClient::createPreviewAsync()} . + * + * @example samples/V1/ConfigClient/create_preview.php + * + * @param CreatePreviewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 createPreview(CreatePreviewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreatePreview', $request, $callOptions)->wait(); + } + + /** + * Deletes a [Deployment][google.cloud.config.v1.Deployment]. + * + * The async variant is {@see ConfigClient::deleteDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/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. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDeployment(DeleteDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDeployment', $request, $callOptions)->wait(); + } + + /** + * Deletes a [Preview][google.cloud.config.v1.Preview]. + * + * The async variant is {@see ConfigClient::deletePreviewAsync()} . + * + * @example samples/V1/ConfigClient/delete_preview.php + * + * @param DeletePreviewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 deletePreview(DeletePreviewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeletePreview', $request, $callOptions)->wait(); + } + + /** + * Deletes Terraform state file in a given deployment. + * + * The async variant is {@see ConfigClient::deleteStatefileAsync()} . + * + * @example samples/V1/ConfigClient/delete_statefile.php + * + * @param DeleteStatefileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteStatefile(DeleteStatefileRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteStatefile', $request, $callOptions)->wait(); + } + + /** + * Exports Terraform state file from a given deployment. + * + * The async variant is {@see ConfigClient::exportDeploymentStatefileAsync()} . + * + * @example samples/V1/ConfigClient/export_deployment_statefile.php + * + * @param ExportDeploymentStatefileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Statefile + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportDeploymentStatefile(ExportDeploymentStatefileRequest $request, array $callOptions = []): Statefile + { + return $this->startApiCall('ExportDeploymentStatefile', $request, $callOptions)->wait(); + } + + /** + * Exports the lock info on a locked deployment. + * + * The async variant is {@see ConfigClient::exportLockInfoAsync()} . + * + * @example samples/V1/ConfigClient/export_lock_info.php + * + * @param ExportLockInfoRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return LockInfo + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportLockInfo(ExportLockInfoRequest $request, array $callOptions = []): LockInfo + { + return $this->startApiCall('ExportLockInfo', $request, $callOptions)->wait(); + } + + /** + * Export [Preview][google.cloud.config.v1.Preview] results. + * + * The async variant is {@see ConfigClient::exportPreviewResultAsync()} . + * + * @example samples/V1/ConfigClient/export_preview_result.php + * + * @param ExportPreviewResultRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExportPreviewResultResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportPreviewResult(ExportPreviewResultRequest $request, array $callOptions = []): ExportPreviewResultResponse + { + return $this->startApiCall('ExportPreviewResult', $request, $callOptions)->wait(); + } + + /** + * Exports Terraform state file from a given revision. + * + * The async variant is {@see ConfigClient::exportRevisionStatefileAsync()} . + * + * @example samples/V1/ConfigClient/export_revision_statefile.php + * + * @param ExportRevisionStatefileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Statefile + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportRevisionStatefile(ExportRevisionStatefileRequest $request, array $callOptions = []): Statefile + { + return $this->startApiCall('ExportRevisionStatefile', $request, $callOptions)->wait(); + } + + /** + * Gets details about a [Deployment][google.cloud.config.v1.Deployment]. + * + * The async variant is {@see ConfigClient::getDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/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(); + } + + /** + * Gets details about a [Preview][google.cloud.config.v1.Preview]. + * + * The async variant is {@see ConfigClient::getPreviewAsync()} . + * + * @example samples/V1/ConfigClient/get_preview.php + * + * @param GetPreviewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Preview + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPreview(GetPreviewRequest $request, array $callOptions = []): Preview + { + return $this->startApiCall('GetPreview', $request, $callOptions)->wait(); + } + + /** + * Gets details about a [Resource][google.cloud.config.v1.Resource] deployed + * by Infra Manager. + * + * The async variant is {@see ConfigClient::getResourceAsync()} . + * + * @example samples/V1/ConfigClient/get_resource.php + * + * @param GetResourceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Resource + * + * @throws ApiException Thrown if the API call fails. + */ + public function getResource(GetResourceRequest $request, array $callOptions = []): Resource + { + return $this->startApiCall('GetResource', $request, $callOptions)->wait(); + } + + /** + * Gets details about a [Revision][google.cloud.config.v1.Revision]. + * + * The async variant is {@see ConfigClient::getRevisionAsync()} . + * + * @example samples/V1/ConfigClient/get_revision.php + * + * @param GetRevisionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Revision + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRevision(GetRevisionRequest $request, array $callOptions = []): Revision + { + return $this->startApiCall('GetRevision', $request, $callOptions)->wait(); + } + + /** + * Gets details about a + * [TerraformVersion][google.cloud.config.v1.TerraformVersion]. + * + * The async variant is {@see ConfigClient::getTerraformVersionAsync()} . + * + * @example samples/V1/ConfigClient/get_terraform_version.php + * + * @param GetTerraformVersionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TerraformVersion + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTerraformVersion(GetTerraformVersionRequest $request, array $callOptions = []): TerraformVersion + { + return $this->startApiCall('GetTerraformVersion', $request, $callOptions)->wait(); + } + + /** + * Imports Terraform state file in a given deployment. The state file does not + * take effect until the Deployment has been unlocked. + * + * The async variant is {@see ConfigClient::importStatefileAsync()} . + * + * @example samples/V1/ConfigClient/import_statefile.php + * + * @param ImportStatefileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Statefile + * + * @throws ApiException Thrown if the API call fails. + */ + public function importStatefile(ImportStatefileRequest $request, array $callOptions = []): Statefile + { + return $this->startApiCall('ImportStatefile', $request, $callOptions)->wait(); + } + + /** + * Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project + * and location. + * + * The async variant is {@see ConfigClient::listDeploymentsAsync()} . + * + * @example samples/V1/ConfigClient/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); + } + + /** + * Lists [Preview][google.cloud.config.v1.Preview]s in a given project and + * location. + * + * The async variant is {@see ConfigClient::listPreviewsAsync()} . + * + * @example samples/V1/ConfigClient/list_previews.php + * + * @param ListPreviewsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listPreviews(ListPreviewsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPreviews', $request, $callOptions); + } + + /** + * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * + * The async variant is {@see ConfigClient::listResourcesAsync()} . + * + * @example samples/V1/ConfigClient/list_resources.php + * + * @param ListResourcesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listResources(ListResourcesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListResources', $request, $callOptions); + } + + /** + * Lists [Revision][google.cloud.config.v1.Revision]s of a deployment. + * + * The async variant is {@see ConfigClient::listRevisionsAsync()} . + * + * @example samples/V1/ConfigClient/list_revisions.php + * + * @param ListRevisionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listRevisions(ListRevisionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRevisions', $request, $callOptions); + } + + /** + * Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a + * given project and location. + * + * The async variant is {@see ConfigClient::listTerraformVersionsAsync()} . + * + * @example samples/V1/ConfigClient/list_terraform_versions.php + * + * @param ListTerraformVersionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listTerraformVersions(ListTerraformVersionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTerraformVersions', $request, $callOptions); + } + + /** + * Locks a deployment. + * + * The async variant is {@see ConfigClient::lockDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/lock_deployment.php + * + * @param LockDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 lockDeployment(LockDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('LockDeployment', $request, $callOptions)->wait(); + } + + /** + * Unlocks a locked deployment. + * + * The async variant is {@see ConfigClient::unlockDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/unlock_deployment.php + * + * @param UnlockDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 unlockDeployment(UnlockDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UnlockDeployment', $request, $callOptions)->wait(); + } + + /** + * Updates a [Deployment][google.cloud.config.v1.Deployment]. + * + * The async variant is {@see ConfigClient::updateDeploymentAsync()} . + * + * @example samples/V1/ConfigClient/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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDeployment(UpdateDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDeployment', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see ConfigClient::getLocationAsync()} . + * + * @example samples/V1/ConfigClient/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 ConfigClient::listLocationsAsync()} . + * + * @example samples/V1/ConfigClient/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 ConfigClient::getIamPolicyAsync()} . + * + * @example samples/V1/ConfigClient/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 ConfigClient::setIamPolicyAsync()} . + * + * @example samples/V1/ConfigClient/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 ConfigClient::testIamPermissionsAsync()} . + * + * @example samples/V1/ConfigClient/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/Config/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Config/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..17aca320234b --- /dev/null +++ b/owl-bot-staging/Config/v1/src/V1/gapic_metadata.json @@ -0,0 +1,158 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.config.v1", + "libraryPackage": "Google\\Cloud\\Config\\V1", + "services": { + "Config": { + "clients": { + "grpc": { + "libraryClient": "ConfigGapicClient", + "rpcs": { + "CreateDeployment": { + "methods": [ + "createDeployment" + ] + }, + "CreatePreview": { + "methods": [ + "createPreview" + ] + }, + "DeleteDeployment": { + "methods": [ + "deleteDeployment" + ] + }, + "DeletePreview": { + "methods": [ + "deletePreview" + ] + }, + "DeleteStatefile": { + "methods": [ + "deleteStatefile" + ] + }, + "ExportDeploymentStatefile": { + "methods": [ + "exportDeploymentStatefile" + ] + }, + "ExportLockInfo": { + "methods": [ + "exportLockInfo" + ] + }, + "ExportPreviewResult": { + "methods": [ + "exportPreviewResult" + ] + }, + "ExportRevisionStatefile": { + "methods": [ + "exportRevisionStatefile" + ] + }, + "GetDeployment": { + "methods": [ + "getDeployment" + ] + }, + "GetPreview": { + "methods": [ + "getPreview" + ] + }, + "GetResource": { + "methods": [ + "getResource" + ] + }, + "GetRevision": { + "methods": [ + "getRevision" + ] + }, + "GetTerraformVersion": { + "methods": [ + "getTerraformVersion" + ] + }, + "ImportStatefile": { + "methods": [ + "importStatefile" + ] + }, + "ListDeployments": { + "methods": [ + "listDeployments" + ] + }, + "ListPreviews": { + "methods": [ + "listPreviews" + ] + }, + "ListResources": { + "methods": [ + "listResources" + ] + }, + "ListRevisions": { + "methods": [ + "listRevisions" + ] + }, + "ListTerraformVersions": { + "methods": [ + "listTerraformVersions" + ] + }, + "LockDeployment": { + "methods": [ + "lockDeployment" + ] + }, + "UnlockDeployment": { + "methods": [ + "unlockDeployment" + ] + }, + "UpdateDeployment": { + "methods": [ + "updateDeployment" + ] + }, + "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/Config/v1/src/V1/resources/config_client_config.json b/owl-bot-staging/Config/v1/src/V1/resources/config_client_config.json new file mode 100644 index 000000000000..6ea63ea32572 --- /dev/null +++ b/owl-bot-staging/Config/v1/src/V1/resources/config_client_config.json @@ -0,0 +1,166 @@ +{ + "interfaces": { + "google.cloud.config.v1.Config": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreatePreview": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeletePreview": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteStatefile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ExportDeploymentStatefile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ExportLockInfo": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ExportPreviewResult": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ExportRevisionStatefile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetPreview": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetResource": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetRevision": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetTerraformVersion": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ImportStatefile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListDeployments": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListPreviews": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListResources": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListRevisions": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListTerraformVersions": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "LockDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UnlockDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/owl-bot-staging/Config/v1/src/V1/resources/config_descriptor_config.php b/owl-bot-staging/Config/v1/src/V1/resources/config_descriptor_config.php new file mode 100644 index 000000000000..b6363a20d766 --- /dev/null +++ b/owl-bot-staging/Config/v1/src/V1/resources/config_descriptor_config.php @@ -0,0 +1,477 @@ + [ + 'google.cloud.config.v1.Config' => [ + 'CreateDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Deployment', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '300000', + 'pollDelayMultiplier' => '1.25', + 'maxPollDelayMillis' => '3600000', + 'totalPollTimeoutMillis' => '43200000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePreview' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Preview', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '300000', + 'pollDelayMultiplier' => '1.25', + 'maxPollDelayMillis' => '3600000', + 'totalPollTimeoutMillis' => '43200000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Deployment', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '300000', + 'pollDelayMultiplier' => '1.25', + 'maxPollDelayMillis' => '3600000', + 'totalPollTimeoutMillis' => '43200000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeletePreview' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Preview', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '300000', + 'pollDelayMultiplier' => '1.25', + 'maxPollDelayMillis' => '3600000', + 'totalPollTimeoutMillis' => '43200000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'LockDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Deployment', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UnlockDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Deployment', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Config\V1\Deployment', + 'metadataReturnType' => '\Google\Cloud\Config\V1\OperationMetadata', + 'initialPollDelayMillis' => '300000', + 'pollDelayMultiplier' => '1.25', + 'maxPollDelayMillis' => '3600000', + 'totalPollTimeoutMillis' => '43200000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'deployment.name', + 'fieldAccessors' => [ + 'getDeployment', + 'getName', + ], + ], + ], + ], + 'DeleteStatefile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ExportDeploymentStatefile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Statefile', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ExportLockInfo' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\LockInfo', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ExportPreviewResult' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\ExportPreviewResultResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ExportRevisionStatefile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Statefile', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Deployment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPreview' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Preview', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetResource' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Resource', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRevision' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Revision', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTerraformVersion' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\TerraformVersion', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ImportStatefile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Config\V1\Statefile', + '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\Config\V1\ListDeploymentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListPreviews' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPreviews', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Config\V1\ListPreviewsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListResources' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResources', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Config\V1\ListResourcesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRevisions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRevisions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Config\V1\ListRevisionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTerraformVersions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTerraformVersions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Config\V1\ListTerraformVersionsResponse', + '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' => [ + 'deployment' => 'projects/{project}/locations/{location}/deployments/{deployment}', + 'location' => 'projects/{project}/locations/{location}', + 'preview' => 'projects/{project}/locations/{location}/previews/{preview}', + 'resource' => 'projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}', + 'revision' => 'projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}', + 'serviceAccount' => 'projects/{project}/serviceAccounts/{service_account}', + 'terraformVersion' => 'projects/{project}/locations/{location}/terraformVersions/{terraform_version}', + 'workerPool' => 'projects/{project}/locations/{location}/workerPools/{worker_pool}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Config/v1/src/V1/resources/config_rest_client_config.php b/owl-bot-staging/Config/v1/src/V1/resources/config_rest_client_config.php new file mode 100644 index 000000000000..8c4252307138 --- /dev/null +++ b/owl-bot-staging/Config/v1/src/V1/resources/config_rest_client_config.php @@ -0,0 +1,404 @@ + [ + 'google.cloud.config.v1.Config' => [ + 'CreateDeployment' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployments', + 'body' => 'deployment', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'deployment_id', + ], + ], + 'CreatePreview' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/previews', + 'body' => 'preview', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDeployment' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeletePreview' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/previews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteStatefile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}:deleteState', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ExportDeploymentStatefile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deployments/*}:exportState', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ExportLockInfo' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}:exportLock', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ExportPreviewResult' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/previews/*}:export', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ExportRevisionStatefile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}:exportState', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDeployment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPreview' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/previews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetResource' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*/revisions/*/resources/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRevision' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*/revisions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTerraformVersion' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/terraformVersions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportStatefile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deployments/*}:importState', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeployments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployments', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListPreviews' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/previews', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListResources' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}/resources', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRevisions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deployments/*}/revisions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTerraformVersions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/terraformVersions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'LockDeployment' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}:lock', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UnlockDeployment' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}:unlock', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDeployment' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{deployment.name=projects/*/locations/*/deployments/*}', + 'body' => 'deployment', + 'placeholders' => [ + 'deployment.name' => [ + 'getters' => [ + 'getDeployment', + '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/*/deployments/*}:getIamPolicy', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deployments/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deployments/*}: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/Config/v1/tests/Unit/V1/Client/ConfigClientTest.php b/owl-bot-staging/Config/v1/tests/Unit/V1/Client/ConfigClientTest.php new file mode 100644 index 000000000000..b50f7b752078 --- /dev/null +++ b/owl-bot-staging/Config/v1/tests/Unit/V1/Client/ConfigClientTest.php @@ -0,0 +1,2706 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ConfigClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ConfigClient($options); + } + + /** @test */ + public function createDeploymentTest() + { + $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/createDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deploymentId = 'deploymentId51250389'; + $deployment = new Deployment(); + $request = (new CreateDeploymentRequest()) + ->setParent($formattedParent) + ->setDeploymentId($deploymentId) + ->setDeployment($deployment); + $response = $gapicClient->createDeployment($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.config.v1.Config/CreateDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDeploymentId(); + $this->assertProtobufEquals($deploymentId, $actualValue); + $actualValue = $actualApiRequestObject->getDeployment(); + $this->assertProtobufEquals($deployment, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeploymentTest'); + $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 createDeploymentExceptionTest() + { + $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/createDeploymentTest'); + $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]'); + $deploymentId = 'deploymentId51250389'; + $deployment = new Deployment(); + $request = (new CreateDeploymentRequest()) + ->setParent($formattedParent) + ->setDeploymentId($deploymentId) + ->setDeployment($deployment); + $response = $gapicClient->createDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeploymentTest'); + 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 createPreviewTest() + { + $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/createPreviewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $deployment = 'deployment1939520197'; + $serviceAccount = 'serviceAccount-1948028253'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $workerPool = 'workerPool982219837'; + $build = 'build94094958'; + $errorLogs = 'errorLogs1635955078'; + $logs = 'logs3327407'; + $tfVersion = 'tfVersion1712341003'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $expectedResponse = new Preview(); + $expectedResponse->setName($name); + $expectedResponse->setDeployment($deployment); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setBuild($build); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setLogs($logs); + $expectedResponse->setTfVersion($tfVersion); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createPreviewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $preview = new Preview(); + $request = (new CreatePreviewRequest()) + ->setParent($formattedParent) + ->setPreview($preview); + $response = $gapicClient->createPreview($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.config.v1.Config/CreatePreview', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getPreview(); + $this->assertProtobufEquals($preview, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createPreviewTest'); + $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 createPreviewExceptionTest() + { + $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/createPreviewTest'); + $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]'); + $preview = new Preview(); + $request = (new CreatePreviewRequest()) + ->setParent($formattedParent) + ->setPreview($preview); + $response = $gapicClient->createPreview($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createPreviewTest'); + 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 deleteDeploymentTest() + { + $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/deleteDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name2); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new DeleteDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeployment($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.config.v1.Config/DeleteDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeploymentTest'); + $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 deleteDeploymentExceptionTest() + { + $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/deleteDeploymentTest'); + $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->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new DeleteDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeploymentTest'); + 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 deletePreviewTest() + { + $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/deletePreviewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $deployment = 'deployment1939520197'; + $serviceAccount = 'serviceAccount-1948028253'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $workerPool = 'workerPool982219837'; + $build = 'build94094958'; + $errorLogs = 'errorLogs1635955078'; + $logs = 'logs3327407'; + $tfVersion = 'tfVersion1712341003'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $expectedResponse = new Preview(); + $expectedResponse->setName($name2); + $expectedResponse->setDeployment($deployment); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setBuild($build); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setLogs($logs); + $expectedResponse->setTfVersion($tfVersion); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deletePreviewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new DeletePreviewRequest()) + ->setName($formattedName); + $response = $gapicClient->deletePreview($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.config.v1.Config/DeletePreview', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deletePreviewTest'); + $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 deletePreviewExceptionTest() + { + $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/deletePreviewTest'); + $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->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new DeletePreviewRequest()) + ->setName($formattedName); + $response = $gapicClient->deletePreview($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deletePreviewTest'); + 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 deleteStatefileTest() + { + $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]'); + $lockId = 338696367; + $request = (new DeleteStatefileRequest()) + ->setName($formattedName) + ->setLockId($lockId); + $gapicClient->deleteStatefile($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.config.v1.Config/DeleteStatefile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getLockId(); + $this->assertProtobufEquals($lockId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteStatefileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $lockId = 338696367; + $request = (new DeleteStatefileRequest()) + ->setName($formattedName) + ->setLockId($lockId); + try { + $gapicClient->deleteStatefile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportDeploymentStatefileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $signedUri = 'signedUri-979536439'; + $expectedResponse = new Statefile(); + $expectedResponse->setSignedUri($signedUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new ExportDeploymentStatefileRequest()) + ->setParent($formattedParent); + $response = $gapicClient->exportDeploymentStatefile($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.config.v1.Config/ExportDeploymentStatefile', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportDeploymentStatefileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new ExportDeploymentStatefileRequest()) + ->setParent($formattedParent); + try { + $gapicClient->exportDeploymentStatefile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportLockInfoTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $lockId = 338696367; + $operation = 'operation1662702951'; + $info = 'info3237038'; + $who = 'who117694'; + $version = 'version351608024'; + $expectedResponse = new LockInfo(); + $expectedResponse->setLockId($lockId); + $expectedResponse->setOperation($operation); + $expectedResponse->setInfo($info); + $expectedResponse->setWho($who); + $expectedResponse->setVersion($version); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new ExportLockInfoRequest()) + ->setName($formattedName); + $response = $gapicClient->exportLockInfo($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.config.v1.Config/ExportLockInfo', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportLockInfoExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ExportLockInfoRequest()) + ->setName($formattedName); + try { + $gapicClient->exportLockInfo($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportPreviewResultTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExportPreviewResultResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new ExportPreviewResultRequest()) + ->setParent($formattedParent); + $response = $gapicClient->exportPreviewResult($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.config.v1.Config/ExportPreviewResult', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportPreviewResultExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new ExportPreviewResultRequest()) + ->setParent($formattedParent); + try { + $gapicClient->exportPreviewResult($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportRevisionStatefileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $signedUri = 'signedUri-979536439'; + $expectedResponse = new Statefile(); + $expectedResponse->setSignedUri($signedUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new ExportRevisionStatefileRequest()) + ->setParent($formattedParent); + $response = $gapicClient->exportRevisionStatefile($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.config.v1.Config/ExportRevisionStatefile', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportRevisionStatefileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new ExportRevisionStatefileRequest()) + ->setParent($formattedParent); + try { + $gapicClient->exportRevisionStatefile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name2); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $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.config.v1.Config/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 getPreviewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $deployment = 'deployment1939520197'; + $serviceAccount = 'serviceAccount-1948028253'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $workerPool = 'workerPool982219837'; + $build = 'build94094958'; + $errorLogs = 'errorLogs1635955078'; + $logs = 'logs3327407'; + $tfVersion = 'tfVersion1712341003'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $expectedResponse = new Preview(); + $expectedResponse->setName($name2); + $expectedResponse->setDeployment($deployment); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setBuild($build); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setLogs($logs); + $expectedResponse->setTfVersion($tfVersion); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new GetPreviewRequest()) + ->setName($formattedName); + $response = $gapicClient->getPreview($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.config.v1.Config/GetPreview', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPreviewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]'); + $request = (new GetPreviewRequest()) + ->setName($formattedName); + try { + $gapicClient->getPreview($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getResourceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Resource(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->resourceName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]', '[RESOURCE]'); + $request = (new GetResourceRequest()) + ->setName($formattedName); + $response = $gapicClient->getResource($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.config.v1.Config/GetResource', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getResourceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->resourceName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]', '[RESOURCE]'); + $request = (new GetResourceRequest()) + ->setName($formattedName); + try { + $gapicClient->getResource($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRevisionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $stateDetail = 'stateDetail-118146113'; + $build = 'build94094958'; + $logs = 'logs3327407'; + $errorLogs = 'errorLogs1635955078'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $quotaValidationResults = 'quotaValidationResults220555095'; + $expectedResponse = new Revision(); + $expectedResponse->setName($name2); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setBuild($build); + $expectedResponse->setLogs($logs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $expectedResponse->setQuotaValidationResults($quotaValidationResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new GetRevisionRequest()) + ->setName($formattedName); + $response = $gapicClient->getRevision($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.config.v1.Config/GetRevision', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRevisionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new GetRevisionRequest()) + ->setName($formattedName); + try { + $gapicClient->getRevision($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTerraformVersionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new TerraformVersion(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->terraformVersionName('[PROJECT]', '[LOCATION]', '[TERRAFORM_VERSION]'); + $request = (new GetTerraformVersionRequest()) + ->setName($formattedName); + $response = $gapicClient->getTerraformVersion($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.config.v1.Config/GetTerraformVersion', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTerraformVersionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->terraformVersionName('[PROJECT]', '[LOCATION]', '[TERRAFORM_VERSION]'); + $request = (new GetTerraformVersionRequest()) + ->setName($formattedName); + try { + $gapicClient->getTerraformVersion($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importStatefileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $signedUri = 'signedUri-979536439'; + $expectedResponse = new Statefile(); + $expectedResponse->setSignedUri($signedUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 338696367; + $request = (new ImportStatefileRequest()) + ->setParent($formattedParent) + ->setLockId($lockId); + $response = $gapicClient->importStatefile($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.config.v1.Config/ImportStatefile', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getLockId(); + $this->assertProtobufEquals($lockId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importStatefileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 338696367; + $request = (new ImportStatefileRequest()) + ->setParent($formattedParent) + ->setLockId($lockId); + try { + $gapicClient->importStatefile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.config.v1.Config/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 listPreviewsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $previewsElement = new Preview(); + $previews = [ + $previewsElement, + ]; + $expectedResponse = new ListPreviewsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPreviews($previews); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListPreviewsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPreviews($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPreviews()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.config.v1.Config/ListPreviews', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPreviewsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListPreviewsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPreviews($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listResourcesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourcesElement = new Resource(); + $resources = [ + $resourcesElement, + ]; + $expectedResponse = new ListResourcesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResources($resources); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new ListResourcesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listResources($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.config.v1.Config/ListResources', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listResourcesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->revisionName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]', '[REVISION]'); + $request = (new ListResourcesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listResources($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRevisionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $revisionsElement = new Revision(); + $revisions = [ + $revisionsElement, + ]; + $expectedResponse = new ListRevisionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRevisions($revisions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new ListRevisionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRevisions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRevisions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.config.v1.Config/ListRevisions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRevisionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new ListRevisionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRevisions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTerraformVersionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $terraformVersionsElement = new TerraformVersion(); + $terraformVersions = [ + $terraformVersionsElement, + ]; + $expectedResponse = new ListTerraformVersionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTerraformVersions($terraformVersions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListTerraformVersionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTerraformVersions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTerraformVersions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.config.v1.Config/ListTerraformVersions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTerraformVersionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListTerraformVersionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTerraformVersions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lockDeploymentTest() + { + $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/lockDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name2); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/lockDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new LockDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->lockDeployment($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.config.v1.Config/LockDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/lockDeploymentTest'); + $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 lockDeploymentExceptionTest() + { + $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/lockDeploymentTest'); + $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->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $request = (new LockDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->lockDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/lockDeploymentTest'); + 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 unlockDeploymentTest() + { + $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/unlockDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name2); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/unlockDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 338696367; + $request = (new UnlockDeploymentRequest()) + ->setName($formattedName) + ->setLockId($lockId); + $response = $gapicClient->unlockDeployment($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.config.v1.Config/UnlockDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getLockId(); + $this->assertProtobufEquals($lockId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/unlockDeploymentTest'); + $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 unlockDeploymentExceptionTest() + { + $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/unlockDeploymentTest'); + $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->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); + $lockId = 338696367; + $request = (new UnlockDeploymentRequest()) + ->setName($formattedName) + ->setLockId($lockId); + $response = $gapicClient->unlockDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/unlockDeploymentTest'); + 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 updateDeploymentTest() + { + $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/updateDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $deployment = new Deployment(); + $request = (new UpdateDeploymentRequest()) + ->setDeployment($deployment); + $response = $gapicClient->updateDeployment($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.config.v1.Config/UpdateDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDeployment(); + $this->assertProtobufEquals($deployment, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeploymentTest'); + $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 updateDeploymentExceptionTest() + { + $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/updateDeploymentTest'); + $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 + $deployment = new Deployment(); + $request = (new UpdateDeploymentRequest()) + ->setDeployment($deployment); + $response = $gapicClient->updateDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeploymentTest'); + 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 createDeploymentAsyncTest() + { + $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/createDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $latestRevision = 'latestRevision602726803'; + $stateDetail = 'stateDetail-118146113'; + $deleteBuild = 'deleteBuild-433028390'; + $deleteLogs = 'deleteLogs-1122055229'; + $errorLogs = 'errorLogs1635955078'; + $artifactsGcsBucket = 'artifactsGcsBucket696146480'; + $serviceAccount = 'serviceAccount-1948028253'; + $importExistingResources = false; + $workerPool = 'workerPool982219837'; + $tfVersionConstraint = 'tfVersionConstraint594495121'; + $tfVersion = 'tfVersion1712341003'; + $expectedResponse = new Deployment(); + $expectedResponse->setName($name); + $expectedResponse->setLatestRevision($latestRevision); + $expectedResponse->setStateDetail($stateDetail); + $expectedResponse->setDeleteBuild($deleteBuild); + $expectedResponse->setDeleteLogs($deleteLogs); + $expectedResponse->setErrorLogs($errorLogs); + $expectedResponse->setArtifactsGcsBucket($artifactsGcsBucket); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setImportExistingResources($importExistingResources); + $expectedResponse->setWorkerPool($workerPool); + $expectedResponse->setTfVersionConstraint($tfVersionConstraint); + $expectedResponse->setTfVersion($tfVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deploymentId = 'deploymentId51250389'; + $deployment = new Deployment(); + $request = (new CreateDeploymentRequest()) + ->setParent($formattedParent) + ->setDeploymentId($deploymentId) + ->setDeployment($deployment); + $response = $gapicClient->createDeploymentAsync($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.config.v1.Config/CreateDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDeploymentId(); + $this->assertProtobufEquals($deploymentId, $actualValue); + $actualValue = $actualApiRequestObject->getDeployment(); + $this->assertProtobufEquals($deployment, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeploymentTest'); + $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/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/ContactCenterInsights.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/ContactCenterInsights.php new file mode 100644 index 0000000000000000000000000000000000000000..2e0d9949d501e2b921d41218b7388e2f486f3105 GIT binary patch literal 25609 zcmdTtTW}oNRXZcgmahDet{;*o>-D(pO>C`q293SD-tpSro{=oi+LmNJym=@LqnVb} z>v^TSM_whU5<&>@L8t-(`AAXlK>_&ys+NL+5BQ;gawt9mMFmxb%10=Q6hBbF#}-hW z`|7^kJw0=0MsX$kv-0#k_n!Cbp6Pk(PIJ47E+*%Vx?z|%0ZaWy$NTUfmSpmw8Wm5pq2tI^o18tHPi(W<1&jk;4R zJ7uHp7?xSL&8=<6PVdZ!2SxUzC?2Kgc?i`@HN$R}%0_a2DfiHDN|lmRTA!y|ujk3u z>-lzDuRor-iBP#(vh5^akf&!C_}S=lC<*^HTN_ogoV1;i1OK~Z+JJ%Sn5C-uS)lz^ zaUTQXgSGSS^)g{6{VBLCwFrZ$luFo2F z*)p3>!&-u++3c3#xJ)OXT)x7OCEJ;s$;%AKY&L}Ct)yeM4EgkA(lVTuRliB`CL8Rz zf33G+q~0{w^?JQQxX`HE*{nyCw?!0SzG?zzdxN=a8r4e9*e>mu4XZcMWrHi2GLoIu zWL<371KAH6^)0JaubcI)^~EMJl-}6pYQt=c!K$;s1qCtA)tb(3AE1=`4@>rwK44c( zFi59VYpTO8H_PiQpjxd64pUos^|r|^L$6d^L%0hr=CZ50M3Fy+e)Z2{D1QLX1;5NT zNl_1#YU`m=J2Qz%epabzf-@t!&YV-?y!2p`D0FdyYcyYQR$5?jwdIdqM3Bl;VK|s^b%i0T`2gRbcJgffBuo+bA#v+e<<9x3(P31fwu4!f^2t%BUFMf z5Dc@LI*8c8XyQQm{c*we$lHfRCfYn`RZf>QtP7YQKokncy*Y6Wp4Cuc7hM4w&nfQ4~C( z=Z$5~^6eQ3z_gSwO`Jej01=;BEH_$phn_V|o`K%LmNrG6KN|u(hVdRcYu8GaQ{0AN zS0w?@u!^;kQ{Fc0sYA)3%VU{Oic>qQV5&VisTH#QJ#Y7iZ1cIgW9{P4qeQu7JB?b~ z^M~pApBn7^Jl#JEf%nic)3#fNOY>oR=Hg&y7RZ(|p}F`}41Wfl^qo~CdS_3K&=Xe= z?nJ7!jK59vQdsmwVhcqZQXG)+5m1A%%)P-*C;oPY?w9!A7((7Z@pUvoUFJ@y+JiQi z(BWnS;B3%fqJobO3cVD~Yyg?WV>BZE#wmnA6kr5|G2GS?;z;2^QiLj4R%=EW6fx}K z#BKCqM~xptLr;ud=0NZEZN4m#IaW4mo|4NZj94|fClLJXaep(GXZ zfv(92k7e!(CUtQQZ0knFs6Hrd7*)D^ihfA{B!p{!6i4UtmH}Q@hs<-=Hf=X)5h*oj z(^#1j4GT=KYLp?T1_w*9xuM8Kp8Phf6%J2v)&4w&&N9ZyCyJ=`CYVymf_$L& zn6(gK0^{8^MQmkc2%>R3iB16Hyf|c57+W%S1^qUUj(Mq@2{7-YBh6RI-pVxL=SYc@JN3$dj=b_d2w$a*##(0!u_ zjcDH-MTtUv3vw%&C$7Pi5ZWr+Mb=N@G~8Fz*63|h^JRO5_5km_fPWHAIaaC8T3yA) z#(NN*g|j7*e=PIy!4F(@PgtY}0I}fW@5S%{9sw$fvSeNYXO>o|RumnWBnyP$+cwAz z>@#CH6yy%~r2C;DhtHug8*=q3cbBBh8K&{{Ui{}`vBbCIXw+2!a4l$~ReoYP#g=7q zXF)A!4`Kd*YlXAhWO{o%v%WsKQn)Cja`b$r8mn*!#TCDdPS$uoxhP@C(ovFh+xLHg_ZnrVQFJMIgAjC=Wn083$fwopati=(>a+pE+=ptL zrww+3w@}@O!U!!eDH@62gS;$i1-^*RK&4+cY#XvdSHh%;Ml^`Jjv+9|sY(kHN9Y0? zfc+D**@V?nuZ_`r2~FCqGTCdhRfW46f)ron>eLWUqLZ5?XdPGlD~R)E$7$!SEd7GG$;Lia;iJTQc9wrgL?#W3k!~% zmOF8_Vzq61WrXGseYaP%|BRz#6s^MNkR-dOo)o^?OFIgOytr!5Eedg=4M{XbuE$BX zUnw&7f=^?_Ave^ddY#y*ecY}^nxV34awn#fkDA=afB9uQQ-n^ zU?RCLd>>>yXC)WwY6nA~dh8JTaBVJmYVB8Iko|xnhYOyA(Br^;51vBfwbJ`V=zs#h z8HkBgQ3WVeCR2)!L^Vcn6-_*~Oi-VS2_edc36Msew{KK0NTSJkm+U<2ZJby@ zC)<#SNyo`*&xYB${xh=`HOKeD8}20?O(YBx?hD1Pj&&_{VyHee$pO4&VwpLy}<+tpf;# z+6I~oZOW7Ed303L7LjQ8POkQ8bP6(R4{yOvXxvI2;5TSaJ%hwVpMTUZm{WVZX+MD` zS)$;5cEBePRSzEVBc$p<)P<^3#=+g*?hlM{3BtGF3A{vRO!Ytfkz%SJb-~mPxJ9T} zLPWDUr32D<2p;Xu;Eeq?v~!s+1r5w9j4YS_Gw@Zxhpy~@zy)#N z!8nMpkoQl6ybCp2M}*}4<83aVRA;3k_VnF64UlJ%jy0QwsT)s=HJWUZ!eNADPO-$L z!2L#hnL}Tj-GUKuhY^;<9enshFYX}1Lfk9pgh&*GRln`a5i&GKxQeEg`ffC=k*3>( zo8q`B(|n)}+jsV{jIg{r6AOL|9X5%^imd6Xq7Pyy|7;9lDF^jmfSf=YX)bzE}`_BTz<@;Ff$y2>IRf zxu-03PuEdK$vyct)HYFqS(@+TgFojtNOnjkPud<7)+$!z_QldZoesN!Suq@F-fg++ zH^>c)*h~8=+{-cQ#Ycj}aG3^8GI}ESuc}u{Vkbr|G_YE|4E8X~Gtd;M*j&AA?KVm8 z5QZko0<(fo$8J&`dktMv(lP&z+73EjaKE1BeunagU5xrcLUc4Bk0iGwFeKz<799tr>_+9UN~ z99w^j-_h9V>9qUhwDj~I>3h2S*je9~9Pq!;iXb?KuS|U8RCeN=uzu+qfhqUf9a{65 zK8=q07~Ww%ol<*CyU{zfFu4O?G04WI@&CBBkMC4fF*75RK?f3ZV_%1>cuy`@rPxlX zUC7*~)XIxeq^lhvX1|m{>;XalRSc0DSSA495;E#C)f0dli14@fbz0+5BClblz`f9g z_rc{6pDvSP<2#D9gdhbqs*2EN1Do=*H3VV zDn>@Ac8hoHI7_=Po6~K~Nb13y zTzbG`;D3mrqeQ*g?uLz3XLV&DL5ga3!w<_%>7n101YsRbDOy(e15iI(u1iSE}CU9FzE0OJ9?%7#+LJ9vn5Y94s2@h4mgMdQn zeN3>tx35o1w1ujGcQQ9Aozj|)MF3q#uL__F-1E~6-x)s!DThR`YKZnh4M6Q}Ia!&( zOoW}16+b!nTTsK0bipIRR<2)9CKPa94*_IyY^aCo=`T1x1_2@|< zLaKjTFIn+w)SKGt)CAS_G|Q%Rh=YYUqu}t=iE@MqgDMjKGc3ZigXi7I4wF2xphbl3 zf%+DoQX=#dp$BI$l!YDyRHU5=Jq*kVj~rr=$?ikwUR3=rAUZgSpiFcSP?6}L0)d07 zhoJ@4!6%-o%l=Eyt?s|FCLN<8!v2#O8WEuatG-P^00=sJ8a~kGWuav;YY-~yD)Yl6 zQsTdXR~WfI-o~omAM!v1{;I{l49R0j!5>QmIUQvohZ3NJQ-uE!S`t#4f>p7SU<5(E z38b{IPtfQVN@eDGLz6yLPhvb7W!aDl{#~F=ihIhmNic%8s50KKR@42f)h|H_A2lAL zT*60fAgGvE>^DX4!xhlj*X1mkX4;SNVlV@Z>Of0b4M{%B5py^sD4b+fhi_6qx%g}Y zD_GIjG=a9Uub<|HM$LOC$2WmIYn2Fb^8>}+6$27eQR0{A*V#j4q75O6SZb=hfN z$Bep8PSZ~sahLxDc@6PkK5}g3ye14PC{k@ewA+Deao+Dn1%Vyi=w8}SBk35PWDdhe zqOy**ffXc1IUT=Pruz}gm!Yl0TzG$2w}BN{_h(r<`+9%2Qet5916jo2pB=2>dk|I)83T5$W=T|$?4=pY(53Ghra{TVX7u}Qg5kb=zqCZ)7HvZONj$GS?& zo6{oWVte=l$YP?VkCd~Rs0{>hU0N2u4+RcfL`3hxEDcAl@Cu&b92zyqCG9@ti$^=1 zQR^srZ!P5$eeXAWLpv#l{uD|Ima5Rf71ff$0}-6*WqwDSgB*_MGCMFYLus4Qu29;# zgg~<1&eAu;;opv-BcO*Ab5*tD>-$3chODEnV1{oeZ$gnJsR*!nlw<=0RU50m)6Rtu z*s6+00_46u>(4g?@+!>6e*rqeTpH!HDiR)uK))v)S=`sh3I9Tl@AXWIDhhenQS-?H z+F@qe@--lXWjsBR;eiM;qH-g@dQ7XUN8;np^h+>9)AeO4-_ldtj?=WW>Gad5PkBY< zzGA{&(89a-`g z@vR2A&km!V2AsTKr|^H5wYhP#ElhLc8}XOt=}%Ln^5mx}Qf-k*J)U_c)~)m3un<3D z;YWKNe#PSZ@yl$>Y?kf`|7%BKHv4#H<1igMx%M&lh51+6FGEN_Bw@pAq0DldACaId M*^fQ!p*@8DA44TdmH+?% literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/Resources.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/GPBMetadata/Google/Cloud/Contactcenterinsights/V1/Resources.php new file mode 100644 index 0000000000000000000000000000000000000000..d4eaa98b8c3a472ca7b22c3b6cde03644e93afe2 GIT binary patch literal 18494 zcmd5^O>84qayF?yvM6b&mOR6u?KR!@z+=Zl&B*rdMz+@`CF*A^i84ve?0B`?rpT5= z4@J`K=8R=W`x68~Hrc=datV-Jb4kv*?I8#dAPA6KfaJ2s<~q3r2@v>{uikt8M{=Yd zda{TQ9)z4Se{qFmn;|{%?SvOl|w`!a9%)x2KJ~lI*Zrg6x+Re;C@9@y< zW@_z|PNQjdvzg3lF|$*wWD2XBm6tHoYWKP|b2)R=ZXY$x#agr7t1s5tExTH?Yi7$f zyN#CBI6Ahi#Rs<*yQX~J%8D6?TGbQN>QrlHW_>rmZQ9j()voTZ3u5~#Ol*H;7_t33 zx85PDHLI4DDLF*xOUmHCPVb=EsAVj>YU7_*8kW&$HS9*U+4uq+zLzw-OBKQVyk9ee=Q?v^0TjW+K|Y58E1LBEF=hMf0Nm4Rh#>(rd8`UI(ECei$|B2 zk4)PYEnm6*nwpl$H4Zb^JtTyd=Spi7YA2tz9ksDoWS=?ot$cHqYM8cN=| zdfgT88r1W;D-agXtMrRMjL_R7DW-N!4$BIC&JNY*?1NkBtBQKH({OcLs&@KY>XuM+ zXvtz-iACLivH!m9@Gc+F|Mdz@L-!w;T}y~lyGJv%YO`sasAH0v%0#XwmOjXaT5Hx% zE4uy6$?Dh{HvOUt7W z-4+z2I^Lw1b3{`l)_J~Gk7-xH8!R$5v)8gy35=PLYulzvO=y#48&$Z4Q>$U6rUk{t zkc-TzVUpZ^npNbi-pNU|dzxAh)OJEr^Pl{(pwRe2n3Qtw=m@KXt>z;nC;OP@yI==q z0E=(6*@?DWR%%9Q;&(&NSdtWSE&+!TtqwojK00i+AHpl!Pk+(#^_mQmrvNUkX$_dK1{360%|Er)_RuRKEXq^WAJS@g{7L{ zLn}|GbD7Q5MEaLey3~IRUZLk*B5bm)L&QK3p26<0b)*R1q?w1+hHbdIChgwibq%I7 zeqy$IMyF~Yr`V#!wJMRa8Lh*1YFr3#dlUio@sQ22CE5hh^baWR{s`D8VZpTpnyxpj zPP2My2)oW)#IUl4<^d2Czb>EE9s@(#3iLi3)HFf8*3{6aAz zg0J0C`0|Kny+6y6aQY7>X>Q=Ec9W(Nd{~gHH0YC9X=3RdCn&l7+?GB~(-4ogTZfIh ziNH~Kv#54V6A#6N)=OP5H&BGr`eKzdsk?=1Q+7D=6$rw7- zMUdR+RAIo_jwY5yG0wXl7454CJ?A^*&P0xbP^R_Mr!EQ46sT=>-P1b7E$9<0nzGV~ zrME&(Uv|c^eN6u%LNQn1i!?30fBW#zGNlqEmd-iGH;Bwu-B6ETc@-ge7`yhvW&<9n)<#5W)`il>(l;pK4-^tKcHcZz3Oz#; z530?c)aCec^t+MtXLQ+{(rs$+GWzVk#_EF8+$wD z-NMS|+Gb%j`HVJ8w7XH+$r6{sT|Bk)shgnTL|w@ z7X5BTTSdhCsaZqL`lb5oY_ZvfBVkv#_@(pb87I1Ke2yFbpJ#cZn4|UiX>2|R*n))q z_hS@uT>P-e_-&f*nxFMJfDrMxRF-p0k@R?@1;1swM_StB~CSx#=lJ~Od&Go(P*YnDuBkeO9zuI>go4mp|DJo&M5sODod zDYGv99g4ftaimf0)f;W2*KH^x@EpzhTr*!6o}PDkLjRDG-kDVy*ei6!w_yK?kQAkU z1ZEO3js9nGnsxR}s*={E%Oc}-B<^J|@f5(jJslnZ8d@1i!x~q%j#iX-~>&_EX(XU z?6Kcu0^2-Z>OlHOG!xwMfX{w6=(BHxsgmO_w; zZ-->UN0&`FPv`gE`d>yU*)L9QlM=o?QpWAAuXDF(IR35H;zk@EL2ZpD1t|;0mDMZk zx&?`x1$@25!L9xiN}qEQ`*Hy`aTD4W&AO-FsDpWh!;KUn>-Q-&xBzu*-=w561YYhd z&FncrGm>~`P{%}}0g>F1O0M+Vbg54O8bVefNH2o5YVEEZ5Yevo<*dT*NKf|PlQi3B zd*ON6%yhfGj!0jHa3nAk`Uv{Qvtq%?>_@ zOR^Gw4t-z*N+fKpS}lnBO}r#3vD~mk`>Y36`Vl3C8u}Ni33-N%1B7Dx*E#g??(fr8 zFV-+*K6(H&vd$o(gt31+q$;Rr8{*C@0@}xP#YdfEBbPP<)rqCiY3CdkKNl(R1jGtF$rp>td%}w4=Mg2NDgtfx)~Nq(Ttmpu+T-Hc(N`=NEjJ`$A$Sve1Dt3A>JE9He-`AHOxxr$vRl1Z9yC9)Rz@mQl(qPq)j*@Ei1r#i?+OZ=;6aC_Kc?5AITz#YQU<%djsdL|J<}Jc(k?pH9+@FUT^xTtoHxf}mcBuKA#0an^`% zMmRjSv=iK=gA|B&jqh*4qbOEQa#z3uQ~015T60qV5Yy=PaQ2S6?Ow-1xrD)>u+GFcVF^UmnTGa0 zT^7@cx|88=a+1~F3k8J!oo*XT5-GPR-p($K(lq2N5ob#v*xz#{QILz4qwmt3k598J zJm$;v;_gN%S1uUaxylMMhhe?|;Umg}NIYaHncKO?e@B;p3Zr#KOQDQbU}|kWtnrc? zEV6m%FKUVbO!-Xzn#NPD|?r1VgF_e#ivIE<8E9bNjKR+dQfFG^_PlY)_b)9Rm4 zs_&9eNwH&Z&~^Wg8Ku3gg0WsI?(IIo*6F{8kf?78bYV;&7XtdhG80ZKig048Wgc-G zkgzB*fS!}sZ;ml#CiCuSl3fur^v~(pzE#K@sHkY>=Qw@}22xYWVtDWtc_{`;J>*0^E;RG0g1U}$*4nEuNtij_^9JCUqmu}5F=m`(4w-7nI9_H|B5 zab9$aAJ?n`gcyvup4s63Qi*w-gAn)Vc{F@my#oVPGdOKor3d?xRn8mPJ?mpc;}N}1 zvt12_V?#%uLjeEIh``{uF`I|+*WcQ*8eR|a|0c!K)W^3#)e?Wa{FQx2ocsnti&y0ike9&NsV9e zX|vz(c$Xn!SO7+lUXfG=1aLr?eO)1JA-dAUseZt)FEM!SCYv4&#mZ0U8Z_Kzz=;aomRMUa_%{Q(M z?Xdr2Z8i=~vwl#m-B+$UtR_mGUQ>fLB)hUjn;|asR!KgjhZ;D`**$c73$QHx9}$YX zzc`8ZMTZd#$8m9Hj&fab1z5X5ogx+{Flb`-;L6|*yZ+!2I17JoM`XUYaYMo>sBJp-wM95M7pT>}itoR~_ zbKa3+ywWz^cRn7{4F5v5De^T7rPc@T##Qqxv~4BF}mWHtq*)eaOHnJ#rOV; z3;=|=&AeGQRmQ4H;?V_9{hStB5q@ zMNzOT?5rAlWz^=!U{B)=sLGq;dGs>)IM)9pO5=AL=ELFn>ah37`oJg|{$2ibMfs?0AhCDz<;yUdGk=Ur!KD{Yf|m^Rwuw7hfE(AUV6e8~NCfA1rXb#ei4Jj@rW; z!54u^;ae!!xj_@tIe6zW*Z(SdZC!j8B`ZFQg6vBSU%`3dTvvW$C41-AKRVCttM8{c zA5aNCxsNZXJc?eIB$t;3P5d*A=<+fi&7s)xWV)o4!&*jg+^>i*l>V!R((JQGxqps? z^vl}qA@lo*_RVp&=<``zr9)7wUX4A|cmdz|jlgpzc$BMO3|wj-gk1&4V-gt!Bi@g* ngGo@Z+i$+=ektV*`Jox#cWD4Uf$t&Tq!CZbFUOqG8PWd&-h|9? literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Analysis.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Analysis.php new file mode 100644 index 000000000000..880a55f553be --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Analysis.php @@ -0,0 +1,263 @@ +google.cloud.contactcenterinsights.v1.Analysis + */ +class Analysis extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the analysis. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Output only. The time at which the analysis was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $request_time = null; + /** + * Output only. The time at which the analysis was created, which occurs when + * the long-running operation completes. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The result of the analysis, which is populated when the + * analysis finishes. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $analysis_result = null; + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + protected $annotator_selector = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the analysis. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * @type \Google\Protobuf\Timestamp $request_time + * Output only. The time at which the analysis was requested. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the analysis was created, which occurs when + * the long-running operation completes. + * @type \Google\Cloud\ContactCenterInsights\V1\AnalysisResult $analysis_result + * Output only. The result of the analysis, which is populated when the + * analysis finishes. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $annotator_selector + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the analysis. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the analysis. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * + * 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. The time at which the analysis was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The time at which the analysis was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * Output only. The time at which the analysis was created, which occurs when + * the long-running operation completes. + * + * 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 analysis was created, which occurs when + * the long-running operation completes. + * + * 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 result of the analysis, which is populated when the + * analysis finishes. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\AnalysisResult|null + */ + public function getAnalysisResult() + { + return $this->analysis_result; + } + + public function hasAnalysisResult() + { + return isset($this->analysis_result); + } + + public function clearAnalysisResult() + { + unset($this->analysis_result); + } + + /** + * Output only. The result of the analysis, which is populated when the + * analysis finishes. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\AnalysisResult $var + * @return $this + */ + public function setAnalysisResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnalysisResult::class); + $this->analysis_result = $var; + + return $this; + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector|null + */ + public function getAnnotatorSelector() + { + return $this->annotator_selector; + } + + public function hasAnnotatorSelector() + { + return isset($this->annotator_selector); + } + + public function clearAnnotatorSelector() + { + unset($this->annotator_selector); + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $var + * @return $this + */ + public function setAnnotatorSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector::class); + $this->annotator_selector = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult.php new file mode 100644 index 000000000000..f3f49c60cfdc --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult.php @@ -0,0 +1,119 @@ +google.cloud.contactcenterinsights.v1.AnalysisResult + */ +class AnalysisResult extends \Google\Protobuf\Internal\Message +{ + /** + * The time at which the analysis ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + */ + protected $end_time = null; + protected $metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\AnalysisResult\CallAnalysisMetadata $call_analysis_metadata + * Call-specific metadata created by the analysis. + * @type \Google\Protobuf\Timestamp $end_time + * The time at which the analysis ended. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Call-specific metadata created by the analysis. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadata call_analysis_metadata = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\AnalysisResult\CallAnalysisMetadata|null + */ + public function getCallAnalysisMetadata() + { + return $this->readOneof(2); + } + + public function hasCallAnalysisMetadata() + { + return $this->hasOneof(2); + } + + /** + * Call-specific metadata created by the analysis. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadata call_analysis_metadata = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\AnalysisResult\CallAnalysisMetadata $var + * @return $this + */ + public function setCallAnalysisMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnalysisResult\CallAnalysisMetadata::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The time at which the analysis ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @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 at which the analysis ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @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 getMetadata() + { + return $this->whichOneof("metadata"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult/CallAnalysisMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult/CallAnalysisMetadata.php new file mode 100644 index 000000000000..e93a08dffa9b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnalysisResult/CallAnalysisMetadata.php @@ -0,0 +1,294 @@ +google.cloud.contactcenterinsights.v1.AnalysisResult.CallAnalysisMetadata + */ +class CallAnalysisMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * A list of call annotations that apply to this call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2; + */ + private $annotations; + /** + * All the entities in the call. + * + * Generated from protobuf field map entities = 3; + */ + private $entities; + /** + * Overall conversation-level sentiment for each channel of the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4; + */ + private $sentiments; + /** + * Overall conversation-level silence during the call. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationLevelSilence silence = 11; + */ + protected $silence = null; + /** + * All the matched intents in the call. + * + * Generated from protobuf field map intents = 6; + */ + private $intents; + /** + * All the matched phrase matchers in the call. + * + * Generated from protobuf field map phrase_matchers = 7; + */ + private $phrase_matchers; + /** + * Overall conversation-level issue modeling result. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8; + */ + protected $issue_model_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $annotations + * A list of call annotations that apply to this call. + * @type array|\Google\Protobuf\Internal\MapField $entities + * All the entities in the call. + * @type array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $sentiments + * Overall conversation-level sentiment for each channel of the call. + * @type \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSilence $silence + * Overall conversation-level silence during the call. + * @type array|\Google\Protobuf\Internal\MapField $intents + * All the matched intents in the call. + * @type array|\Google\Protobuf\Internal\MapField $phrase_matchers + * All the matched phrase matchers in the call. + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModelResult $issue_model_result + * Overall conversation-level issue modeling result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A list of call annotations that apply to this call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * A list of call annotations that apply to this call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2; + * @param array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\CallAnnotation::class); + $this->annotations = $arr; + + return $this; + } + + /** + * All the entities in the call. + * + * Generated from protobuf field map entities = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getEntities() + { + return $this->entities; + } + + /** + * All the entities in the call. + * + * Generated from protobuf field map entities = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setEntities($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Entity::class); + $this->entities = $arr; + + return $this; + } + + /** + * Overall conversation-level sentiment for each channel of the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSentiments() + { + return $this->sentiments; + } + + /** + * Overall conversation-level sentiment for each channel of the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4; + * @param array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSentiments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment::class); + $this->sentiments = $arr; + + return $this; + } + + /** + * Overall conversation-level silence during the call. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationLevelSilence silence = 11; + * @return \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSilence|null + */ + public function getSilence() + { + return $this->silence; + } + + public function hasSilence() + { + return isset($this->silence); + } + + public function clearSilence() + { + unset($this->silence); + } + + /** + * Overall conversation-level silence during the call. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationLevelSilence silence = 11; + * @param \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSilence $var + * @return $this + */ + public function setSilence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSilence::class); + $this->silence = $var; + + return $this; + } + + /** + * All the matched intents in the call. + * + * Generated from protobuf field map intents = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getIntents() + { + return $this->intents; + } + + /** + * All the matched intents in the call. + * + * Generated from protobuf field map intents = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setIntents($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Intent::class); + $this->intents = $arr; + + return $this; + } + + /** + * All the matched phrase matchers in the call. + * + * Generated from protobuf field map phrase_matchers = 7; + * @return \Google\Protobuf\Internal\MapField + */ + public function getPhraseMatchers() + { + return $this->phrase_matchers; + } + + /** + * All the matched phrase matchers in the call. + * + * Generated from protobuf field map phrase_matchers = 7; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setPhraseMatchers($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData::class); + $this->phrase_matchers = $arr; + + return $this; + } + + /** + * Overall conversation-level issue modeling result. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModelResult|null + */ + public function getIssueModelResult() + { + return $this->issue_model_result; + } + + public function hasIssueModelResult() + { + return isset($this->issue_model_result); + } + + public function clearIssueModelResult() + { + unset($this->issue_model_result); + } + + /** + * Overall conversation-level issue modeling result. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelResult issue_model_result = 8; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModelResult $var + * @return $this + */ + public function setIssueModelResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModelResult::class); + $this->issue_model_result = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CallAnalysisMetadata::class, \Google\Cloud\ContactCenterInsights\V1\AnalysisResult_CallAnalysisMetadata::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotationBoundary.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotationBoundary.php new file mode 100644 index 000000000000..f36dc2dfdf24 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotationBoundary.php @@ -0,0 +1,116 @@ +google.cloud.contactcenterinsights.v1.AnnotationBoundary + */ +class AnnotationBoundary extends \Google\Protobuf\Internal\Message +{ + /** + * The index in the sequence of transcribed pieces of the conversation where + * the boundary is located. This index starts at zero. + * + * Generated from protobuf field int32 transcript_index = 1; + */ + protected $transcript_index = 0; + protected $detailed_boundary; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $word_index + * The word index of this boundary with respect to the first word in the + * transcript piece. This index starts at zero. + * @type int $transcript_index + * The index in the sequence of transcribed pieces of the conversation where + * the boundary is located. This index starts at zero. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The word index of this boundary with respect to the first word in the + * transcript piece. This index starts at zero. + * + * Generated from protobuf field int32 word_index = 3; + * @return int + */ + public function getWordIndex() + { + return $this->readOneof(3); + } + + public function hasWordIndex() + { + return $this->hasOneof(3); + } + + /** + * The word index of this boundary with respect to the first word in the + * transcript piece. This index starts at zero. + * + * Generated from protobuf field int32 word_index = 3; + * @param int $var + * @return $this + */ + public function setWordIndex($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The index in the sequence of transcribed pieces of the conversation where + * the boundary is located. This index starts at zero. + * + * Generated from protobuf field int32 transcript_index = 1; + * @return int + */ + public function getTranscriptIndex() + { + return $this->transcript_index; + } + + /** + * The index in the sequence of transcribed pieces of the conversation where + * the boundary is located. This index starts at zero. + * + * Generated from protobuf field int32 transcript_index = 1; + * @param int $var + * @return $this + */ + public function setTranscriptIndex($var) + { + GPBUtil::checkInt32($var); + $this->transcript_index = $var; + + return $this; + } + + /** + * @return string + */ + public function getDetailedBoundary() + { + return $this->whichOneof("detailed_boundary"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector.php new file mode 100644 index 000000000000..d2548d2c4a3f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector.php @@ -0,0 +1,453 @@ +google.cloud.contactcenterinsights.v1.AnnotatorSelector + */ +class AnnotatorSelector extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to run the interruption annotator. + * + * Generated from protobuf field bool run_interruption_annotator = 1; + */ + protected $run_interruption_annotator = false; + /** + * Whether to run the silence annotator. + * + * Generated from protobuf field bool run_silence_annotator = 2; + */ + protected $run_silence_annotator = false; + /** + * Whether to run the active phrase matcher annotator(s). + * + * Generated from protobuf field bool run_phrase_matcher_annotator = 3; + */ + protected $run_phrase_matcher_annotator = false; + /** + * The list of phrase matchers to run. If not provided, all active phrase + * matchers will be used. If inactive phrase matchers are provided, they will + * not be used. Phrase matchers will be run only if + * run_phrase_matcher_annotator is set to true. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * Generated from protobuf field repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { + */ + private $phrase_matchers; + /** + * Whether to run the sentiment annotator. + * + * Generated from protobuf field bool run_sentiment_annotator = 5; + */ + protected $run_sentiment_annotator = false; + /** + * Whether to run the entity annotator. + * + * Generated from protobuf field bool run_entity_annotator = 6; + */ + protected $run_entity_annotator = false; + /** + * Whether to run the intent annotator. + * + * Generated from protobuf field bool run_intent_annotator = 7; + */ + protected $run_intent_annotator = false; + /** + * Whether to run the issue model annotator. A model should have already been + * deployed for this to take effect. + * + * Generated from protobuf field bool run_issue_model_annotator = 8; + */ + protected $run_issue_model_annotator = false; + /** + * The issue model to run. If not provided, the most recently deployed topic + * model will be used. The provided issue model will only be used for + * inference if the issue model is deployed and if run_issue_model_annotator + * is set to true. If more than one issue model is provided, only the first + * provided issue model will be used for inference. + * + * Generated from protobuf field repeated string issue_models = 10 [(.google.api.resource_reference) = { + */ + private $issue_models; + /** + * Whether to run the summarization annotator. + * + * Generated from protobuf field bool run_summarization_annotator = 9; + */ + protected $run_summarization_annotator = false; + /** + * Configuration for the summarization annotator. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11; + */ + protected $summarization_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $run_interruption_annotator + * Whether to run the interruption annotator. + * @type bool $run_silence_annotator + * Whether to run the silence annotator. + * @type bool $run_phrase_matcher_annotator + * Whether to run the active phrase matcher annotator(s). + * @type array|\Google\Protobuf\Internal\RepeatedField $phrase_matchers + * The list of phrase matchers to run. If not provided, all active phrase + * matchers will be used. If inactive phrase matchers are provided, they will + * not be used. Phrase matchers will be run only if + * run_phrase_matcher_annotator is set to true. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * @type bool $run_sentiment_annotator + * Whether to run the sentiment annotator. + * @type bool $run_entity_annotator + * Whether to run the entity annotator. + * @type bool $run_intent_annotator + * Whether to run the intent annotator. + * @type bool $run_issue_model_annotator + * Whether to run the issue model annotator. A model should have already been + * deployed for this to take effect. + * @type array|\Google\Protobuf\Internal\RepeatedField $issue_models + * The issue model to run. If not provided, the most recently deployed topic + * model will be used. The provided issue model will only be used for + * inference if the issue model is deployed and if run_issue_model_annotator + * is set to true. If more than one issue model is provided, only the first + * provided issue model will be used for inference. + * @type bool $run_summarization_annotator + * Whether to run the summarization annotator. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig $summarization_config + * Configuration for the summarization annotator. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Whether to run the interruption annotator. + * + * Generated from protobuf field bool run_interruption_annotator = 1; + * @return bool + */ + public function getRunInterruptionAnnotator() + { + return $this->run_interruption_annotator; + } + + /** + * Whether to run the interruption annotator. + * + * Generated from protobuf field bool run_interruption_annotator = 1; + * @param bool $var + * @return $this + */ + public function setRunInterruptionAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_interruption_annotator = $var; + + return $this; + } + + /** + * Whether to run the silence annotator. + * + * Generated from protobuf field bool run_silence_annotator = 2; + * @return bool + */ + public function getRunSilenceAnnotator() + { + return $this->run_silence_annotator; + } + + /** + * Whether to run the silence annotator. + * + * Generated from protobuf field bool run_silence_annotator = 2; + * @param bool $var + * @return $this + */ + public function setRunSilenceAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_silence_annotator = $var; + + return $this; + } + + /** + * Whether to run the active phrase matcher annotator(s). + * + * Generated from protobuf field bool run_phrase_matcher_annotator = 3; + * @return bool + */ + public function getRunPhraseMatcherAnnotator() + { + return $this->run_phrase_matcher_annotator; + } + + /** + * Whether to run the active phrase matcher annotator(s). + * + * Generated from protobuf field bool run_phrase_matcher_annotator = 3; + * @param bool $var + * @return $this + */ + public function setRunPhraseMatcherAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_phrase_matcher_annotator = $var; + + return $this; + } + + /** + * The list of phrase matchers to run. If not provided, all active phrase + * matchers will be used. If inactive phrase matchers are provided, they will + * not be used. Phrase matchers will be run only if + * run_phrase_matcher_annotator is set to true. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * Generated from protobuf field repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhraseMatchers() + { + return $this->phrase_matchers; + } + + /** + * The list of phrase matchers to run. If not provided, all active phrase + * matchers will be used. If inactive phrase matchers are provided, they will + * not be used. Phrase matchers will be run only if + * run_phrase_matcher_annotator is set to true. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * Generated from protobuf field repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhraseMatchers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->phrase_matchers = $arr; + + return $this; + } + + /** + * Whether to run the sentiment annotator. + * + * Generated from protobuf field bool run_sentiment_annotator = 5; + * @return bool + */ + public function getRunSentimentAnnotator() + { + return $this->run_sentiment_annotator; + } + + /** + * Whether to run the sentiment annotator. + * + * Generated from protobuf field bool run_sentiment_annotator = 5; + * @param bool $var + * @return $this + */ + public function setRunSentimentAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_sentiment_annotator = $var; + + return $this; + } + + /** + * Whether to run the entity annotator. + * + * Generated from protobuf field bool run_entity_annotator = 6; + * @return bool + */ + public function getRunEntityAnnotator() + { + return $this->run_entity_annotator; + } + + /** + * Whether to run the entity annotator. + * + * Generated from protobuf field bool run_entity_annotator = 6; + * @param bool $var + * @return $this + */ + public function setRunEntityAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_entity_annotator = $var; + + return $this; + } + + /** + * Whether to run the intent annotator. + * + * Generated from protobuf field bool run_intent_annotator = 7; + * @return bool + */ + public function getRunIntentAnnotator() + { + return $this->run_intent_annotator; + } + + /** + * Whether to run the intent annotator. + * + * Generated from protobuf field bool run_intent_annotator = 7; + * @param bool $var + * @return $this + */ + public function setRunIntentAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_intent_annotator = $var; + + return $this; + } + + /** + * Whether to run the issue model annotator. A model should have already been + * deployed for this to take effect. + * + * Generated from protobuf field bool run_issue_model_annotator = 8; + * @return bool + */ + public function getRunIssueModelAnnotator() + { + return $this->run_issue_model_annotator; + } + + /** + * Whether to run the issue model annotator. A model should have already been + * deployed for this to take effect. + * + * Generated from protobuf field bool run_issue_model_annotator = 8; + * @param bool $var + * @return $this + */ + public function setRunIssueModelAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_issue_model_annotator = $var; + + return $this; + } + + /** + * The issue model to run. If not provided, the most recently deployed topic + * model will be used. The provided issue model will only be used for + * inference if the issue model is deployed and if run_issue_model_annotator + * is set to true. If more than one issue model is provided, only the first + * provided issue model will be used for inference. + * + * Generated from protobuf field repeated string issue_models = 10 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssueModels() + { + return $this->issue_models; + } + + /** + * The issue model to run. If not provided, the most recently deployed topic + * model will be used. The provided issue model will only be used for + * inference if the issue model is deployed and if run_issue_model_annotator + * is set to true. If more than one issue model is provided, only the first + * provided issue model will be used for inference. + * + * Generated from protobuf field repeated string issue_models = 10 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssueModels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->issue_models = $arr; + + return $this; + } + + /** + * Whether to run the summarization annotator. + * + * Generated from protobuf field bool run_summarization_annotator = 9; + * @return bool + */ + public function getRunSummarizationAnnotator() + { + return $this->run_summarization_annotator; + } + + /** + * Whether to run the summarization annotator. + * + * Generated from protobuf field bool run_summarization_annotator = 9; + * @param bool $var + * @return $this + */ + public function setRunSummarizationAnnotator($var) + { + GPBUtil::checkBool($var); + $this->run_summarization_annotator = $var; + + return $this; + } + + /** + * Configuration for the summarization annotator. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig|null + */ + public function getSummarizationConfig() + { + return $this->summarization_config; + } + + public function hasSummarizationConfig() + { + return isset($this->summarization_config); + } + + public function clearSummarizationConfig() + { + unset($this->summarization_config); + } + + /** + * Configuration for the summarization annotator. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig summarization_config = 11; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig $var + * @return $this + */ + public function setSummarizationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig::class); + $this->summarization_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig.php new file mode 100644 index 000000000000..b050ddc9554a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig.php @@ -0,0 +1,117 @@ +google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig + */ +class SummarizationConfig extends \Google\Protobuf\Internal\Message +{ + protected $model_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $conversation_profile + * Resource name of the Dialogflow conversation profile. + * Format: + * projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * @type int $summarization_model + * Default summarization model to be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the Dialogflow conversation profile. + * Format: + * projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * + * Generated from protobuf field string conversation_profile = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getConversationProfile() + { + return $this->readOneof(1); + } + + public function hasConversationProfile() + { + return $this->hasOneof(1); + } + + /** + * Resource name of the Dialogflow conversation profile. + * Format: + * projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * + * Generated from protobuf field string conversation_profile = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConversationProfile($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Default summarization model to be used. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel summarization_model = 2; + * @return int + */ + public function getSummarizationModel() + { + return $this->readOneof(2); + } + + public function hasSummarizationModel() + { + return $this->hasOneof(2); + } + + /** + * Default summarization model to be used. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel summarization_model = 2; + * @param int $var + * @return $this + */ + public function setSummarizationModel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig\SummarizationModel::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getModelSource() + { + return $this->whichOneof("model_source"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SummarizationConfig::class, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector_SummarizationConfig::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig/SummarizationModel.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig/SummarizationModel.php new file mode 100644 index 000000000000..889963eb5a60 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnnotatorSelector/SummarizationConfig/SummarizationModel.php @@ -0,0 +1,64 @@ +google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel + */ +class SummarizationModel +{ + /** + * Unspecified summarization model. + * + * Generated from protobuf enum SUMMARIZATION_MODEL_UNSPECIFIED = 0; + */ + const SUMMARIZATION_MODEL_UNSPECIFIED = 0; + /** + * The CCAI baseline model. + * + * Generated from protobuf enum BASELINE_MODEL = 1; + */ + const BASELINE_MODEL = 1; + /** + * The CCAI baseline model, V2.0. + * + * Generated from protobuf enum BASELINE_MODEL_V2_0 = 2; + */ + const BASELINE_MODEL_V2_0 = 2; + + private static $valueToName = [ + self::SUMMARIZATION_MODEL_UNSPECIFIED => 'SUMMARIZATION_MODEL_UNSPECIFIED', + self::BASELINE_MODEL => 'BASELINE_MODEL', + self::BASELINE_MODEL_V2_0 => 'BASELINE_MODEL_V2_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(SummarizationModel::class, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector_SummarizationConfig_SummarizationModel::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback.php new file mode 100644 index 000000000000..213afb4ccc53 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback.php @@ -0,0 +1,140 @@ +google.cloud.contactcenterinsights.v1.AnswerFeedback + */ +class AnswerFeedback extends \Google\Protobuf\Internal\Message +{ + /** + * The correctness level of an answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel correctness_level = 1; + */ + protected $correctness_level = 0; + /** + * Indicates whether an answer or item was clicked by the human agent. + * + * Generated from protobuf field bool clicked = 2; + */ + protected $clicked = false; + /** + * Indicates whether an answer or item was displayed to the human agent in the + * agent desktop UI. + * + * Generated from protobuf field bool displayed = 3; + */ + protected $displayed = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $correctness_level + * The correctness level of an answer. + * @type bool $clicked + * Indicates whether an answer or item was clicked by the human agent. + * @type bool $displayed + * Indicates whether an answer or item was displayed to the human agent in the + * agent desktop UI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The correctness level of an answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel correctness_level = 1; + * @return int + */ + public function getCorrectnessLevel() + { + return $this->correctness_level; + } + + /** + * The correctness level of an answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel correctness_level = 1; + * @param int $var + * @return $this + */ + public function setCorrectnessLevel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback\CorrectnessLevel::class); + $this->correctness_level = $var; + + return $this; + } + + /** + * Indicates whether an answer or item was clicked by the human agent. + * + * Generated from protobuf field bool clicked = 2; + * @return bool + */ + public function getClicked() + { + return $this->clicked; + } + + /** + * Indicates whether an answer or item was clicked by the human agent. + * + * Generated from protobuf field bool clicked = 2; + * @param bool $var + * @return $this + */ + public function setClicked($var) + { + GPBUtil::checkBool($var); + $this->clicked = $var; + + return $this; + } + + /** + * Indicates whether an answer or item was displayed to the human agent in the + * agent desktop UI. + * + * Generated from protobuf field bool displayed = 3; + * @return bool + */ + public function getDisplayed() + { + return $this->displayed; + } + + /** + * Indicates whether an answer or item was displayed to the human agent in the + * agent desktop UI. + * + * Generated from protobuf field bool displayed = 3; + * @param bool $var + * @return $this + */ + public function setDisplayed($var) + { + GPBUtil::checkBool($var); + $this->displayed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback/CorrectnessLevel.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback/CorrectnessLevel.php new file mode 100644 index 000000000000..2695eda6c4bd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/AnswerFeedback/CorrectnessLevel.php @@ -0,0 +1,71 @@ +google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel + */ +class CorrectnessLevel +{ + /** + * Correctness level unspecified. + * + * Generated from protobuf enum CORRECTNESS_LEVEL_UNSPECIFIED = 0; + */ + const CORRECTNESS_LEVEL_UNSPECIFIED = 0; + /** + * Answer is totally wrong. + * + * Generated from protobuf enum NOT_CORRECT = 1; + */ + const NOT_CORRECT = 1; + /** + * Answer is partially correct. + * + * Generated from protobuf enum PARTIALLY_CORRECT = 2; + */ + const PARTIALLY_CORRECT = 2; + /** + * Answer is fully correct. + * + * Generated from protobuf enum FULLY_CORRECT = 3; + */ + const FULLY_CORRECT = 3; + + private static $valueToName = [ + self::CORRECTNESS_LEVEL_UNSPECIFIED => 'CORRECTNESS_LEVEL_UNSPECIFIED', + self::NOT_CORRECT => 'NOT_CORRECT', + self::PARTIALLY_CORRECT => 'PARTIALLY_CORRECT', + self::FULLY_CORRECT => 'FULLY_CORRECT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CorrectnessLevel::class, \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback_CorrectnessLevel::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ArticleSuggestionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ArticleSuggestionData.php new file mode 100644 index 000000000000..e6fec5e3efb9 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ArticleSuggestionData.php @@ -0,0 +1,265 @@ +google.cloud.contactcenterinsights.v1.ArticleSuggestionData + */ +class ArticleSuggestionData extends \Google\Protobuf\Internal\Message +{ + /** + * Article title. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * Article URI. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * The system's confidence score that this article is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 3; + */ + protected $confidence_score = 0.0; + /** + * Map that contains metadata about the Article Suggestion and the document + * that it originates from. + * + * Generated from protobuf field map metadata = 4; + */ + private $metadata; + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + */ + protected $query_record = ''; + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + * + * Generated from protobuf field string source = 6; + */ + protected $source = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * Article title. + * @type string $uri + * Article URI. + * @type float $confidence_score + * The system's confidence score that this article is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Map that contains metadata about the Article Suggestion and the document + * that it originates from. + * @type string $query_record + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * @type string $source + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Article title. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Article title. + * + * 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; + } + + /** + * Article URI. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Article URI. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * The system's confidence score that this article is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 3; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * The system's confidence score that this article is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 3; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkFloat($var); + $this->confidence_score = $var; + + return $this; + } + + /** + * Map that contains metadata about the Article Suggestion and the document + * that it originates from. + * + * Generated from protobuf field map metadata = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Map that contains metadata about the Article Suggestion and the document + * that it originates from. + * + * Generated from protobuf field map metadata = 4; + * @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; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + * @return string + */ + public function getQueryRecord() + { + return $this->query_record; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + * @param string $var + * @return $this + */ + public function setQueryRecord($var) + { + GPBUtil::checkString($var, True); + $this->query_record = $var; + + return $this; + } + + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + * + * Generated from protobuf field string source = 6; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + * + * Generated from protobuf field string source = 6; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsMetadata.php new file mode 100644 index 000000000000..f93ac9e68a44 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsMetadata.php @@ -0,0 +1,309 @@ +google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + */ +class BulkAnalyzeConversationsMetadata 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; + /** + * The original request for bulk analyze. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + */ + protected $request = null; + /** + * The number of requested analyses that have completed successfully so far. + * + * Generated from protobuf field int32 completed_analyses_count = 4; + */ + protected $completed_analyses_count = 0; + /** + * The number of requested analyses that have failed so far. + * + * Generated from protobuf field int32 failed_analyses_count = 5; + */ + protected $failed_analyses_count = 0; + /** + * Total number of analyses requested. Computed by the number of conversations + * returned by `filter` multiplied by `analysis_percentage` in the request. + * + * Generated from protobuf field int32 total_requested_analyses_count = 6; + */ + protected $total_requested_analyses_count = 0; + /** + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $partial_errors; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsRequest $request + * The original request for bulk analyze. + * @type int $completed_analyses_count + * The number of requested analyses that have completed successfully so far. + * @type int $failed_analyses_count + * The number of requested analyses that have failed so far. + * @type int $total_requested_analyses_count + * Total number of analyses requested. Computed by the number of conversations + * returned by `filter` multiplied by `analysis_percentage` in the request. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for bulk analyze. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for bulk analyze. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsRequest::class); + $this->request = $var; + + return $this; + } + + /** + * The number of requested analyses that have completed successfully so far. + * + * Generated from protobuf field int32 completed_analyses_count = 4; + * @return int + */ + public function getCompletedAnalysesCount() + { + return $this->completed_analyses_count; + } + + /** + * The number of requested analyses that have completed successfully so far. + * + * Generated from protobuf field int32 completed_analyses_count = 4; + * @param int $var + * @return $this + */ + public function setCompletedAnalysesCount($var) + { + GPBUtil::checkInt32($var); + $this->completed_analyses_count = $var; + + return $this; + } + + /** + * The number of requested analyses that have failed so far. + * + * Generated from protobuf field int32 failed_analyses_count = 5; + * @return int + */ + public function getFailedAnalysesCount() + { + return $this->failed_analyses_count; + } + + /** + * The number of requested analyses that have failed so far. + * + * Generated from protobuf field int32 failed_analyses_count = 5; + * @param int $var + * @return $this + */ + public function setFailedAnalysesCount($var) + { + GPBUtil::checkInt32($var); + $this->failed_analyses_count = $var; + + return $this; + } + + /** + * Total number of analyses requested. Computed by the number of conversations + * returned by `filter` multiplied by `analysis_percentage` in the request. + * + * Generated from protobuf field int32 total_requested_analyses_count = 6; + * @return int + */ + public function getTotalRequestedAnalysesCount() + { + return $this->total_requested_analyses_count; + } + + /** + * Total number of analyses requested. Computed by the number of conversations + * returned by `filter` multiplied by `analysis_percentage` in the request. + * + * Generated from protobuf field int32 total_requested_analyses_count = 6; + * @param int $var + * @return $this + */ + public function setTotalRequestedAnalysesCount($var) + { + GPBUtil::checkInt32($var); + $this->total_requested_analyses_count = $var; + + return $this; + } + + /** + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Output only. Partial errors during bulk analyze operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsRequest.php new file mode 100644 index 000000000000..b73df51d31e4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsRequest.php @@ -0,0 +1,206 @@ +google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + */ +class BulkAnalyzeConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource to create analyses in. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Filter used to select the subset of conversations to analyze. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = ''; + /** + * Required. Percentage of selected conversation to analyze, between + * [0, 100]. + * + * Generated from protobuf field float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $analysis_percentage = 0.0; + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + protected $annotator_selector = null; + + /** + * @param string $parent Required. The parent resource to create analyses in. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param string $filter Required. Filter used to select the subset of conversations to analyze. + * @param float $analysisPercentage Required. Percentage of selected conversation to analyze, between + * [0, 100]. + * + * @return \Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsRequest + * + * @experimental + */ + public static function build(string $parent, string $filter, float $analysisPercentage): self + { + return (new self()) + ->setParent($parent) + ->setFilter($filter) + ->setAnalysisPercentage($analysisPercentage); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource to create analyses in. + * @type string $filter + * Required. Filter used to select the subset of conversations to analyze. + * @type float $analysis_percentage + * Required. Percentage of selected conversation to analyze, between + * [0, 100]. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $annotator_selector + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource to create analyses in. + * + * Generated 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 to create analyses in. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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. Filter used to select the subset of conversations to analyze. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Required. Filter used to select the subset of conversations to analyze. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Required. Percentage of selected conversation to analyze, between + * [0, 100]. + * + * Generated from protobuf field float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return float + */ + public function getAnalysisPercentage() + { + return $this->analysis_percentage; + } + + /** + * Required. Percentage of selected conversation to analyze, between + * [0, 100]. + * + * Generated from protobuf field float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param float $var + * @return $this + */ + public function setAnalysisPercentage($var) + { + GPBUtil::checkFloat($var); + $this->analysis_percentage = $var; + + return $this; + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector|null + */ + public function getAnnotatorSelector() + { + return $this->annotator_selector; + } + + public function hasAnnotatorSelector() + { + return isset($this->annotator_selector); + } + + public function clearAnnotatorSelector() + { + unset($this->annotator_selector); + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $var + * @return $this + */ + public function setAnnotatorSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector::class); + $this->annotator_selector = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsResponse.php new file mode 100644 index 000000000000..adccae48897f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkAnalyzeConversationsResponse.php @@ -0,0 +1,101 @@ +google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + */ +class BulkAnalyzeConversationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Count of successful analyses. + * + * Generated from protobuf field int32 successful_analysis_count = 1; + */ + protected $successful_analysis_count = 0; + /** + * Count of failed analyses. + * + * Generated from protobuf field int32 failed_analysis_count = 2; + */ + protected $failed_analysis_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $successful_analysis_count + * Count of successful analyses. + * @type int $failed_analysis_count + * Count of failed analyses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Count of successful analyses. + * + * Generated from protobuf field int32 successful_analysis_count = 1; + * @return int + */ + public function getSuccessfulAnalysisCount() + { + return $this->successful_analysis_count; + } + + /** + * Count of successful analyses. + * + * Generated from protobuf field int32 successful_analysis_count = 1; + * @param int $var + * @return $this + */ + public function setSuccessfulAnalysisCount($var) + { + GPBUtil::checkInt32($var); + $this->successful_analysis_count = $var; + + return $this; + } + + /** + * Count of failed analyses. + * + * Generated from protobuf field int32 failed_analysis_count = 2; + * @return int + */ + public function getFailedAnalysisCount() + { + return $this->failed_analysis_count; + } + + /** + * Count of failed analyses. + * + * Generated from protobuf field int32 failed_analysis_count = 2; + * @param int $var + * @return $this + */ + public function setFailedAnalysisCount($var) + { + GPBUtil::checkInt32($var); + $this->failed_analysis_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsMetadata.php new file mode 100644 index 000000000000..753b1ea23b0e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsMetadata.php @@ -0,0 +1,203 @@ +google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + */ +class BulkDeleteConversationsMetadata 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; + /** + * The original request for bulk delete. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + */ + protected $request = null; + /** + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + */ + private $partial_errors; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsRequest $request + * The original request for bulk delete. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for bulk delete. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for bulk delete. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsRequest::class); + $this->request = $var; + + return $this; + } + + /** + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Partial errors during bulk delete conversations operation that might cause + * the operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsRequest.php new file mode 100644 index 000000000000..90e90424bd7f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsRequest.php @@ -0,0 +1,203 @@ +google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + */ +class BulkDeleteConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource to delete conversations from. + * Format: + * projects/{project}/locations/{location} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Filter used to select the subset of conversations to delete. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * Maximum number of conversations to delete. + * + * Generated from protobuf field int32 max_delete_count = 3; + */ + protected $max_delete_count = 0; + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * Generated from protobuf field bool force = 4; + */ + protected $force = false; + + /** + * @param string $parent Required. The parent resource to delete conversations from. + * Format: + * projects/{project}/locations/{location} + * Please see {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param string $filter Filter used to select the subset of conversations to delete. + * + * @return \Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsRequest + * + * @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. The parent resource to delete conversations from. + * Format: + * projects/{project}/locations/{location} + * @type string $filter + * Filter used to select the subset of conversations to delete. + * @type int $max_delete_count + * Maximum number of conversations to delete. + * @type bool $force + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource to delete conversations from. + * 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 to delete conversations from. + * 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; + } + + /** + * Filter used to select the subset of conversations to delete. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter used to select the subset of conversations to delete. + * + * 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; + } + + /** + * Maximum number of conversations to delete. + * + * Generated from protobuf field int32 max_delete_count = 3; + * @return int + */ + public function getMaxDeleteCount() + { + return $this->max_delete_count; + } + + /** + * Maximum number of conversations to delete. + * + * Generated from protobuf field int32 max_delete_count = 3; + * @param int $var + * @return $this + */ + public function setMaxDeleteCount($var) + { + GPBUtil::checkInt32($var); + $this->max_delete_count = $var; + + return $this; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * Generated from protobuf field bool force = 4; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * Generated from protobuf field bool force = 4; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsResponse.php new file mode 100644 index 000000000000..ca52f6da6873 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/BulkDeleteConversationsResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + */ +class BulkDeleteConversationsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsRequest.php new file mode 100644 index 000000000000..8daa93a4a679 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest + */ +class CalculateIssueModelStatsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the issue model to query against. + * + * Generated from protobuf field string issue_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $issue_model = ''; + + /** + * @param string $issueModel Required. The resource name of the issue model to query against. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CalculateIssueModelStatsRequest + * + * @experimental + */ + public static function build(string $issueModel): self + { + return (new self()) + ->setIssueModel($issueModel); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issue_model + * Required. The resource name of the issue model to query against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the issue model to query against. + * + * Generated from protobuf field string issue_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getIssueModel() + { + return $this->issue_model; + } + + /** + * Required. The resource name of the issue model to query against. + * + * Generated from protobuf field string issue_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIssueModel($var) + { + GPBUtil::checkString($var, True); + $this->issue_model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsResponse.php new file mode 100644 index 000000000000..932814766c92 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateIssueModelStatsResponse.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse + */ +class CalculateIssueModelStatsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The latest label statistics for the queried issue model. Includes results + * on both training data and data labeled after deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4; + */ + protected $current_stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $current_stats + * The latest label statistics for the queried issue model. Includes results + * on both training data and data labeled after deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The latest label statistics for the queried issue model. Includes results + * on both training data and data labeled after deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats|null + */ + public function getCurrentStats() + { + return $this->current_stats; + } + + public function hasCurrentStats() + { + return isset($this->current_stats); + } + + public function clearCurrentStats() + { + unset($this->current_stats); + } + + /** + * The latest label statistics for the queried issue model. Includes results + * on both training data and data labeled after deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $var + * @return $this + */ + public function setCurrentStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats::class); + $this->current_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsRequest.php new file mode 100644 index 000000000000..5f422bb77f78 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsRequest.php @@ -0,0 +1,119 @@ +google.cloud.contactcenterinsights.v1.CalculateStatsRequest + */ +class CalculateStatsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location of the conversations. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * A filter to reduce results to a specific subset. This field is useful for + * getting statistics about conversations with specific properties. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + + /** + * @param string $location Required. The location of the conversations. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CalculateStatsRequest + * + * @experimental + */ + public static function build(string $location): self + { + return (new self()) + ->setLocation($location); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. The location of the conversations. + * @type string $filter + * A filter to reduce results to a specific subset. This field is useful for + * getting statistics about conversations with specific properties. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location of the conversations. + * + * 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 location of the conversations. + * + * 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; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for + * getting statistics about conversations with specific properties. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for + * getting statistics about conversations with specific properties. + * + * 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; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse.php new file mode 100644 index 000000000000..973f3b649b1e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse.php @@ -0,0 +1,366 @@ +google.cloud.contactcenterinsights.v1.CalculateStatsResponse + */ +class CalculateStatsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The average duration of all conversations. The average is calculated using + * only conversations that have a time duration. + * + * Generated from protobuf field .google.protobuf.Duration average_duration = 1; + */ + protected $average_duration = null; + /** + * The average number of turns per conversation. + * + * Generated from protobuf field int32 average_turn_count = 2; + */ + protected $average_turn_count = 0; + /** + * The total number of conversations. + * + * Generated from protobuf field int32 conversation_count = 3; + */ + protected $conversation_count = 0; + /** + * A map associating each smart highlighter display name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map smart_highlighter_matches = 4; + */ + private $smart_highlighter_matches; + /** + * A map associating each custom highlighter resource name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map custom_highlighter_matches = 5; + */ + private $custom_highlighter_matches; + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * Deprecated, use `issue_matches_stats` field instead. + * + * Generated from protobuf field map issue_matches = 6 [deprecated = true]; + * @deprecated + */ + private $issue_matches; + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * + * Generated from protobuf field map issue_matches_stats = 8; + */ + private $issue_matches_stats; + /** + * A time series representing the count of conversations created over time + * that match that requested filter criteria. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7; + */ + protected $conversation_count_time_series = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $average_duration + * The average duration of all conversations. The average is calculated using + * only conversations that have a time duration. + * @type int $average_turn_count + * The average number of turns per conversation. + * @type int $conversation_count + * The total number of conversations. + * @type array|\Google\Protobuf\Internal\MapField $smart_highlighter_matches + * A map associating each smart highlighter display name with its respective + * number of matches in the set of conversations. + * @type array|\Google\Protobuf\Internal\MapField $custom_highlighter_matches + * A map associating each custom highlighter resource name with its respective + * number of matches in the set of conversations. + * @type array|\Google\Protobuf\Internal\MapField $issue_matches + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * Deprecated, use `issue_matches_stats` field instead. + * @type array|\Google\Protobuf\Internal\MapField $issue_matches_stats + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * @type \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries $conversation_count_time_series + * A time series representing the count of conversations created over time + * that match that requested filter criteria. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The average duration of all conversations. The average is calculated using + * only conversations that have a time duration. + * + * Generated from protobuf field .google.protobuf.Duration average_duration = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getAverageDuration() + { + return $this->average_duration; + } + + public function hasAverageDuration() + { + return isset($this->average_duration); + } + + public function clearAverageDuration() + { + unset($this->average_duration); + } + + /** + * The average duration of all conversations. The average is calculated using + * only conversations that have a time duration. + * + * Generated from protobuf field .google.protobuf.Duration average_duration = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setAverageDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->average_duration = $var; + + return $this; + } + + /** + * The average number of turns per conversation. + * + * Generated from protobuf field int32 average_turn_count = 2; + * @return int + */ + public function getAverageTurnCount() + { + return $this->average_turn_count; + } + + /** + * The average number of turns per conversation. + * + * Generated from protobuf field int32 average_turn_count = 2; + * @param int $var + * @return $this + */ + public function setAverageTurnCount($var) + { + GPBUtil::checkInt32($var); + $this->average_turn_count = $var; + + return $this; + } + + /** + * The total number of conversations. + * + * Generated from protobuf field int32 conversation_count = 3; + * @return int + */ + public function getConversationCount() + { + return $this->conversation_count; + } + + /** + * The total number of conversations. + * + * Generated from protobuf field int32 conversation_count = 3; + * @param int $var + * @return $this + */ + public function setConversationCount($var) + { + GPBUtil::checkInt32($var); + $this->conversation_count = $var; + + return $this; + } + + /** + * A map associating each smart highlighter display name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map smart_highlighter_matches = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getSmartHighlighterMatches() + { + return $this->smart_highlighter_matches; + } + + /** + * A map associating each smart highlighter display name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map smart_highlighter_matches = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setSmartHighlighterMatches($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->smart_highlighter_matches = $arr; + + return $this; + } + + /** + * A map associating each custom highlighter resource name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map custom_highlighter_matches = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getCustomHighlighterMatches() + { + return $this->custom_highlighter_matches; + } + + /** + * A map associating each custom highlighter resource name with its respective + * number of matches in the set of conversations. + * + * Generated from protobuf field map custom_highlighter_matches = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setCustomHighlighterMatches($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->custom_highlighter_matches = $arr; + + return $this; + } + + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * Deprecated, use `issue_matches_stats` field instead. + * + * Generated from protobuf field map issue_matches = 6 [deprecated = true]; + * @return \Google\Protobuf\Internal\MapField + * @deprecated + */ + public function getIssueMatches() + { + @trigger_error('issue_matches is deprecated.', E_USER_DEPRECATED); + return $this->issue_matches; + } + + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * Deprecated, use `issue_matches_stats` field instead. + * + * Generated from protobuf field map issue_matches = 6 [deprecated = true]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + * @deprecated + */ + public function setIssueMatches($var) + { + @trigger_error('issue_matches is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->issue_matches = $arr; + + return $this; + } + + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * + * Generated from protobuf field map issue_matches_stats = 8; + * @return \Google\Protobuf\Internal\MapField + */ + public function getIssueMatchesStats() + { + return $this->issue_matches_stats; + } + + /** + * A map associating each issue resource name with its respective number of + * matches in the set of conversations. Key has the format: + * `projects//locations//issueModels//issues/` + * + * Generated from protobuf field map issue_matches_stats = 8; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setIssueMatchesStats($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats\IssueStats::class); + $this->issue_matches_stats = $arr; + + return $this; + } + + /** + * A time series representing the count of conversations created over time + * that match that requested filter criteria. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7; + * @return \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries|null + */ + public function getConversationCountTimeSeries() + { + return $this->conversation_count_time_series; + } + + public function hasConversationCountTimeSeries() + { + return isset($this->conversation_count_time_series); + } + + public function clearConversationCountTimeSeries() + { + unset($this->conversation_count_time_series); + } + + /** + * A time series representing the count of conversations created over time + * that match that requested filter criteria. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7; + * @param \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries $var + * @return $this + */ + public function setConversationCountTimeSeries($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries::class); + $this->conversation_count_time_series = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries.php new file mode 100644 index 000000000000..ffe33908677a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries.php @@ -0,0 +1,122 @@ +google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries + */ +class TimeSeries extends \Google\Protobuf\Internal\Message +{ + /** + * The duration of each interval. + * + * Generated from protobuf field .google.protobuf.Duration interval_duration = 1; + */ + protected $interval_duration = null; + /** + * An ordered list of intervals from earliest to latest, where each interval + * represents the number of conversations that transpired during the time + * window. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2; + */ + private $points; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $interval_duration + * The duration of each interval. + * @type array<\Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval>|\Google\Protobuf\Internal\RepeatedField $points + * An ordered list of intervals from earliest to latest, where each interval + * represents the number of conversations that transpired during the time + * window. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The duration of each interval. + * + * Generated from protobuf field .google.protobuf.Duration interval_duration = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getIntervalDuration() + { + return $this->interval_duration; + } + + public function hasIntervalDuration() + { + return isset($this->interval_duration); + } + + public function clearIntervalDuration() + { + unset($this->interval_duration); + } + + /** + * The duration of each interval. + * + * Generated from protobuf field .google.protobuf.Duration interval_duration = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setIntervalDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->interval_duration = $var; + + return $this; + } + + /** + * An ordered list of intervals from earliest to latest, where each interval + * represents the number of conversations that transpired during the time + * window. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPoints() + { + return $this->points; + } + + /** + * An ordered list of intervals from earliest to latest, where each interval + * represents the number of conversations that transpired during the time + * window. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2; + * @param array<\Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval::class); + $this->points = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimeSeries::class, \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse_TimeSeries::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries/Interval.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries/Interval.php new file mode 100644 index 000000000000..fd7aa0d92378 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CalculateStatsResponse/TimeSeries/Interval.php @@ -0,0 +1,114 @@ +google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval + */ +class Interval extends \Google\Protobuf\Internal\Message +{ + /** + * The start time of this interval. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * The number of conversations created in this interval. + * + * Generated from protobuf field int32 conversation_count = 2; + */ + protected $conversation_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * The start time of this interval. + * @type int $conversation_count + * The number of conversations created in this interval. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The start time of this interval. + * + * 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 time of this interval. + * + * 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 number of conversations created in this interval. + * + * Generated from protobuf field int32 conversation_count = 2; + * @return int + */ + public function getConversationCount() + { + return $this->conversation_count; + } + + /** + * The number of conversations created in this interval. + * + * Generated from protobuf field int32 conversation_count = 2; + * @param int $var + * @return $this + */ + public function setConversationCount($var) + { + GPBUtil::checkInt32($var); + $this->conversation_count = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Interval::class, \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse_TimeSeries_Interval::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CallAnnotation.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CallAnnotation.php new file mode 100644 index 000000000000..9b2679366c44 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CallAnnotation.php @@ -0,0 +1,432 @@ +google.cloud.contactcenterinsights.v1.CallAnnotation + */ +class CallAnnotation extends \Google\Protobuf\Internal\Message +{ + /** + * The channel of the audio where the annotation occurs. For single-channel + * audio, this field is not populated. + * + * Generated from protobuf field int32 channel_tag = 1; + */ + protected $channel_tag = 0; + /** + * The boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4; + */ + protected $annotation_start_boundary = null; + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5; + */ + protected $annotation_end_boundary = null; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\InterruptionData $interruption_data + * Data specifying an interruption. + * @type \Google\Cloud\ContactCenterInsights\V1\SentimentData $sentiment_data + * Data specifying sentiment. + * @type \Google\Cloud\ContactCenterInsights\V1\SilenceData $silence_data + * Data specifying silence. + * @type \Google\Cloud\ContactCenterInsights\V1\HoldData $hold_data + * Data specifying a hold. + * @type \Google\Cloud\ContactCenterInsights\V1\EntityMentionData $entity_mention_data + * Data specifying an entity mention. + * @type \Google\Cloud\ContactCenterInsights\V1\IntentMatchData $intent_match_data + * Data specifying an intent match. + * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData $phrase_match_data + * Data specifying a phrase match. + * @type \Google\Cloud\ContactCenterInsights\V1\IssueMatchData $issue_match_data + * Data specifying an issue match. + * @type int $channel_tag + * The channel of the audio where the annotation occurs. For single-channel + * audio, this field is not populated. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $annotation_start_boundary + * The boundary in the conversation where the annotation starts, inclusive. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $annotation_end_boundary + * The boundary in the conversation where the annotation ends, inclusive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Data specifying an interruption. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10; + * @return \Google\Cloud\ContactCenterInsights\V1\InterruptionData|null + */ + public function getInterruptionData() + { + return $this->readOneof(10); + } + + public function hasInterruptionData() + { + return $this->hasOneof(10); + } + + /** + * Data specifying an interruption. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10; + * @param \Google\Cloud\ContactCenterInsights\V1\InterruptionData $var + * @return $this + */ + public function setInterruptionData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\InterruptionData::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Data specifying sentiment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11; + * @return \Google\Cloud\ContactCenterInsights\V1\SentimentData|null + */ + public function getSentimentData() + { + return $this->readOneof(11); + } + + public function hasSentimentData() + { + return $this->hasOneof(11); + } + + /** + * Data specifying sentiment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11; + * @param \Google\Cloud\ContactCenterInsights\V1\SentimentData $var + * @return $this + */ + public function setSentimentData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SentimentData::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Data specifying silence. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12; + * @return \Google\Cloud\ContactCenterInsights\V1\SilenceData|null + */ + public function getSilenceData() + { + return $this->readOneof(12); + } + + public function hasSilenceData() + { + return $this->hasOneof(12); + } + + /** + * Data specifying silence. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12; + * @param \Google\Cloud\ContactCenterInsights\V1\SilenceData $var + * @return $this + */ + public function setSilenceData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SilenceData::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Data specifying a hold. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13; + * @return \Google\Cloud\ContactCenterInsights\V1\HoldData|null + */ + public function getHoldData() + { + return $this->readOneof(13); + } + + public function hasHoldData() + { + return $this->hasOneof(13); + } + + /** + * Data specifying a hold. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13; + * @param \Google\Cloud\ContactCenterInsights\V1\HoldData $var + * @return $this + */ + public function setHoldData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\HoldData::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Data specifying an entity mention. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15; + * @return \Google\Cloud\ContactCenterInsights\V1\EntityMentionData|null + */ + public function getEntityMentionData() + { + return $this->readOneof(15); + } + + public function hasEntityMentionData() + { + return $this->hasOneof(15); + } + + /** + * Data specifying an entity mention. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15; + * @param \Google\Cloud\ContactCenterInsights\V1\EntityMentionData $var + * @return $this + */ + public function setEntityMentionData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\EntityMentionData::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Data specifying an intent match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16; + * @return \Google\Cloud\ContactCenterInsights\V1\IntentMatchData|null + */ + public function getIntentMatchData() + { + return $this->readOneof(16); + } + + public function hasIntentMatchData() + { + return $this->hasOneof(16); + } + + /** + * Data specifying an intent match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16; + * @param \Google\Cloud\ContactCenterInsights\V1\IntentMatchData $var + * @return $this + */ + public function setIntentMatchData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IntentMatchData::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Data specifying a phrase match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17; + * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData|null + */ + public function getPhraseMatchData() + { + return $this->readOneof(17); + } + + public function hasPhraseMatchData() + { + return $this->hasOneof(17); + } + + /** + * Data specifying a phrase match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17; + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData $var + * @return $this + */ + public function setPhraseMatchData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchData::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Data specifying an issue match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueMatchData|null + */ + public function getIssueMatchData() + { + return $this->readOneof(18); + } + + public function hasIssueMatchData() + { + return $this->hasOneof(18); + } + + /** + * Data specifying an issue match. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueMatchData $var + * @return $this + */ + public function setIssueMatchData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueMatchData::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * The channel of the audio where the annotation occurs. For single-channel + * audio, this field is not populated. + * + * Generated from protobuf field int32 channel_tag = 1; + * @return int + */ + public function getChannelTag() + { + return $this->channel_tag; + } + + /** + * The channel of the audio where the annotation occurs. For single-channel + * audio, this field is not populated. + * + * Generated from protobuf field int32 channel_tag = 1; + * @param int $var + * @return $this + */ + public function setChannelTag($var) + { + GPBUtil::checkInt32($var); + $this->channel_tag = $var; + + return $this; + } + + /** + * The boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary|null + */ + public function getAnnotationStartBoundary() + { + return $this->annotation_start_boundary; + } + + public function hasAnnotationStartBoundary() + { + return isset($this->annotation_start_boundary); + } + + public function clearAnnotationStartBoundary() + { + unset($this->annotation_start_boundary); + } + + /** + * The boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $var + * @return $this + */ + public function setAnnotationStartBoundary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary::class); + $this->annotation_start_boundary = $var; + + return $this; + } + + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary|null + */ + public function getAnnotationEndBoundary() + { + return $this->annotation_end_boundary; + } + + public function hasAnnotationEndBoundary() + { + return isset($this->annotation_end_boundary); + } + + public function clearAnnotationEndBoundary() + { + unset($this->annotation_end_boundary); + } + + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $var + * @return $this + */ + public function setAnnotationEndBoundary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary::class); + $this->annotation_end_boundary = $var; + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation.php new file mode 100644 index 000000000000..be3e5078a267 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation.php @@ -0,0 +1,932 @@ +google.cloud.contactcenterinsights.v1.Conversation + */ +class Conversation extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the conversation. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The source of the audio and transcription for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2; + */ + protected $data_source = null; + /** + * Output only. The time at which the conversation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The most recent time at which the conversation was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The time at which the conversation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 17; + */ + protected $start_time = null; + /** + * A user-specified language code for the conversation. + * + * Generated from protobuf field string language_code = 14; + */ + protected $language_code = ''; + /** + * An opaque, user-specified string representing the human agent who handled + * the conversation. + * + * Generated from protobuf field string agent_id = 5; + */ + protected $agent_id = ''; + /** + * A map for the user to specify any custom fields. A maximum of 20 labels per + * conversation is allowed, with a maximum of 256 characters per entry. + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + */ + protected $quality_metadata = null; + /** + * Input only. JSON Metadata encoded as a string. + * This field is primarily used by Insights integrations with various telphony + * systems and must be in one of Insights' supported formats. + * + * Generated from protobuf field string metadata_json = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $metadata_json = ''; + /** + * Output only. The conversation transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $transcript = null; + /** + * Immutable. The conversation medium, if unspecified will default to + * PHONE_CALL. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 9 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $medium = 0; + /** + * Output only. The duration of the conversation. + * + * Generated from protobuf field .google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $duration = null; + /** + * Output only. The number of turns in the conversation. + * + * Generated from protobuf field int32 turn_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $turn_count = 0; + /** + * Output only. The conversation's latest analysis, if one exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_analysis = null; + /** + * Output only. Latest summary of the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData latest_summary = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_summary = null; + /** + * Output only. The annotations that were generated during the customer and + * agent interaction. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $runtime_annotations; + /** + * Output only. All the matched Dialogflow intents in the call. The key + * corresponds to a Dialogflow intent, format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field map dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $dialogflow_intents; + /** + * Obfuscated user ID which the customer sent to us. + * + * Generated from protobuf field string obfuscated_user_id = 21; + */ + protected $obfuscated_user_id = ''; + protected $metadata; + protected $expiration; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\CallMetadata $call_metadata + * Call-specific metadata. + * @type \Google\Protobuf\Timestamp $expire_time + * The time at which this conversation should expire. After this time, the + * conversation data and any associated analyses will be deleted. + * @type \Google\Protobuf\Duration $ttl + * Input only. The TTL for this resource. If specified, then this TTL will + * be used to calculate the expire time. + * @type string $name + * Immutable. The resource name of the conversation. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * @type \Google\Cloud\ContactCenterInsights\V1\ConversationDataSource $data_source + * The source of the audio and transcription for the conversation. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the conversation was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The most recent time at which the conversation was updated. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which the conversation started. + * @type string $language_code + * A user-specified language code for the conversation. + * @type string $agent_id + * An opaque, user-specified string representing the human agent who handled + * the conversation. + * @type array|\Google\Protobuf\Internal\MapField $labels + * A map for the user to specify any custom fields. A maximum of 20 labels per + * conversation is allowed, with a maximum of 256 characters per entry. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata $quality_metadata + * Conversation metadata related to quality management. + * @type string $metadata_json + * Input only. JSON Metadata encoded as a string. + * This field is primarily used by Insights integrations with various telphony + * systems and must be in one of Insights' supported formats. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript $transcript + * Output only. The conversation transcript. + * @type int $medium + * Immutable. The conversation medium, if unspecified will default to + * PHONE_CALL. + * @type \Google\Protobuf\Duration $duration + * Output only. The duration of the conversation. + * @type int $turn_count + * Output only. The number of turns in the conversation. + * @type \Google\Cloud\ContactCenterInsights\V1\Analysis $latest_analysis + * Output only. The conversation's latest analysis, if one exists. + * @type \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData $latest_summary + * Output only. Latest summary of the conversation. + * @type array<\Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation>|\Google\Protobuf\Internal\RepeatedField $runtime_annotations + * Output only. The annotations that were generated during the customer and + * agent interaction. + * @type array|\Google\Protobuf\Internal\MapField $dialogflow_intents + * Output only. All the matched Dialogflow intents in the call. The key + * corresponds to a Dialogflow intent, format: + * projects/{project}/agent/{agent}/intents/{intent} + * @type string $obfuscated_user_id + * Obfuscated user ID which the customer sent to us. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Call-specific metadata. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation\CallMetadata|null + */ + public function getCallMetadata() + { + return $this->readOneof(7); + } + + public function hasCallMetadata() + { + return $this->hasOneof(7); + } + + /** + * Call-specific metadata. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\CallMetadata $var + * @return $this + */ + public function setCallMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\CallMetadata::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * The time at which this conversation should expire. After this time, the + * conversation data and any associated analyses will be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 15; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->readOneof(15); + } + + public function hasExpireTime() + { + return $this->hasOneof(15); + } + + /** + * The time at which this conversation should expire. After this time, the + * conversation data and any associated analyses will be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 15; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Input only. The TTL for this resource. If specified, then this TTL will + * be used to calculate the expire time. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->readOneof(16); + } + + public function hasTtl() + { + return $this->hasOneof(16); + } + + /** + * Input only. The TTL for this resource. If specified, then this TTL will + * be used to calculate the expire time. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 16 [(.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(16, $var); + + return $this; + } + + /** + * Immutable. The resource name of the conversation. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the conversation. + * Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * 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; + } + + /** + * The source of the audio and transcription for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\ConversationDataSource|null + */ + public function getDataSource() + { + return $this->data_source; + } + + public function hasDataSource() + { + return isset($this->data_source); + } + + public function clearDataSource() + { + unset($this->data_source); + } + + /** + * The source of the audio and transcription for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\ConversationDataSource $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ConversationDataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Output only. The time at which the conversation 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 conversation 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; + } + + /** + * Output only. The most recent time at which the conversation 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 most recent time at which the conversation 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; + } + + /** + * The time at which the conversation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 17; + * @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 time at which the conversation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 17; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * A user-specified language code for the conversation. + * + * Generated from protobuf field string language_code = 14; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * A user-specified language code for the conversation. + * + * Generated from protobuf field string language_code = 14; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * An opaque, user-specified string representing the human agent who handled + * the conversation. + * + * Generated from protobuf field string agent_id = 5; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * An opaque, user-specified string representing the human agent who handled + * the conversation. + * + * Generated from protobuf field string agent_id = 5; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + + /** + * A map for the user to specify any custom fields. A maximum of 20 labels per + * conversation is allowed, with a maximum of 256 characters per entry. + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * A map for the user to specify any custom fields. A maximum of 20 labels per + * conversation is allowed, with a maximum of 256 characters per entry. + * + * 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; + } + + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata|null + */ + public function getQualityMetadata() + { + return $this->quality_metadata; + } + + public function hasQualityMetadata() + { + return isset($this->quality_metadata); + } + + public function clearQualityMetadata() + { + unset($this->quality_metadata); + } + + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata $var + * @return $this + */ + public function setQualityMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata::class); + $this->quality_metadata = $var; + + return $this; + } + + /** + * Input only. JSON Metadata encoded as a string. + * This field is primarily used by Insights integrations with various telphony + * systems and must be in one of Insights' supported formats. + * + * Generated from protobuf field string metadata_json = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return string + */ + public function getMetadataJson() + { + return $this->metadata_json; + } + + /** + * Input only. JSON Metadata encoded as a string. + * This field is primarily used by Insights integrations with various telphony + * systems and must be in one of Insights' supported formats. + * + * Generated from protobuf field string metadata_json = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMetadataJson($var) + { + GPBUtil::checkString($var, True); + $this->metadata_json = $var; + + return $this; + } + + /** + * Output only. The conversation transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript|null + */ + public function getTranscript() + { + return $this->transcript; + } + + public function hasTranscript() + { + return isset($this->transcript); + } + + public function clearTranscript() + { + unset($this->transcript); + } + + /** + * Output only. The conversation transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript $var + * @return $this + */ + public function setTranscript($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript::class); + $this->transcript = $var; + + return $this; + } + + /** + * Immutable. The conversation medium, if unspecified will default to + * PHONE_CALL. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMedium() + { + return $this->medium; + } + + /** + * Immutable. The conversation medium, if unspecified will default to + * PHONE_CALL. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMedium($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\Medium::class); + $this->medium = $var; + + return $this; + } + + /** + * Output only. The duration of the conversation. + * + * Generated from protobuf field .google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * Output only. The duration of the conversation. + * + * Generated from protobuf field .google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + + /** + * Output only. The number of turns in the conversation. + * + * Generated from protobuf field int32 turn_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTurnCount() + { + return $this->turn_count; + } + + /** + * Output only. The number of turns in the conversation. + * + * Generated from protobuf field int32 turn_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTurnCount($var) + { + GPBUtil::checkInt32($var); + $this->turn_count = $var; + + return $this; + } + + /** + * Output only. The conversation's latest analysis, if one exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\Analysis|null + */ + public function getLatestAnalysis() + { + return $this->latest_analysis; + } + + public function hasLatestAnalysis() + { + return isset($this->latest_analysis); + } + + public function clearLatestAnalysis() + { + unset($this->latest_analysis); + } + + /** + * Output only. The conversation's latest analysis, if one exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\Analysis $var + * @return $this + */ + public function setLatestAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Analysis::class); + $this->latest_analysis = $var; + + return $this; + } + + /** + * Output only. Latest summary of the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData latest_summary = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData|null + */ + public function getLatestSummary() + { + return $this->latest_summary; + } + + public function hasLatestSummary() + { + return isset($this->latest_summary); + } + + public function clearLatestSummary() + { + unset($this->latest_summary); + } + + /** + * Output only. Latest summary of the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData latest_summary = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData $var + * @return $this + */ + public function setLatestSummary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData::class); + $this->latest_summary = $var; + + return $this; + } + + /** + * Output only. The annotations that were generated during the customer and + * agent interaction. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRuntimeAnnotations() + { + return $this->runtime_annotations; + } + + /** + * Output only. The annotations that were generated during the customer and + * agent interaction. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRuntimeAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation::class); + $this->runtime_annotations = $arr; + + return $this; + } + + /** + * Output only. All the matched Dialogflow intents in the call. The key + * corresponds to a Dialogflow intent, format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field map dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDialogflowIntents() + { + return $this->dialogflow_intents; + } + + /** + * Output only. All the matched Dialogflow intents in the call. The key + * corresponds to a Dialogflow intent, format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field map dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDialogflowIntents($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\DialogflowIntent::class); + $this->dialogflow_intents = $arr; + + return $this; + } + + /** + * Obfuscated user ID which the customer sent to us. + * + * Generated from protobuf field string obfuscated_user_id = 21; + * @return string + */ + public function getObfuscatedUserId() + { + return $this->obfuscated_user_id; + } + + /** + * Obfuscated user ID which the customer sent to us. + * + * Generated from protobuf field string obfuscated_user_id = 21; + * @param string $var + * @return $this + */ + public function setObfuscatedUserId($var) + { + GPBUtil::checkString($var, True); + $this->obfuscated_user_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getMetadata() + { + return $this->whichOneof("metadata"); + } + + /** + * @return string + */ + public function getExpiration() + { + return $this->whichOneof("expiration"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/CallMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/CallMetadata.php new file mode 100644 index 000000000000..3884e88264b0 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/CallMetadata.php @@ -0,0 +1,104 @@ +google.cloud.contactcenterinsights.v1.Conversation.CallMetadata + */ +class CallMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The audio channel that contains the customer. + * + * Generated from protobuf field int32 customer_channel = 1; + */ + protected $customer_channel = 0; + /** + * The audio channel that contains the agent. + * + * Generated from protobuf field int32 agent_channel = 2; + */ + protected $agent_channel = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $customer_channel + * The audio channel that contains the customer. + * @type int $agent_channel + * The audio channel that contains the agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The audio channel that contains the customer. + * + * Generated from protobuf field int32 customer_channel = 1; + * @return int + */ + public function getCustomerChannel() + { + return $this->customer_channel; + } + + /** + * The audio channel that contains the customer. + * + * Generated from protobuf field int32 customer_channel = 1; + * @param int $var + * @return $this + */ + public function setCustomerChannel($var) + { + GPBUtil::checkInt32($var); + $this->customer_channel = $var; + + return $this; + } + + /** + * The audio channel that contains the agent. + * + * Generated from protobuf field int32 agent_channel = 2; + * @return int + */ + public function getAgentChannel() + { + return $this->agent_channel; + } + + /** + * The audio channel that contains the agent. + * + * Generated from protobuf field int32 agent_channel = 2; + * @param int $var + * @return $this + */ + public function setAgentChannel($var) + { + GPBUtil::checkInt32($var); + $this->agent_channel = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CallMetadata::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_CallMetadata::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Medium.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Medium.php new file mode 100644 index 000000000000..21c573d1e54a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Medium.php @@ -0,0 +1,64 @@ +google.cloud.contactcenterinsights.v1.Conversation.Medium + */ +class Medium +{ + /** + * Default value, if unspecified will default to PHONE_CALL. + * + * Generated from protobuf enum MEDIUM_UNSPECIFIED = 0; + */ + const MEDIUM_UNSPECIFIED = 0; + /** + * The format for conversations that took place over the phone. + * + * Generated from protobuf enum PHONE_CALL = 1; + */ + const PHONE_CALL = 1; + /** + * The format for conversations that took place over chat. + * + * Generated from protobuf enum CHAT = 2; + */ + const CHAT = 2; + + private static $valueToName = [ + self::MEDIUM_UNSPECIFIED => 'MEDIUM_UNSPECIFIED', + self::PHONE_CALL => 'PHONE_CALL', + self::CHAT => 'CHAT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Medium::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_Medium::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata.php new file mode 100644 index 000000000000..dc583d1d0951 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata.php @@ -0,0 +1,182 @@ +google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata + */ +class QualityMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + */ + protected $customer_satisfaction_rating = 0; + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + */ + protected $wait_duration = null; + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + */ + protected $menu_path = ''; + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + */ + private $agent_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $customer_satisfaction_rating + * An arbitrary integer value indicating the customer's satisfaction rating. + * @type \Google\Protobuf\Duration $wait_duration + * The amount of time the customer waited to connect with an agent. + * @type string $menu_path + * An arbitrary string value specifying the menu path the customer took. + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo>|\Google\Protobuf\Internal\RepeatedField $agent_info + * Information about agents involved in the call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + * @return int + */ + public function getCustomerSatisfactionRating() + { + return $this->customer_satisfaction_rating; + } + + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + * @param int $var + * @return $this + */ + public function setCustomerSatisfactionRating($var) + { + GPBUtil::checkInt32($var); + $this->customer_satisfaction_rating = $var; + + return $this; + } + + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getWaitDuration() + { + return $this->wait_duration; + } + + public function hasWaitDuration() + { + return isset($this->wait_duration); + } + + public function clearWaitDuration() + { + unset($this->wait_duration); + } + + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWaitDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait_duration = $var; + + return $this; + } + + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + * @return string + */ + public function getMenuPath() + { + return $this->menu_path; + } + + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + * @param string $var + * @return $this + */ + public function setMenuPath($var) + { + GPBUtil::checkString($var, True); + $this->menu_path = $var; + + return $this; + } + + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAgentInfo() + { + return $this->agent_info; + } + + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAgentInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo::class); + $this->agent_info = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(QualityMetadata::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_QualityMetadata::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata/AgentInfo.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata/AgentInfo.php new file mode 100644 index 000000000000..bc96fced0761 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/QualityMetadata/AgentInfo.php @@ -0,0 +1,176 @@ +google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + */ +class AgentInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + */ + protected $agent_id = ''; + /** + * The agent's name. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * A user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + */ + protected $team = ''; + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + */ + protected $disposition_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $agent_id + * A user-specified string representing the agent. + * @type string $display_name + * The agent's name. + * @type string $team + * A user-specified string representing the agent's team. + * @type string $disposition_code + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + + /** + * The agent's name. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The agent's 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 user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + * @return string + */ + public function getTeam() + { + return $this->team; + } + + /** + * A user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + * @param string $var + * @return $this + */ + public function setTeam($var) + { + GPBUtil::checkString($var, True); + $this->team = $var; + + return $this; + } + + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + * @return string + */ + public function getDispositionCode() + { + return $this->disposition_code; + } + + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + * @param string $var + * @return $this + */ + public function setDispositionCode($var) + { + GPBUtil::checkString($var, True); + $this->disposition_code = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AgentInfo::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_QualityMetadata_AgentInfo::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript.php new file mode 100644 index 000000000000..5387fe5354ae --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript.php @@ -0,0 +1,70 @@ +google.cloud.contactcenterinsights.v1.Conversation.Transcript + */ +class Transcript extends \Google\Protobuf\Internal\Message +{ + /** + * A list of sequential transcript segments that comprise the conversation. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment transcript_segments = 1; + */ + private $transcript_segments; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment>|\Google\Protobuf\Internal\RepeatedField $transcript_segments + * A list of sequential transcript segments that comprise the conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A list of sequential transcript segments that comprise the conversation. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment transcript_segments = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTranscriptSegments() + { + return $this->transcript_segments; + } + + /** + * A list of sequential transcript segments that comprise the conversation. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment transcript_segments = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTranscriptSegments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment::class); + $this->transcript_segments = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Transcript::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_Transcript::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment.php new file mode 100644 index 000000000000..1c98cf068b8c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment.php @@ -0,0 +1,406 @@ +google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment + */ +class TranscriptSegment extends \Google\Protobuf\Internal\Message +{ + /** + * The time that the message occurred, if provided. + * + * Generated from protobuf field .google.protobuf.Timestamp message_time = 6; + */ + protected $message_time = null; + /** + * The text of this segment. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * segment. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 2; + */ + protected $confidence = 0.0; + /** + * A list of the word-specific information for each word in the segment. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3; + */ + private $words; + /** + * The language code of this segment as a + * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + * Example: "en-US". + * + * Generated from protobuf field string language_code = 4; + */ + protected $language_code = ''; + /** + * For conversations derived from multi-channel audio, this is the channel + * number corresponding to the audio from that channel. For + * audioChannelCount = N, its output values can range from '1' to 'N'. A + * channel tag of 0 indicates that the audio is mono. + * + * Generated from protobuf field int32 channel_tag = 5; + */ + protected $channel_tag = 0; + /** + * The participant of this segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9; + */ + protected $segment_participant = null; + /** + * CCAI metadata relating to the current transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10; + */ + protected $dialogflow_segment_metadata = null; + /** + * The sentiment for this transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11; + */ + protected $sentiment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $message_time + * The time that the message occurred, if provided. + * @type string $text + * The text of this segment. + * @type float $confidence + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * segment. A default value of 0.0 indicates that the value is unset. + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo>|\Google\Protobuf\Internal\RepeatedField $words + * A list of the word-specific information for each word in the segment. + * @type string $language_code + * The language code of this segment as a + * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + * Example: "en-US". + * @type int $channel_tag + * For conversations derived from multi-channel audio, this is the channel + * number corresponding to the audio from that channel. For + * audioChannelCount = N, its output values can range from '1' to 'N'. A + * channel tag of 0 indicates that the audio is mono. + * @type \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant $segment_participant + * The participant of this segment. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\DialogflowSegmentMetadata $dialogflow_segment_metadata + * CCAI metadata relating to the current transcript segment. + * @type \Google\Cloud\ContactCenterInsights\V1\SentimentData $sentiment + * The sentiment for this transcript segment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The time that the message occurred, if provided. + * + * Generated from protobuf field .google.protobuf.Timestamp message_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getMessageTime() + { + return $this->message_time; + } + + public function hasMessageTime() + { + return isset($this->message_time); + } + + public function clearMessageTime() + { + unset($this->message_time); + } + + /** + * The time that the message occurred, if provided. + * + * Generated from protobuf field .google.protobuf.Timestamp message_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setMessageTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->message_time = $var; + + return $this; + } + + /** + * The text of this segment. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The text of this segment. + * + * 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; + } + + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * segment. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 2; + * @return float + */ + public function getConfidence() + { + return $this->confidence; + } + + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * segment. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 2; + * @param float $var + * @return $this + */ + public function setConfidence($var) + { + GPBUtil::checkFloat($var); + $this->confidence = $var; + + return $this; + } + + /** + * A list of the word-specific information for each word in the segment. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWords() + { + return $this->words; + } + + /** + * A list of the word-specific information for each word in the segment. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo::class); + $this->words = $arr; + + return $this; + } + + /** + * The language code of this segment as a + * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + * Example: "en-US". + * + * Generated from protobuf field string language_code = 4; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The language code of this segment as a + * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + * Example: "en-US". + * + * Generated from protobuf field string language_code = 4; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * For conversations derived from multi-channel audio, this is the channel + * number corresponding to the audio from that channel. For + * audioChannelCount = N, its output values can range from '1' to 'N'. A + * channel tag of 0 indicates that the audio is mono. + * + * Generated from protobuf field int32 channel_tag = 5; + * @return int + */ + public function getChannelTag() + { + return $this->channel_tag; + } + + /** + * For conversations derived from multi-channel audio, this is the channel + * number corresponding to the audio from that channel. For + * audioChannelCount = N, its output values can range from '1' to 'N'. A + * channel tag of 0 indicates that the audio is mono. + * + * Generated from protobuf field int32 channel_tag = 5; + * @param int $var + * @return $this + */ + public function setChannelTag($var) + { + GPBUtil::checkInt32($var); + $this->channel_tag = $var; + + return $this; + } + + /** + * The participant of this segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9; + * @return \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant|null + */ + public function getSegmentParticipant() + { + return $this->segment_participant; + } + + public function hasSegmentParticipant() + { + return isset($this->segment_participant); + } + + public function clearSegmentParticipant() + { + unset($this->segment_participant); + } + + /** + * The participant of this segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9; + * @param \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant $var + * @return $this + */ + public function setSegmentParticipant($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant::class); + $this->segment_participant = $var; + + return $this; + } + + /** + * CCAI metadata relating to the current transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\DialogflowSegmentMetadata|null + */ + public function getDialogflowSegmentMetadata() + { + return $this->dialogflow_segment_metadata; + } + + public function hasDialogflowSegmentMetadata() + { + return isset($this->dialogflow_segment_metadata); + } + + public function clearDialogflowSegmentMetadata() + { + unset($this->dialogflow_segment_metadata); + } + + /** + * CCAI metadata relating to the current transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\DialogflowSegmentMetadata $var + * @return $this + */ + public function setDialogflowSegmentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\DialogflowSegmentMetadata::class); + $this->dialogflow_segment_metadata = $var; + + return $this; + } + + /** + * The sentiment for this transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11; + * @return \Google\Cloud\ContactCenterInsights\V1\SentimentData|null + */ + public function getSentiment() + { + return $this->sentiment; + } + + public function hasSentiment() + { + return isset($this->sentiment); + } + + public function clearSentiment() + { + unset($this->sentiment); + } + + /** + * The sentiment for this transcript segment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11; + * @param \Google\Cloud\ContactCenterInsights\V1\SentimentData $var + * @return $this + */ + public function setSentiment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SentimentData::class); + $this->sentiment = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TranscriptSegment::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_Transcript_TranscriptSegment::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/DialogflowSegmentMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/DialogflowSegmentMetadata.php new file mode 100644 index 000000000000..86b130b36b18 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/DialogflowSegmentMetadata.php @@ -0,0 +1,74 @@ +google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata + */ +class DialogflowSegmentMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the transcript segment was covered under the configured smart + * reply allowlist in Agent Assist. + * + * Generated from protobuf field bool smart_reply_allowlist_covered = 1; + */ + protected $smart_reply_allowlist_covered = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $smart_reply_allowlist_covered + * Whether the transcript segment was covered under the configured smart + * reply allowlist in Agent Assist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Whether the transcript segment was covered under the configured smart + * reply allowlist in Agent Assist. + * + * Generated from protobuf field bool smart_reply_allowlist_covered = 1; + * @return bool + */ + public function getSmartReplyAllowlistCovered() + { + return $this->smart_reply_allowlist_covered; + } + + /** + * Whether the transcript segment was covered under the configured smart + * reply allowlist in Agent Assist. + * + * Generated from protobuf field bool smart_reply_allowlist_covered = 1; + * @param bool $var + * @return $this + */ + public function setSmartReplyAllowlistCovered($var) + { + GPBUtil::checkBool($var); + $this->smart_reply_allowlist_covered = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DialogflowSegmentMetadata::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_Transcript_TranscriptSegment_DialogflowSegmentMetadata::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/WordInfo.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/WordInfo.php new file mode 100644 index 000000000000..8070e337828e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Conversation/Transcript/TranscriptSegment/WordInfo.php @@ -0,0 +1,204 @@ +google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo + */ +class WordInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Time offset of the start of this word relative to the beginning of + * the total conversation. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + */ + protected $start_offset = null; + /** + * Time offset of the end of this word relative to the beginning of the + * total conversation. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + */ + protected $end_offset = null; + /** + * The word itself. Includes punctuation marks that surround the word. + * + * Generated from protobuf field string word = 3; + */ + protected $word = ''; + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * word. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 4; + */ + protected $confidence = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $start_offset + * Time offset of the start of this word relative to the beginning of + * the total conversation. + * @type \Google\Protobuf\Duration $end_offset + * Time offset of the end of this word relative to the beginning of the + * total conversation. + * @type string $word + * The word itself. Includes punctuation marks that surround the word. + * @type float $confidence + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * word. A default value of 0.0 indicates that the value is unset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Time offset of the start of this word relative to the beginning of + * the total conversation. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getStartOffset() + { + return $this->start_offset; + } + + public function hasStartOffset() + { + return isset($this->start_offset); + } + + public function clearStartOffset() + { + unset($this->start_offset); + } + + /** + * Time offset of the start of this word relative to the beginning of + * the total conversation. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setStartOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->start_offset = $var; + + return $this; + } + + /** + * Time offset of the end of this word relative to the beginning of the + * total conversation. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getEndOffset() + { + return $this->end_offset; + } + + public function hasEndOffset() + { + return isset($this->end_offset); + } + + public function clearEndOffset() + { + unset($this->end_offset); + } + + /** + * Time offset of the end of this word relative to the beginning of the + * total conversation. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setEndOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->end_offset = $var; + + return $this; + } + + /** + * The word itself. Includes punctuation marks that surround the word. + * + * Generated from protobuf field string word = 3; + * @return string + */ + public function getWord() + { + return $this->word; + } + + /** + * The word itself. Includes punctuation marks that surround the word. + * + * Generated from protobuf field string word = 3; + * @param string $var + * @return $this + */ + public function setWord($var) + { + GPBUtil::checkString($var, True); + $this->word = $var; + + return $this; + } + + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * word. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 4; + * @return float + */ + public function getConfidence() + { + return $this->confidence; + } + + /** + * A confidence estimate between 0.0 and 1.0 of the fidelity of this + * word. A default value of 0.0 indicates that the value is unset. + * + * Generated from protobuf field float confidence = 4; + * @param float $var + * @return $this + */ + public function setConfidence($var) + { + GPBUtil::checkFloat($var); + $this->confidence = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WordInfo::class, \Google\Cloud\ContactCenterInsights\V1\Conversation_Transcript_TranscriptSegment_WordInfo::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationDataSource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationDataSource.php new file mode 100644 index 000000000000..13fa956a91a1 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationDataSource.php @@ -0,0 +1,108 @@ +google.cloud.contactcenterinsights.v1.ConversationDataSource + */ +class ConversationDataSource extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\GcsSource $gcs_source + * A Cloud Storage location specification for the audio and transcript. + * @type \Google\Cloud\ContactCenterInsights\V1\DialogflowSource $dialogflow_source + * The source when the conversation comes from Dialogflow. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A Cloud Storage location specification for the audio and transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.GcsSource gcs_source = 1; + * @return \Google\Cloud\ContactCenterInsights\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->readOneof(1); + } + + public function hasGcsSource() + { + return $this->hasOneof(1); + } + + /** + * A Cloud Storage location specification for the audio and transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.GcsSource gcs_source = 1; + * @param \Google\Cloud\ContactCenterInsights\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\GcsSource::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The source when the conversation comes from Dialogflow. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DialogflowSource dialogflow_source = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\DialogflowSource|null + */ + public function getDialogflowSource() + { + return $this->readOneof(3); + } + + public function hasDialogflowSource() + { + return $this->hasOneof(3); + } + + /** + * The source when the conversation comes from Dialogflow. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DialogflowSource dialogflow_source = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\DialogflowSource $var + * @return $this + */ + public function setDialogflowSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\DialogflowSource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSentiment.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSentiment.php new file mode 100644 index 000000000000..c716a63ac554 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSentiment.php @@ -0,0 +1,111 @@ +google.cloud.contactcenterinsights.v1.ConversationLevelSentiment + */ +class ConversationLevelSentiment extends \Google\Protobuf\Internal\Message +{ + /** + * The channel of the audio that the data applies to. + * + * Generated from protobuf field int32 channel_tag = 1; + */ + protected $channel_tag = 0; + /** + * Data specifying sentiment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2; + */ + protected $sentiment_data = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel_tag + * The channel of the audio that the data applies to. + * @type \Google\Cloud\ContactCenterInsights\V1\SentimentData $sentiment_data + * Data specifying sentiment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The channel of the audio that the data applies to. + * + * Generated from protobuf field int32 channel_tag = 1; + * @return int + */ + public function getChannelTag() + { + return $this->channel_tag; + } + + /** + * The channel of the audio that the data applies to. + * + * Generated from protobuf field int32 channel_tag = 1; + * @param int $var + * @return $this + */ + public function setChannelTag($var) + { + GPBUtil::checkInt32($var); + $this->channel_tag = $var; + + return $this; + } + + /** + * Data specifying sentiment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\SentimentData|null + */ + public function getSentimentData() + { + return $this->sentiment_data; + } + + public function hasSentimentData() + { + return isset($this->sentiment_data); + } + + public function clearSentimentData() + { + unset($this->sentiment_data); + } + + /** + * Data specifying sentiment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\SentimentData $var + * @return $this + */ + public function setSentimentData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SentimentData::class); + $this->sentiment_data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSilence.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSilence.php new file mode 100644 index 000000000000..859ffc656498 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationLevelSilence.php @@ -0,0 +1,111 @@ +google.cloud.contactcenterinsights.v1.ConversationLevelSilence + */ +class ConversationLevelSilence extends \Google\Protobuf\Internal\Message +{ + /** + * Amount of time calculated to be in silence. + * + * Generated from protobuf field .google.protobuf.Duration silence_duration = 1; + */ + protected $silence_duration = null; + /** + * Percentage of the total conversation spent in silence. + * + * Generated from protobuf field float silence_percentage = 2; + */ + protected $silence_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $silence_duration + * Amount of time calculated to be in silence. + * @type float $silence_percentage + * Percentage of the total conversation spent in silence. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Amount of time calculated to be in silence. + * + * Generated from protobuf field .google.protobuf.Duration silence_duration = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getSilenceDuration() + { + return $this->silence_duration; + } + + public function hasSilenceDuration() + { + return isset($this->silence_duration); + } + + public function clearSilenceDuration() + { + unset($this->silence_duration); + } + + /** + * Amount of time calculated to be in silence. + * + * Generated from protobuf field .google.protobuf.Duration silence_duration = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSilenceDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->silence_duration = $var; + + return $this; + } + + /** + * Percentage of the total conversation spent in silence. + * + * Generated from protobuf field float silence_percentage = 2; + * @return float + */ + public function getSilencePercentage() + { + return $this->silence_percentage; + } + + /** + * Percentage of the total conversation spent in silence. + * + * Generated from protobuf field float silence_percentage = 2; + * @param float $var + * @return $this + */ + public function setSilencePercentage($var) + { + GPBUtil::checkFloat($var); + $this->silence_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant.php new file mode 100644 index 000000000000..88a7157efd55 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant.php @@ -0,0 +1,226 @@ +google.cloud.contactcenterinsights.v1.ConversationParticipant + */ +class ConversationParticipant extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. Use `dialogflow_participant_name` instead. + * The name of the Dialogflow participant. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * + * Generated from protobuf field string dialogflow_participant = 1 [deprecated = true]; + * @deprecated + */ + protected $dialogflow_participant = ''; + /** + * Obfuscated user ID from Dialogflow. + * + * Generated from protobuf field string obfuscated_external_user_id = 3; + */ + protected $obfuscated_external_user_id = ''; + /** + * The role of the participant. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2; + */ + protected $role = 0; + protected $participant; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dialogflow_participant_name + * The name of the participant provided by Dialogflow. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * @type string $user_id + * A user-specified ID representing the participant. + * @type string $dialogflow_participant + * Deprecated. Use `dialogflow_participant_name` instead. + * The name of the Dialogflow participant. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * @type string $obfuscated_external_user_id + * Obfuscated user ID from Dialogflow. + * @type int $role + * The role of the participant. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The name of the participant provided by Dialogflow. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * + * Generated from protobuf field string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { + * @return string + */ + public function getDialogflowParticipantName() + { + return $this->readOneof(5); + } + + public function hasDialogflowParticipantName() + { + return $this->hasOneof(5); + } + + /** + * The name of the participant provided by Dialogflow. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * + * Generated from protobuf field string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDialogflowParticipantName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * A user-specified ID representing the participant. + * + * Generated from protobuf field string user_id = 6; + * @return string + */ + public function getUserId() + { + return $this->readOneof(6); + } + + public function hasUserId() + { + return $this->hasOneof(6); + } + + /** + * A user-specified ID representing the participant. + * + * Generated from protobuf field string user_id = 6; + * @param string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Deprecated. Use `dialogflow_participant_name` instead. + * The name of the Dialogflow participant. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * + * Generated from protobuf field string dialogflow_participant = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getDialogflowParticipant() + { + @trigger_error('dialogflow_participant is deprecated.', E_USER_DEPRECATED); + return $this->dialogflow_participant; + } + + /** + * Deprecated. Use `dialogflow_participant_name` instead. + * The name of the Dialogflow participant. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * + * Generated from protobuf field string dialogflow_participant = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setDialogflowParticipant($var) + { + @trigger_error('dialogflow_participant is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->dialogflow_participant = $var; + + return $this; + } + + /** + * Obfuscated user ID from Dialogflow. + * + * Generated from protobuf field string obfuscated_external_user_id = 3; + * @return string + */ + public function getObfuscatedExternalUserId() + { + return $this->obfuscated_external_user_id; + } + + /** + * Obfuscated user ID from Dialogflow. + * + * Generated from protobuf field string obfuscated_external_user_id = 3; + * @param string $var + * @return $this + */ + public function setObfuscatedExternalUserId($var) + { + GPBUtil::checkString($var, True); + $this->obfuscated_external_user_id = $var; + + return $this; + } + + /** + * The role of the participant. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2; + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * The role of the participant. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2; + * @param int $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant\Role::class); + $this->role = $var; + + return $this; + } + + /** + * @return string + */ + public function getParticipant() + { + return $this->whichOneof("participant"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant/Role.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant/Role.php new file mode 100644 index 000000000000..e90baab44257 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationParticipant/Role.php @@ -0,0 +1,78 @@ +google.cloud.contactcenterinsights.v1.ConversationParticipant.Role + */ +class Role +{ + /** + * Participant's role is not set. + * + * Generated from protobuf enum ROLE_UNSPECIFIED = 0; + */ + const ROLE_UNSPECIFIED = 0; + /** + * Participant is a human agent. + * + * Generated from protobuf enum HUMAN_AGENT = 1; + */ + const HUMAN_AGENT = 1; + /** + * Participant is an automated agent. + * + * Generated from protobuf enum AUTOMATED_AGENT = 2; + */ + const AUTOMATED_AGENT = 2; + /** + * Participant is an end user who conversed with the contact center. + * + * Generated from protobuf enum END_USER = 3; + */ + const END_USER = 3; + /** + * Participant is either a human or automated agent. + * + * Generated from protobuf enum ANY_AGENT = 4; + */ + const ANY_AGENT = 4; + + private static $valueToName = [ + self::ROLE_UNSPECIFIED => 'ROLE_UNSPECIFIED', + self::HUMAN_AGENT => 'HUMAN_AGENT', + self::AUTOMATED_AGENT => 'AUTOMATED_AGENT', + self::END_USER => 'END_USER', + self::ANY_AGENT => 'ANY_AGENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Role::class, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant_Role::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationSummarizationSuggestionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationSummarizationSuggestionData.php new file mode 100644 index 000000000000..d4f5e94ae1eb --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationSummarizationSuggestionData.php @@ -0,0 +1,265 @@ +google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData + */ +class ConversationSummarizationSuggestionData extends \Google\Protobuf\Internal\Message +{ + /** + * The summarization content that is concatenated into one string. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The summarization content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 5; + */ + private $text_sections; + /** + * The confidence score of the summarization. + * + * Generated from protobuf field float confidence = 2; + */ + protected $confidence = 0.0; + /** + * A map that contains metadata about the summarization and the document + * from which it originates. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string answer_record = 4; + */ + protected $answer_record = ''; + /** + * The name of the model that generates this summary. + * Format: + * projects/{project}/locations/{location}/conversationModels/{conversation_model} + * + * Generated from protobuf field string conversation_model = 6; + */ + protected $conversation_model = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The summarization content that is concatenated into one string. + * @type array|\Google\Protobuf\Internal\MapField $text_sections + * The summarization content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * @type float $confidence + * The confidence score of the summarization. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * A map that contains metadata about the summarization and the document + * from which it originates. + * @type string $answer_record + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * @type string $conversation_model + * The name of the model that generates this summary. + * Format: + * projects/{project}/locations/{location}/conversationModels/{conversation_model} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The summarization content that is concatenated into one string. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The summarization content that is concatenated into one string. + * + * 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 summarization content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTextSections() + { + return $this->text_sections; + } + + /** + * The summarization content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTextSections($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->text_sections = $arr; + + return $this; + } + + /** + * The confidence score of the summarization. + * + * Generated from protobuf field float confidence = 2; + * @return float + */ + public function getConfidence() + { + return $this->confidence; + } + + /** + * The confidence score of the summarization. + * + * Generated from protobuf field float confidence = 2; + * @param float $var + * @return $this + */ + public function setConfidence($var) + { + GPBUtil::checkFloat($var); + $this->confidence = $var; + + return $this; + } + + /** + * A map that contains metadata about the summarization and the document + * from which it originates. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * A map that contains metadata about the summarization and the document + * from which it originates. + * + * Generated from protobuf field map metadata = 3; + * @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; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string answer_record = 4; + * @return string + */ + public function getAnswerRecord() + { + return $this->answer_record; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string answer_record = 4; + * @param string $var + * @return $this + */ + public function setAnswerRecord($var) + { + GPBUtil::checkString($var, True); + $this->answer_record = $var; + + return $this; + } + + /** + * The name of the model that generates this summary. + * Format: + * projects/{project}/locations/{location}/conversationModels/{conversation_model} + * + * Generated from protobuf field string conversation_model = 6; + * @return string + */ + public function getConversationModel() + { + return $this->conversation_model; + } + + /** + * The name of the model that generates this summary. + * Format: + * projects/{project}/locations/{location}/conversationModels/{conversation_model} + * + * Generated from protobuf field string conversation_model = 6; + * @param string $var + * @return $this + */ + public function setConversationModel($var) + { + GPBUtil::checkString($var, True); + $this->conversation_model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationView.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationView.php new file mode 100644 index 000000000000..de0d08f51b29 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ConversationView.php @@ -0,0 +1,63 @@ +google.cloud.contactcenterinsights.v1.ConversationView + */ +class ConversationView +{ + /** + * The conversation view is not specified. + * * Defaults to `FULL` in `GetConversationRequest`. + * * Defaults to `BASIC` in `ListConversationsRequest`. + * + * Generated from protobuf enum CONVERSATION_VIEW_UNSPECIFIED = 0; + */ + const CONVERSATION_VIEW_UNSPECIFIED = 0; + /** + * Populates all fields in the conversation. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + /** + * Populates all fields in the conversation except the transcript. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + + private static $valueToName = [ + self::CONVERSATION_VIEW_UNSPECIFIED => 'CONVERSATION_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); + } +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisOperationMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisOperationMetadata.php new file mode 100644 index 000000000000..7afe57a43f92 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisOperationMetadata.php @@ -0,0 +1,199 @@ +google.cloud.contactcenterinsights.v1.CreateAnalysisOperationMetadata + */ +class CreateAnalysisOperationMetadata 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. The Conversation that this Analysis Operation belongs to. + * + * Generated from protobuf field string conversation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $conversation = ''; + /** + * Output only. The annotator selector used for the analysis (if any). + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $annotator_selector = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $conversation + * Output only. The Conversation that this Analysis Operation belongs to. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $annotator_selector + * Output only. The annotator selector used for the analysis (if any). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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. The Conversation that this Analysis Operation belongs to. + * + * Generated from protobuf field string conversation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getConversation() + { + return $this->conversation; + } + + /** + * Output only. The Conversation that this Analysis Operation belongs to. + * + * Generated from protobuf field string conversation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkString($var, True); + $this->conversation = $var; + + return $this; + } + + /** + * Output only. The annotator selector used for the analysis (if any). + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector|null + */ + public function getAnnotatorSelector() + { + return $this->annotator_selector; + } + + public function hasAnnotatorSelector() + { + return isset($this->annotator_selector); + } + + public function clearAnnotatorSelector() + { + unset($this->annotator_selector); + } + + /** + * Output only. The annotator selector used for the analysis (if any). + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $var + * @return $this + */ + public function setAnnotatorSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector::class); + $this->annotator_selector = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisRequest.php new file mode 100644 index 000000000000..08fb29f0ae68 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateAnalysisRequest.php @@ -0,0 +1,127 @@ +google.cloud.contactcenterinsights.v1.CreateAnalysisRequest + */ +class CreateAnalysisRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the analysis. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The analysis to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis analysis = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $analysis = null; + + /** + * @param string $parent Required. The parent resource of the analysis. Please see + * {@see ContactCenterInsightsClient::conversationName()} for help formatting this field. + * @param \Google\Cloud\ContactCenterInsights\V1\Analysis $analysis Required. The analysis to create. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CreateAnalysisRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\Analysis $analysis): self + { + return (new self()) + ->setParent($parent) + ->setAnalysis($analysis); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the analysis. + * @type \Google\Cloud\ContactCenterInsights\V1\Analysis $analysis + * Required. The analysis to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the analysis. + * + * Generated 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 of the analysis. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 analysis to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis analysis = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Analysis|null + */ + public function getAnalysis() + { + return $this->analysis; + } + + public function hasAnalysis() + { + return isset($this->analysis); + } + + public function clearAnalysis() + { + unset($this->analysis); + } + + /** + * Required. The analysis to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Analysis analysis = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Analysis $var + * @return $this + */ + public function setAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Analysis::class); + $this->analysis = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateConversationRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateConversationRequest.php new file mode 100644 index 000000000000..b0ee61eaae6c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateConversationRequest.php @@ -0,0 +1,184 @@ +google.cloud.contactcenterinsights.v1.CreateConversationRequest + */ +class CreateConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversation = null; + /** + * A unique ID for the new conversation. This ID will become the final + * component of the conversation's resource name. If no ID is specified, a + * server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3; + */ + protected $conversation_id = ''; + + /** + * @param string $parent Required. The parent resource of the conversation. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation Required. The conversation resource to create. + * @param string $conversationId A unique ID for the new conversation. This ID will become the final + * component of the conversation's resource name. If no ID is specified, a + * server-generated ID will be used. + * + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * @return \Google\Cloud\ContactCenterInsights\V1\CreateConversationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation, string $conversationId): self + { + return (new self()) + ->setParent($parent) + ->setConversation($conversation) + ->setConversationId($conversationId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the conversation. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation + * Required. The conversation resource to create. + * @type string $conversation_id + * A unique ID for the new conversation. This ID will become the final + * component of the conversation's resource name. If no ID is specified, a + * server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the conversation. + * + * Generated 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 of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation|null + */ + public function getConversation() + { + return $this->conversation; + } + + public function hasConversation() + { + return isset($this->conversation); + } + + public function clearConversation() + { + unset($this->conversation); + } + + /** + * Required. The conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation::class); + $this->conversation = $var; + + return $this; + } + + /** + * A unique ID for the new conversation. This ID will become the final + * component of the conversation's resource name. If no ID is specified, a + * server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * A unique ID for the new conversation. This ID will become the final + * component of the conversation's resource name. If no ID is specified, a + * server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelMetadata.php new file mode 100644 index 000000000000..17845309a6c8 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.CreateIssueModelMetadata + */ +class CreateIssueModelMetadata 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; + /** + * The original request for creation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CreateIssueModelRequest request = 3; + */ + protected $request = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\CreateIssueModelRequest $request + * The original request for creation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for creation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CreateIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\CreateIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for creation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.CreateIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\CreateIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\CreateIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelRequest.php new file mode 100644 index 000000000000..8b1409a079c1 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateIssueModelRequest.php @@ -0,0 +1,127 @@ +google.cloud.contactcenterinsights.v1.CreateIssueModelRequest + */ +class CreateIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The issue model to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $issue_model = null; + + /** + * @param string $parent Required. The parent resource of the issue model. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel $issueModel Required. The issue model to create. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CreateIssueModelRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\IssueModel $issueModel): self + { + return (new self()) + ->setParent($parent) + ->setIssueModel($issueModel); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the issue model. + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModel $issue_model + * Required. The issue model to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the issue model. + * + * Generated 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 of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 issue model to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModel|null + */ + public function getIssueModel() + { + return $this->issue_model; + } + + public function hasIssueModel() + { + return isset($this->issue_model); + } + + public function clearIssueModel() + { + unset($this->issue_model); + } + + /** + * Required. The issue model to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel $var + * @return $this + */ + public function setIssueModel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModel::class); + $this->issue_model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreatePhraseMatcherRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreatePhraseMatcherRequest.php new file mode 100644 index 000000000000..e92bfabbf423 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreatePhraseMatcherRequest.php @@ -0,0 +1,142 @@ +google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest + */ +class CreatePhraseMatcherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The phrase matcher resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phrase_matcher = null; + + /** + * @param string $parent Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` + * Please see {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phraseMatcher Required. The phrase matcher resource to create. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CreatePhraseMatcherRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phraseMatcher): self + { + return (new self()) + ->setParent($parent) + ->setPhraseMatcher($phraseMatcher); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` + * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phrase_matcher + * Required. The phrase matcher resource to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `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 resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `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 phrase matcher resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher|null + */ + public function getPhraseMatcher() + { + return $this->phrase_matcher; + } + + public function hasPhraseMatcher() + { + return isset($this->phrase_matcher); + } + + public function clearPhraseMatcher() + { + unset($this->phrase_matcher); + } + + /** + * Required. The phrase matcher resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $var + * @return $this + */ + public function setPhraseMatcher($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher::class); + $this->phrase_matcher = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateViewRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateViewRequest.php new file mode 100644 index 000000000000..f87e03ecb161 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/CreateViewRequest.php @@ -0,0 +1,142 @@ +google.cloud.contactcenterinsights.v1.CreateViewRequest + */ +class CreateViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the view. Required. The location to create + * a view for. + * Format: `projects//locations/` or + * `projects//locations/` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The view resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $view = null; + + /** + * @param string $parent Required. The parent resource of the view. Required. The location to create + * a view for. + * Format: `projects//locations/` or + * `projects//locations/` + * Please see {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param \Google\Cloud\ContactCenterInsights\V1\View $view Required. The view resource to create. + * + * @return \Google\Cloud\ContactCenterInsights\V1\CreateViewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\View $view): self + { + return (new self()) + ->setParent($parent) + ->setView($view); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the view. Required. The location to create + * a view for. + * Format: `projects//locations/` or + * `projects//locations/` + * @type \Google\Cloud\ContactCenterInsights\V1\View $view + * Required. The view resource to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the view. Required. The location to create + * a view for. + * Format: `projects//locations/` or + * `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 resource of the view. Required. The location to create + * a view for. + * Format: `projects//locations/` or + * `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 view resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\View|null + */ + public function getView() + { + return $this->view; + } + + public function hasView() + { + return isset($this->view); + } + + public function clearView() + { + unset($this->view); + } + + /** + * Required. The view resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\View $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\View::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteAnalysisRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteAnalysisRequest.php new file mode 100644 index 000000000000..b8265d5a574d --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteAnalysisRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest + */ +class DeleteAnalysisRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the analysis 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 name of the analysis to delete. Please see + * {@see ContactCenterInsightsClient::analysisName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteAnalysisRequest + * + * @experimental + */ + public static function 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 analysis to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the analysis 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 name of the analysis 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteConversationRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteConversationRequest.php new file mode 100644 index 000000000000..78a161a7339e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteConversationRequest.php @@ -0,0 +1,123 @@ +google.cloud.contactcenterinsights.v1.DeleteConversationRequest + */ +class DeleteConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the conversation to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the conversation to delete. Please see + * {@see ContactCenterInsightsClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteConversationRequest + * + * @experimental + */ + public static function 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 conversation to delete. + * @type bool $force + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the conversation 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 name of the conversation 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; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. + * Otherwise, the request will only succeed if the conversation has no + * analyses. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelMetadata.php new file mode 100644 index 000000000000..87dafed4f5f2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.DeleteIssueModelMetadata + */ +class DeleteIssueModelMetadata 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; + /** + * The original request for deletion. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest request = 3; + */ + protected $request = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelRequest $request + * The original request for deletion. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for deletion. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for deletion. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelRequest.php new file mode 100644 index 000000000000..7c7da6389c8d --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueModelRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest + */ +class DeleteIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the issue model 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 name of the issue model to delete. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelRequest + * + * @experimental + */ + public static function 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 issue model to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the issue model 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 name of the issue model 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueRequest.php new file mode 100644 index 000000000000..8096f2bda03b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteIssueRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeleteIssueRequest + */ +class DeleteIssueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the issue 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 name of the issue to delete. Please see + * {@see ContactCenterInsightsClient::issueName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteIssueRequest + * + * @experimental + */ + public static function 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 issue to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the issue 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 name of the issue 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeletePhraseMatcherRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeletePhraseMatcherRequest.php new file mode 100644 index 000000000000..b3ea8b0caeb4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeletePhraseMatcherRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest + */ +class DeletePhraseMatcherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the phrase matcher 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 name of the phrase matcher to delete. Please see + * {@see ContactCenterInsightsClient::phraseMatcherName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeletePhraseMatcherRequest + * + * @experimental + */ + public static function 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 phrase matcher to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the phrase matcher 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 name of the phrase matcher 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteViewRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteViewRequest.php new file mode 100644 index 000000000000..2980595cc4e5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeleteViewRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeleteViewRequest + */ +class DeleteViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the view 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 name of the view to delete. Please see + * {@see ContactCenterInsightsClient::viewName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeleteViewRequest + * + * @experimental + */ + public static function 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 view to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the view 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 name of the view 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelMetadata.php new file mode 100644 index 000000000000..b9fc941ac602 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.DeployIssueModelMetadata + */ +class DeployIssueModelMetadata 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; + /** + * The original request for deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeployIssueModelRequest request = 3; + */ + protected $request = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\DeployIssueModelRequest $request + * The original request for deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeployIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\DeployIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for deployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DeployIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\DeployIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\DeployIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelRequest.php new file mode 100644 index 000000000000..05417f098460 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.DeployIssueModelRequest + */ +class DeployIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The issue model to deploy. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The issue model to deploy. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\DeployIssueModelRequest + * + * @experimental + */ + public static function 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 issue model to deploy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The issue 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. The issue 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; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelResponse.php new file mode 100644 index 000000000000..59ac7be188d0 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DeployIssueModelResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.DeployIssueModelResponse + */ +class DeployIssueModelResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowIntent.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowIntent.php new file mode 100644 index 000000000000..43c3bee200f3 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowIntent.php @@ -0,0 +1,68 @@ +google.cloud.contactcenterinsights.v1.DialogflowIntent + */ +class DialogflowIntent extends \Google\Protobuf\Internal\Message +{ + /** + * The human-readable name of the intent. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The human-readable name of the intent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The human-readable name of the intent. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name of the intent. + * + * 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; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowInteractionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowInteractionData.php new file mode 100644 index 000000000000..c651d75b244f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowInteractionData.php @@ -0,0 +1,109 @@ +google.cloud.contactcenterinsights.v1.DialogflowInteractionData + */ +class DialogflowInteractionData extends \Google\Protobuf\Internal\Message +{ + /** + * The Dialogflow intent resource path. Format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field string dialogflow_intent_id = 1; + */ + protected $dialogflow_intent_id = ''; + /** + * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 + * (completely certain). + * + * Generated from protobuf field float confidence = 2; + */ + protected $confidence = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dialogflow_intent_id + * The Dialogflow intent resource path. Format: + * projects/{project}/agent/{agent}/intents/{intent} + * @type float $confidence + * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 + * (completely certain). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The Dialogflow intent resource path. Format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field string dialogflow_intent_id = 1; + * @return string + */ + public function getDialogflowIntentId() + { + return $this->dialogflow_intent_id; + } + + /** + * The Dialogflow intent resource path. Format: + * projects/{project}/agent/{agent}/intents/{intent} + * + * Generated from protobuf field string dialogflow_intent_id = 1; + * @param string $var + * @return $this + */ + public function setDialogflowIntentId($var) + { + GPBUtil::checkString($var, True); + $this->dialogflow_intent_id = $var; + + return $this; + } + + /** + * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 + * (completely certain). + * + * Generated from protobuf field float confidence = 2; + * @return float + */ + public function getConfidence() + { + return $this->confidence; + } + + /** + * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 + * (completely certain). + * + * Generated from protobuf field float confidence = 2; + * @param float $var + * @return $this + */ + public function setConfidence($var) + { + GPBUtil::checkFloat($var); + $this->confidence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowSource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowSource.php new file mode 100644 index 000000000000..34caa82bc523 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/DialogflowSource.php @@ -0,0 +1,113 @@ +google.cloud.contactcenterinsights.v1.DialogflowSource + */ +class DialogflowSource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the Dialogflow conversation that this conversation + * resource is derived from. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * Generated from protobuf field string dialogflow_conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dialogflow_conversation = ''; + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 3; + */ + protected $audio_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dialogflow_conversation + * Output only. The name of the Dialogflow conversation that this conversation + * resource is derived from. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * @type string $audio_uri + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the Dialogflow conversation that this conversation + * resource is derived from. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * Generated from protobuf field string dialogflow_conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDialogflowConversation() + { + return $this->dialogflow_conversation; + } + + /** + * Output only. The name of the Dialogflow conversation that this conversation + * resource is derived from. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * + * Generated from protobuf field string dialogflow_conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDialogflowConversation($var) + { + GPBUtil::checkString($var, True); + $this->dialogflow_conversation = $var; + + return $this; + } + + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 3; + * @return string + */ + public function getAudioUri() + { + return $this->audio_uri; + } + + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 3; + * @param string $var + * @return $this + */ + public function setAudioUri($var) + { + GPBUtil::checkString($var, True); + $this->audio_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EncryptionSpec.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EncryptionSpec.php new file mode 100644 index 000000000000..d3efccef926d --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EncryptionSpec.php @@ -0,0 +1,126 @@ +google.cloud.contactcenterinsights.v1.EncryptionSpec + */ +class EncryptionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the encryption key specification resource. + * Format: + * projects/{project}/locations/{location}/encryptionSpec + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Required. The name of customer-managed encryption key that is used to + * secure a resource and its sub-resources. If empty, the resource is secured + * by the default Google encryption key. Only the key in the same location as + * this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the encryption key specification resource. + * Format: + * projects/{project}/locations/{location}/encryptionSpec + * @type string $kms_key + * Required. The name of customer-managed encryption key that is used to + * secure a resource and its sub-resources. If empty, the resource is secured + * by the default Google encryption key. Only the key in the same location as + * this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the encryption key specification resource. + * Format: + * projects/{project}/locations/{location}/encryptionSpec + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. + * Format: + * projects/{project}/locations/{location}/encryptionSpec + * + * 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; + } + + /** + * Required. The name of customer-managed encryption key that is used to + * secure a resource and its sub-resources. If empty, the resource is secured + * by the default Google encryption key. Only the key in the same location as + * this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKey() + { + return $this->kms_key; + } + + /** + * Required. The name of customer-managed encryption key that is used to + * secure a resource and its sub-resources. If empty, the resource is secured + * by the default Google encryption key. Only the key in the same location as + * this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity.php new file mode 100644 index 000000000000..0d8782c3a647 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity.php @@ -0,0 +1,243 @@ +google.cloud.contactcenterinsights.v1.Entity + */ +class Entity extends \Google\Protobuf\Internal\Message +{ + /** + * The representative name for the entity. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * The entity type. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Entity.Type type = 2; + */ + protected $type = 0; + /** + * Metadata associated with the entity. + * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) + * and Knowledge Graph MID (`mid`), if they are available. For the metadata + * associated with other entity types, see the Type table below. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + /** + * The salience score associated with the entity in the [0, 1.0] range. + * The salience score for an entity provides information about the + * importance or centrality of that entity to the entire document text. + * Scores closer to 0 are less salient, while scores closer to 1.0 are highly + * salient. + * + * Generated from protobuf field float salience = 4; + */ + protected $salience = 0.0; + /** + * The aggregate sentiment expressed for this entity in the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5; + */ + protected $sentiment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The representative name for the entity. + * @type int $type + * The entity type. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Metadata associated with the entity. + * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) + * and Knowledge Graph MID (`mid`), if they are available. For the metadata + * associated with other entity types, see the Type table below. + * @type float $salience + * The salience score associated with the entity in the [0, 1.0] range. + * The salience score for an entity provides information about the + * importance or centrality of that entity to the entire document text. + * Scores closer to 0 are less salient, while scores closer to 1.0 are highly + * salient. + * @type \Google\Cloud\ContactCenterInsights\V1\SentimentData $sentiment + * The aggregate sentiment expressed for this entity in the conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The representative name for the entity. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The representative name for the entity. + * + * 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 entity type. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Entity.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The entity type. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Entity.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\Entity\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Metadata associated with the entity. + * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) + * and Knowledge Graph MID (`mid`), if they are available. For the metadata + * associated with other entity types, see the Type table below. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Metadata associated with the entity. + * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) + * and Knowledge Graph MID (`mid`), if they are available. For the metadata + * associated with other entity types, see the Type table below. + * + * Generated from protobuf field map metadata = 3; + * @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; + } + + /** + * The salience score associated with the entity in the [0, 1.0] range. + * The salience score for an entity provides information about the + * importance or centrality of that entity to the entire document text. + * Scores closer to 0 are less salient, while scores closer to 1.0 are highly + * salient. + * + * Generated from protobuf field float salience = 4; + * @return float + */ + public function getSalience() + { + return $this->salience; + } + + /** + * The salience score associated with the entity in the [0, 1.0] range. + * The salience score for an entity provides information about the + * importance or centrality of that entity to the entire document text. + * Scores closer to 0 are less salient, while scores closer to 1.0 are highly + * salient. + * + * Generated from protobuf field float salience = 4; + * @param float $var + * @return $this + */ + public function setSalience($var) + { + GPBUtil::checkFloat($var); + $this->salience = $var; + + return $this; + } + + /** + * The aggregate sentiment expressed for this entity in the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5; + * @return \Google\Cloud\ContactCenterInsights\V1\SentimentData|null + */ + public function getSentiment() + { + return $this->sentiment; + } + + public function hasSentiment() + { + return isset($this->sentiment); + } + + public function clearSentiment() + { + unset($this->sentiment); + } + + /** + * The aggregate sentiment expressed for this entity in the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5; + * @param \Google\Cloud\ContactCenterInsights\V1\SentimentData $var + * @return $this + */ + public function setSentiment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SentimentData::class); + $this->sentiment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity/Type.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity/Type.php new file mode 100644 index 000000000000..c5720f6505ae --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Entity/Type.php @@ -0,0 +1,163 @@ +google.cloud.contactcenterinsights.v1.Entity.Type + */ +class Type +{ + /** + * Unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Person. + * + * Generated from protobuf enum PERSON = 1; + */ + const PERSON = 1; + /** + * Location. + * + * Generated from protobuf enum LOCATION = 2; + */ + const LOCATION = 2; + /** + * Organization. + * + * Generated from protobuf enum ORGANIZATION = 3; + */ + const ORGANIZATION = 3; + /** + * Event. + * + * Generated from protobuf enum EVENT = 4; + */ + const EVENT = 4; + /** + * Artwork. + * + * Generated from protobuf enum WORK_OF_ART = 5; + */ + const WORK_OF_ART = 5; + /** + * Consumer product. + * + * Generated from protobuf enum CONSUMER_GOOD = 6; + */ + const CONSUMER_GOOD = 6; + /** + * Other types of entities. + * + * Generated from protobuf enum OTHER = 7; + */ + const OTHER = 7; + /** + * Phone number. + * The metadata lists the phone number (formatted according to local + * convention), plus whichever additional elements appear in the text: + * * `number` - The actual number, broken down into sections according to + * local convention. + * * `national_prefix` - Country code, if detected. + * * `area_code` - Region or area code, if detected. + * * `extension` - Phone extension (to be dialed after connection), if + * detected. + * + * Generated from protobuf enum PHONE_NUMBER = 9; + */ + const PHONE_NUMBER = 9; + /** + * Address. + * The metadata identifies the street number and locality plus whichever + * additional elements appear in the text: + * * `street_number` - Street number. + * * `locality` - City or town. + * * `street_name` - Street/route name, if detected. + * * `postal_code` - Postal code, if detected. + * * `country` - Country, if detected. + * * `broad_region` - Administrative area, such as the state, if detected. + * * `narrow_region` - Smaller administrative area, such as county, if + * detected. + * * `sublocality` - Used in Asian addresses to demark a district within a + * city, if detected. + * + * Generated from protobuf enum ADDRESS = 10; + */ + const ADDRESS = 10; + /** + * Date. + * The metadata identifies the components of the date: + * * `year` - Four digit year, if detected. + * * `month` - Two digit month number, if detected. + * * `day` - Two digit day number, if detected. + * + * Generated from protobuf enum DATE = 11; + */ + const DATE = 11; + /** + * Number. + * The metadata is the number itself. + * + * Generated from protobuf enum NUMBER = 12; + */ + const NUMBER = 12; + /** + * Price. + * The metadata identifies the `value` and `currency`. + * + * Generated from protobuf enum PRICE = 13; + */ + const PRICE = 13; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::PERSON => 'PERSON', + self::LOCATION => 'LOCATION', + self::ORGANIZATION => 'ORGANIZATION', + self::EVENT => 'EVENT', + self::WORK_OF_ART => 'WORK_OF_ART', + self::CONSUMER_GOOD => 'CONSUMER_GOOD', + self::OTHER => 'OTHER', + self::PHONE_NUMBER => 'PHONE_NUMBER', + self::ADDRESS => 'ADDRESS', + self::DATE => 'DATE', + self::NUMBER => 'NUMBER', + self::PRICE => 'PRICE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\ContactCenterInsights\V1\Entity_Type::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData.php new file mode 100644 index 000000000000..eba6ca9bc46f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData.php @@ -0,0 +1,150 @@ +google.cloud.contactcenterinsights.v1.EntityMentionData + */ +class EntityMentionData extends \Google\Protobuf\Internal\Message +{ + /** + * The key of this entity in conversation entities. + * Can be used to retrieve the exact `Entity` this mention is attached to. + * + * Generated from protobuf field string entity_unique_id = 1; + */ + protected $entity_unique_id = ''; + /** + * The type of the entity mention. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2; + */ + protected $type = 0; + /** + * Sentiment expressed for this mention of the entity. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; + */ + protected $sentiment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity_unique_id + * The key of this entity in conversation entities. + * Can be used to retrieve the exact `Entity` this mention is attached to. + * @type int $type + * The type of the entity mention. + * @type \Google\Cloud\ContactCenterInsights\V1\SentimentData $sentiment + * Sentiment expressed for this mention of the entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The key of this entity in conversation entities. + * Can be used to retrieve the exact `Entity` this mention is attached to. + * + * Generated from protobuf field string entity_unique_id = 1; + * @return string + */ + public function getEntityUniqueId() + { + return $this->entity_unique_id; + } + + /** + * The key of this entity in conversation entities. + * Can be used to retrieve the exact `Entity` this mention is attached to. + * + * Generated from protobuf field string entity_unique_id = 1; + * @param string $var + * @return $this + */ + public function setEntityUniqueId($var) + { + GPBUtil::checkString($var, True); + $this->entity_unique_id = $var; + + return $this; + } + + /** + * The type of the entity mention. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the entity mention. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\EntityMentionData\MentionType::class); + $this->type = $var; + + return $this; + } + + /** + * Sentiment expressed for this mention of the entity. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\SentimentData|null + */ + public function getSentiment() + { + return $this->sentiment; + } + + public function hasSentiment() + { + return isset($this->sentiment); + } + + public function clearSentiment() + { + unset($this->sentiment); + } + + /** + * Sentiment expressed for this mention of the entity. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SentimentData sentiment = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\SentimentData $var + * @return $this + */ + public function setSentiment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SentimentData::class); + $this->sentiment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData/MentionType.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData/MentionType.php new file mode 100644 index 000000000000..307fbc01afa5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/EntityMentionData/MentionType.php @@ -0,0 +1,64 @@ +google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType + */ +class MentionType +{ + /** + * Unspecified. + * + * Generated from protobuf enum MENTION_TYPE_UNSPECIFIED = 0; + */ + const MENTION_TYPE_UNSPECIFIED = 0; + /** + * Proper noun. + * + * Generated from protobuf enum PROPER = 1; + */ + const PROPER = 1; + /** + * Common noun (or noun compound). + * + * Generated from protobuf enum COMMON = 2; + */ + const COMMON = 2; + + private static $valueToName = [ + self::MENTION_TYPE_UNSPECIFIED => 'MENTION_TYPE_UNSPECIFIED', + self::PROPER => 'PROPER', + self::COMMON => 'COMMON', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MentionType::class, \Google\Cloud\ContactCenterInsights\V1\EntityMentionData_MentionType::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExactMatchConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExactMatchConfig.php new file mode 100644 index 000000000000..f9f8af221b17 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExactMatchConfig.php @@ -0,0 +1,67 @@ +google.cloud.contactcenterinsights.v1.ExactMatchConfig + */ +class ExactMatchConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to consider case sensitivity when performing an exact match. + * + * Generated from protobuf field bool case_sensitive = 1; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $case_sensitive + * Whether to consider case sensitivity when performing an exact match. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Whether to consider case sensitivity when performing an exact match. + * + * Generated from protobuf field bool case_sensitive = 1; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Whether to consider case sensitivity when performing an exact match. + * + * Generated from protobuf field bool case_sensitive = 1; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataMetadata.php new file mode 100644 index 000000000000..f4808758212b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataMetadata.php @@ -0,0 +1,203 @@ +google.cloud.contactcenterinsights.v1.ExportInsightsDataMetadata + */ +class ExportInsightsDataMetadata 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; + /** + * The original request for export. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest request = 3; + */ + protected $request = null; + /** + * Partial errors during export operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + */ + private $partial_errors; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest $request + * The original request for export. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Partial errors during export operation that might cause the operation + * output to be incomplete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for export. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for export. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest::class); + $this->request = $var; + + return $this; + } + + /** + * Partial errors during export operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Partial errors during export operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest.php new file mode 100644 index 000000000000..6e4f506ab972 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest.php @@ -0,0 +1,237 @@ +google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest + */ +class ExportInsightsDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource to export data from. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * A filter to reduce results to a specific subset. Useful for exporting + * conversations with specific properties. + * + * Generated from protobuf field string filter = 3; + */ + protected $filter = ''; + /** + * A fully qualified KMS key name for BigQuery tables protected by CMEK. + * Format: + * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version} + * + * Generated from protobuf field string kms_key = 4; + */ + protected $kms_key = ''; + /** + * Options for what to do if the destination table already exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition write_disposition = 5; + */ + protected $write_disposition = 0; + protected $destination; + + /** + * @param string $parent Required. The parent resource to export data from. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest + * + * @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 \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\BigQueryDestination $big_query_destination + * Specified if sink is a BigQuery table. + * @type string $parent + * Required. The parent resource to export data from. + * @type string $filter + * A filter to reduce results to a specific subset. Useful for exporting + * conversations with specific properties. + * @type string $kms_key + * A fully qualified KMS key name for BigQuery tables protected by CMEK. + * Format: + * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version} + * @type int $write_disposition + * Options for what to do if the destination table already exists. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Specified if sink is a BigQuery table. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination big_query_destination = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\BigQueryDestination|null + */ + public function getBigQueryDestination() + { + return $this->readOneof(2); + } + + public function hasBigQueryDestination() + { + return $this->hasOneof(2); + } + + /** + * Specified if sink is a BigQuery table. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination big_query_destination = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\BigQueryDestination $var + * @return $this + */ + public function setBigQueryDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\BigQueryDestination::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Required. The parent resource to export data from. + * + * Generated 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 to export data from. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 filter to reduce results to a specific subset. Useful for exporting + * conversations with specific properties. + * + * Generated from protobuf field string filter = 3; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for exporting + * conversations with specific properties. + * + * 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; + } + + /** + * A fully qualified KMS key name for BigQuery tables protected by CMEK. + * Format: + * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version} + * + * Generated from protobuf field string kms_key = 4; + * @return string + */ + public function getKmsKey() + { + return $this->kms_key; + } + + /** + * A fully qualified KMS key name for BigQuery tables protected by CMEK. + * Format: + * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version} + * + * Generated from protobuf field string kms_key = 4; + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + + /** + * Options for what to do if the destination table already exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition write_disposition = 5; + * @return int + */ + public function getWriteDisposition() + { + return $this->write_disposition; + } + + /** + * Options for what to do if the destination table already exists. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition write_disposition = 5; + * @param int $var + * @return $this + */ + public function setWriteDisposition($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\WriteDisposition::class); + $this->write_disposition = $var; + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/BigQueryDestination.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/BigQueryDestination.php new file mode 100644 index 000000000000..329de57ac90f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/BigQueryDestination.php @@ -0,0 +1,162 @@ +google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination + */ +class BigQueryDestination extends \Google\Protobuf\Internal\Message +{ + /** + * A project ID or number. If specified, then export will attempt to + * write data to this project instead of the resource project. Otherwise, + * the resource project will be used. + * + * Generated from protobuf field string project_id = 3; + */ + protected $project_id = ''; + /** + * Required. The name of the BigQuery dataset that the snapshot result + * should be exported to. If this dataset does not exist, the export call + * returns an INVALID_ARGUMENT error. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset = ''; + /** + * The BigQuery table name to which the insights data should be written. + * If this table does not exist, the export call returns an INVALID_ARGUMENT + * error. + * + * Generated from protobuf field string table = 2; + */ + protected $table = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * A project ID or number. If specified, then export will attempt to + * write data to this project instead of the resource project. Otherwise, + * the resource project will be used. + * @type string $dataset + * Required. The name of the BigQuery dataset that the snapshot result + * should be exported to. If this dataset does not exist, the export call + * returns an INVALID_ARGUMENT error. + * @type string $table + * The BigQuery table name to which the insights data should be written. + * If this table does not exist, the export call returns an INVALID_ARGUMENT + * error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * A project ID or number. If specified, then export will attempt to + * write data to this project instead of the resource project. Otherwise, + * the resource project will be used. + * + * Generated from protobuf field string project_id = 3; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * A project ID or number. If specified, then export will attempt to + * write data to this project instead of the resource project. Otherwise, + * the resource project will be used. + * + * Generated from protobuf field string project_id = 3; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The name of the BigQuery dataset that the snapshot result + * should be exported to. If this dataset does not exist, the export call + * returns 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 name of the BigQuery dataset that the snapshot result + * should be exported to. If this dataset does not exist, the export call + * returns 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; + } + + /** + * The BigQuery table name to which the insights data should be written. + * If this table does not exist, the export call returns an INVALID_ARGUMENT + * error. + * + * Generated from protobuf field string table = 2; + * @return string + */ + public function getTable() + { + return $this->table; + } + + /** + * The BigQuery table name to which the insights data should be written. + * If this table does not exist, the export call returns an INVALID_ARGUMENT + * error. + * + * Generated from protobuf field string table = 2; + * @param string $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkString($var, True); + $this->table = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BigQueryDestination::class, \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest_BigQueryDestination::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/WriteDisposition.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/WriteDisposition.php new file mode 100644 index 000000000000..66d34f848fc5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataRequest/WriteDisposition.php @@ -0,0 +1,65 @@ +google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition + */ +class WriteDisposition +{ + /** + * Write disposition is not specified. Defaults to WRITE_TRUNCATE. + * + * Generated from protobuf enum WRITE_DISPOSITION_UNSPECIFIED = 0; + */ + const WRITE_DISPOSITION_UNSPECIFIED = 0; + /** + * If the table already exists, BigQuery will overwrite the table data and + * use the schema from the load. + * + * Generated from protobuf enum WRITE_TRUNCATE = 1; + */ + const WRITE_TRUNCATE = 1; + /** + * If the table already exists, BigQuery will append data to the table. + * + * Generated from protobuf enum WRITE_APPEND = 2; + */ + const WRITE_APPEND = 2; + + private static $valueToName = [ + self::WRITE_DISPOSITION_UNSPECIFIED => 'WRITE_DISPOSITION_UNSPECIFIED', + self::WRITE_TRUNCATE => 'WRITE_TRUNCATE', + self::WRITE_APPEND => 'WRITE_APPEND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WriteDisposition::class, \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest_WriteDisposition::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataResponse.php new file mode 100644 index 000000000000..32c0c790acf4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportInsightsDataResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.ExportInsightsDataResponse + */ +class ExportInsightsDataResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelMetadata.php new file mode 100644 index 000000000000..7a6e77bd3038 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.ExportIssueModelMetadata + */ +class ExportIssueModelMetadata 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; + /** + * The original export request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportIssueModelRequest request = 3; + */ + protected $request = null; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest $request + * The original export request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original export request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original export request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest.php new file mode 100644 index 000000000000..5fc916d35604 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest.php @@ -0,0 +1,123 @@ +google.cloud.contactcenterinsights.v1.ExportIssueModelRequest + */ +class ExportIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The issue model to export. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + protected $Destination; + + /** + * @param string $name Required. The issue model to export. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest + * + * @experimental + */ + 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\ContactCenterInsights\V1\ExportIssueModelRequest\GcsDestination $gcs_destination + * Google Cloud Storage URI to export the issue model to. + * @type string $name + * Required. The issue model to export. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Google Cloud Storage URI to export the issue model to. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportIssueModelRequest.GcsDestination gcs_destination = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest\GcsDestination|null + */ + public function getGcsDestination() + { + return $this->readOneof(2); + } + + public function hasGcsDestination() + { + return $this->hasOneof(2); + } + + /** + * Google Cloud Storage URI to export the issue model to. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExportIssueModelRequest.GcsDestination gcs_destination = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest\GcsDestination $var + * @return $this + */ + public function setGcsDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest\GcsDestination::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Required. The issue 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 issue 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; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("Destination"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest/GcsDestination.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest/GcsDestination.php new file mode 100644 index 000000000000..c6d3e475c2d4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelRequest/GcsDestination.php @@ -0,0 +1,70 @@ +google.cloud.contactcenterinsights.v1.ExportIssueModelRequest.GcsDestination + */ +class GcsDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $object_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $object_uri + * Required. Format: `gs:///` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getObjectUri() + { + return $this->object_uri; + } + + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setObjectUri($var) + { + GPBUtil::checkString($var, True); + $this->object_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GcsDestination::class, \Google\Cloud\ContactCenterInsights\V1\ExportIssueModelRequest_GcsDestination::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelResponse.php new file mode 100644 index 000000000000..cb2c757dea28 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ExportIssueModelResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.ExportIssueModelResponse + */ +class ExportIssueModelResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/FaqAnswerData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/FaqAnswerData.php new file mode 100644 index 000000000000..e6d8e8c35931 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/FaqAnswerData.php @@ -0,0 +1,265 @@ +google.cloud.contactcenterinsights.v1.FaqAnswerData + */ +class FaqAnswerData extends \Google\Protobuf\Internal\Message +{ + /** + * The piece of text from the `source` knowledge base document. + * + * Generated from protobuf field string answer = 1; + */ + protected $answer = ''; + /** + * The system's confidence score that this answer is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 2; + */ + protected $confidence_score = 0.0; + /** + * The corresponding FAQ question. + * + * Generated from protobuf field string question = 3; + */ + protected $question = ''; + /** + * Map that contains metadata about the FAQ answer and the document that + * it originates from. + * + * Generated from protobuf field map metadata = 4; + */ + private $metadata; + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + */ + protected $query_record = ''; + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + * + * Generated from protobuf field string source = 6; + */ + protected $source = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $answer + * The piece of text from the `source` knowledge base document. + * @type float $confidence_score + * The system's confidence score that this answer is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * @type string $question + * The corresponding FAQ question. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Map that contains metadata about the FAQ answer and the document that + * it originates from. + * @type string $query_record + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * @type string $source + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The piece of text from the `source` knowledge base document. + * + * Generated from protobuf field string answer = 1; + * @return string + */ + public function getAnswer() + { + return $this->answer; + } + + /** + * The piece of text from the `source` knowledge base document. + * + * Generated from protobuf field string answer = 1; + * @param string $var + * @return $this + */ + public function setAnswer($var) + { + GPBUtil::checkString($var, True); + $this->answer = $var; + + return $this; + } + + /** + * The system's confidence score that this answer is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 2; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * The system's confidence score that this answer is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field float confidence_score = 2; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkFloat($var); + $this->confidence_score = $var; + + return $this; + } + + /** + * The corresponding FAQ question. + * + * Generated from protobuf field string question = 3; + * @return string + */ + public function getQuestion() + { + return $this->question; + } + + /** + * The corresponding FAQ question. + * + * Generated from protobuf field string question = 3; + * @param string $var + * @return $this + */ + public function setQuestion($var) + { + GPBUtil::checkString($var, True); + $this->question = $var; + + return $this; + } + + /** + * Map that contains metadata about the FAQ answer and the document that + * it originates from. + * + * Generated from protobuf field map metadata = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Map that contains metadata about the FAQ answer and the document that + * it originates from. + * + * Generated from protobuf field map metadata = 4; + * @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; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + * @return string + */ + public function getQueryRecord() + { + return $this->query_record; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 5; + * @param string $var + * @return $this + */ + public function setQueryRecord($var) + { + GPBUtil::checkString($var, True); + $this->query_record = $var; + + return $this; + } + + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + * + * Generated from protobuf field string source = 6; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * The knowledge document that this answer was extracted from. + * Format: + * projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + * + * Generated from protobuf field string source = 6; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GcsSource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GcsSource.php new file mode 100644 index 000000000000..2125a846c4af --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GcsSource.php @@ -0,0 +1,109 @@ +google.cloud.contactcenterinsights.v1.GcsSource + */ +class GcsSource extends \Google\Protobuf\Internal\Message +{ + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 1; + */ + protected $audio_uri = ''; + /** + * Immutable. Cloud Storage URI that points to a file that contains the + * conversation transcript. + * + * Generated from protobuf field string transcript_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $transcript_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $audio_uri + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * @type string $transcript_uri + * Immutable. Cloud Storage URI that points to a file that contains the + * conversation transcript. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 1; + * @return string + */ + public function getAudioUri() + { + return $this->audio_uri; + } + + /** + * Cloud Storage URI that points to a file that contains the conversation + * audio. + * + * Generated from protobuf field string audio_uri = 1; + * @param string $var + * @return $this + */ + public function setAudioUri($var) + { + GPBUtil::checkString($var, True); + $this->audio_uri = $var; + + return $this; + } + + /** + * Immutable. Cloud Storage URI that points to a file that contains the + * conversation transcript. + * + * Generated from protobuf field string transcript_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getTranscriptUri() + { + return $this->transcript_uri; + } + + /** + * Immutable. Cloud Storage URI that points to a file that contains the + * conversation transcript. + * + * Generated from protobuf field string transcript_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setTranscriptUri($var) + { + GPBUtil::checkString($var, True); + $this->transcript_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetAnalysisRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetAnalysisRequest.php new file mode 100644 index 000000000000..a46e863a67e9 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetAnalysisRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetAnalysisRequest + */ +class GetAnalysisRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the analysis 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 name of the analysis to get. Please see + * {@see ContactCenterInsightsClient::analysisName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetAnalysisRequest + * + * @experimental + */ + public static function 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 analysis to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the analysis 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 name of the analysis 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetConversationRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetConversationRequest.php new file mode 100644 index 000000000000..7c69e507e417 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetConversationRequest.php @@ -0,0 +1,115 @@ +google.cloud.contactcenterinsights.v1.GetConversationRequest + */ +class GetConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the conversation to get. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The level of details of the conversation. Default is `FULL`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the conversation to get. Please see + * {@see ContactCenterInsightsClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetConversationRequest + * + * @experimental + */ + public static function 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 conversation to get. + * @type int $view + * The level of details of the conversation. Default is `FULL`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the conversation 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 name of the conversation 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; + } + + /** + * The level of details of the conversation. Default is `FULL`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The level of details of the conversation. Default is `FULL`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetEncryptionSpecRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetEncryptionSpecRequest.php new file mode 100644 index 000000000000..c0076eb9be97 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetEncryptionSpecRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetEncryptionSpecRequest + */ +class GetEncryptionSpecRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the encryption spec resource 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 name of the encryption spec resource to get. Please see + * {@see ContactCenterInsightsClient::encryptionSpecName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetEncryptionSpecRequest + * + * @experimental + */ + public static function 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 encryption spec resource to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the encryption spec resource 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 name of the encryption spec resource 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueModelRequest.php new file mode 100644 index 000000000000..0de9b87c59ea --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueModelRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetIssueModelRequest + */ +class GetIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the issue model 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 name of the issue model to get. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetIssueModelRequest + * + * @experimental + */ + public static function 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 issue model to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the issue model 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 name of the issue model 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueRequest.php new file mode 100644 index 000000000000..6ce5364cc99a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetIssueRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetIssueRequest + */ +class GetIssueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the issue 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 name of the issue to get. Please see + * {@see ContactCenterInsightsClient::issueName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetIssueRequest + * + * @experimental + */ + public static function 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 issue to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the issue 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 name of the issue 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetPhraseMatcherRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetPhraseMatcherRequest.php new file mode 100644 index 000000000000..cfdbf04b0d0f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetPhraseMatcherRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest + */ +class GetPhraseMatcherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the phrase matcher 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 name of the phrase matcher to get. Please see + * {@see ContactCenterInsightsClient::phraseMatcherName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetPhraseMatcherRequest + * + * @experimental + */ + public static function 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 phrase matcher to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the phrase matcher 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 name of the phrase matcher 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetSettingsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetSettingsRequest.php new file mode 100644 index 000000000000..91add76d1818 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetSettingsRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetSettingsRequest + */ +class GetSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings resource 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 name of the settings resource to get. Please see + * {@see ContactCenterInsightsClient::settingsName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\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 name of the settings resource to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings resource 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 name of the settings resource 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetViewRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetViewRequest.php new file mode 100644 index 000000000000..0f38bc1c31e2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/GetViewRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.GetViewRequest + */ +class GetViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the view 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 name of the view to get. Please see + * {@see ContactCenterInsightsClient::viewName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\GetViewRequest + * + * @experimental + */ + public static function 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 view to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the view 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 name of the view 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/HoldData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/HoldData.php new file mode 100644 index 000000000000..bd7f70e930ef --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/HoldData.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.HoldData + */ +class HoldData extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelMetadata.php new file mode 100644 index 000000000000..ed2259957dce --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.ImportIssueModelMetadata + */ +class ImportIssueModelMetadata 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; + /** + * The original import request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ImportIssueModelRequest request = 3; + */ + protected $request = null; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest $request + * The original import request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original import request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ImportIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original import request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ImportIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest.php new file mode 100644 index 000000000000..871dd620e2c9 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.ImportIssueModelRequest + */ +class ImportIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. If set to true, will create an issue model from the imported file + * with randomly generated IDs for the issue model and corresponding issues. + * Otherwise, replaces an existing model with the same ID as the file. + * + * Generated from protobuf field bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $create_new_model = false; + protected $Source; + + /** + * @param string $parent Required. The parent resource of the issue model. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest + * + * @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 \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest\GcsSource $gcs_source + * Google Cloud Storage source message. + * @type string $parent + * Required. The parent resource of the issue model. + * @type bool $create_new_model + * Optional. If set to true, will create an issue model from the imported file + * with randomly generated IDs for the issue model and corresponding issues. + * Otherwise, replaces an existing model with the same ID as the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Google Cloud Storage source message. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest\GcsSource|null + */ + public function getGcsSource() + { + return $this->readOneof(2); + } + + public function hasGcsSource() + { + return $this->hasOneof(2); + } + + /** + * Google Cloud Storage source message. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource gcs_source = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest\GcsSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Required. The parent resource of the issue model. + * + * Generated 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 of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. If set to true, will create an issue model from the imported file + * with randomly generated IDs for the issue model and corresponding issues. + * Otherwise, replaces an existing model with the same ID as the file. + * + * Generated from protobuf field bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCreateNewModel() + { + return $this->create_new_model; + } + + /** + * Optional. If set to true, will create an issue model from the imported file + * with randomly generated IDs for the issue model and corresponding issues. + * Otherwise, replaces an existing model with the same ID as the file. + * + * Generated from protobuf field bool create_new_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCreateNewModel($var) + { + GPBUtil::checkBool($var); + $this->create_new_model = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("Source"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest/GcsSource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest/GcsSource.php new file mode 100644 index 000000000000..27c9d9d67715 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelRequest/GcsSource.php @@ -0,0 +1,70 @@ +google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource + */ +class GcsSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $object_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $object_uri + * Required. Format: `gs:///` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getObjectUri() + { + return $this->object_uri; + } + + /** + * Required. Format: `gs:///` + * + * Generated from protobuf field string object_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setObjectUri($var) + { + GPBUtil::checkString($var, True); + $this->object_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GcsSource::class, \Google\Cloud\ContactCenterInsights\V1\ImportIssueModelRequest_GcsSource::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelResponse.php new file mode 100644 index 000000000000..0bd1db15abb5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ImportIssueModelResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.ImportIssueModelResponse + */ +class ImportIssueModelResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata.php new file mode 100644 index 000000000000..5923845b70e2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata.php @@ -0,0 +1,247 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + */ +class IngestConversationsMetadata 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. The original request for ingest. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $request = null; + /** + * Output only. Partial errors during ingest operation that might cause the + * operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $partial_errors; + /** + * Output only. Statistics for IngestConversations operation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats ingest_conversations_stats = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ingest_conversations_stats = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest $request + * Output only. The original request for ingest. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Output only. Partial errors during ingest operation that might cause the + * operation output to be incomplete. + * @type \Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata\IngestConversationsStats $ingest_conversations_stats + * Output only. Statistics for IngestConversations operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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. The original request for ingest. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * Output only. The original request for ingest. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest::class); + $this->request = $var; + + return $this; + } + + /** + * Output only. Partial errors during ingest operation that might cause the + * operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Output only. Partial errors during ingest operation that might cause the + * operation output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + + /** + * Output only. Statistics for IngestConversations operation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats ingest_conversations_stats = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata\IngestConversationsStats|null + */ + public function getIngestConversationsStats() + { + return $this->ingest_conversations_stats; + } + + public function hasIngestConversationsStats() + { + return isset($this->ingest_conversations_stats); + } + + public function clearIngestConversationsStats() + { + unset($this->ingest_conversations_stats); + } + + /** + * Output only. Statistics for IngestConversations operation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats ingest_conversations_stats = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata\IngestConversationsStats $var + * @return $this + */ + public function setIngestConversationsStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata\IngestConversationsStats::class); + $this->ingest_conversations_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata/IngestConversationsStats.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata/IngestConversationsStats.php new file mode 100644 index 000000000000..eb1243032ccd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsMetadata/IngestConversationsStats.php @@ -0,0 +1,184 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + */ +class IngestConversationsStats extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The number of objects processed during the ingest operation. + * + * Generated from protobuf field int32 processed_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $processed_object_count = 0; + /** + * Output only. The number of objects skipped because another conversation + * with the same transcript uri had already been ingested. + * + * Generated from protobuf field int32 duplicates_skipped_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $duplicates_skipped_count = 0; + /** + * Output only. The number of new conversations added during this ingest + * operation. + * + * Generated from protobuf field int32 successful_ingest_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $successful_ingest_count = 0; + /** + * Output only. The number of objects which were unable to be ingested due + * to errors. The errors are populated in the partial_errors field. + * + * Generated from protobuf field int32 failed_ingest_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failed_ingest_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $processed_object_count + * Output only. The number of objects processed during the ingest operation. + * @type int $duplicates_skipped_count + * Output only. The number of objects skipped because another conversation + * with the same transcript uri had already been ingested. + * @type int $successful_ingest_count + * Output only. The number of new conversations added during this ingest + * operation. + * @type int $failed_ingest_count + * Output only. The number of objects which were unable to be ingested due + * to errors. The errors are populated in the partial_errors field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The number of objects processed during the ingest operation. + * + * Generated from protobuf field int32 processed_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getProcessedObjectCount() + { + return $this->processed_object_count; + } + + /** + * Output only. The number of objects processed during the ingest operation. + * + * Generated from protobuf field int32 processed_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setProcessedObjectCount($var) + { + GPBUtil::checkInt32($var); + $this->processed_object_count = $var; + + return $this; + } + + /** + * Output only. The number of objects skipped because another conversation + * with the same transcript uri had already been ingested. + * + * Generated from protobuf field int32 duplicates_skipped_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDuplicatesSkippedCount() + { + return $this->duplicates_skipped_count; + } + + /** + * Output only. The number of objects skipped because another conversation + * with the same transcript uri had already been ingested. + * + * Generated from protobuf field int32 duplicates_skipped_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDuplicatesSkippedCount($var) + { + GPBUtil::checkInt32($var); + $this->duplicates_skipped_count = $var; + + return $this; + } + + /** + * Output only. The number of new conversations added during this ingest + * operation. + * + * Generated from protobuf field int32 successful_ingest_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSuccessfulIngestCount() + { + return $this->successful_ingest_count; + } + + /** + * Output only. The number of new conversations added during this ingest + * operation. + * + * Generated from protobuf field int32 successful_ingest_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSuccessfulIngestCount($var) + { + GPBUtil::checkInt32($var); + $this->successful_ingest_count = $var; + + return $this; + } + + /** + * Output only. The number of objects which were unable to be ingested due + * to errors. The errors are populated in the partial_errors field. + * + * Generated from protobuf field int32 failed_ingest_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailedIngestCount() + { + return $this->failed_ingest_count; + } + + /** + * Output only. The number of objects which were unable to be ingested due + * to errors. The errors are populated in the partial_errors field. + * + * Generated from protobuf field int32 failed_ingest_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailedIngestCount($var) + { + GPBUtil::checkInt32($var); + $this->failed_ingest_count = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IngestConversationsStats::class, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata_IngestConversationsStats::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest.php new file mode 100644 index 000000000000..435d372507c8 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest.php @@ -0,0 +1,364 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsRequest + */ +class IngestConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource for new conversations. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Configuration that applies to all conversations. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + */ + protected $conversation_config = null; + /** + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $redaction_config = null; + /** + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $speech_config = null; + /** + * Optional. If set, this fields indicates the number of objects to ingest + * from the Cloud Storage bucket. If empty, the entire bucket will be + * ingested. Unless they are first deleted, conversations produced through + * sampling won't be ingested by subsequent ingest requests. + * + * Generated from protobuf field optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sample_size = null; + protected $source; + protected $object_config; + + /** + * @param string $parent Required. The parent resource for new conversations. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest + * + * @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 \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\GcsSource $gcs_source + * A cloud storage bucket source. Note that any previously ingested objects + * from the source will be skipped to avoid duplication. + * @type \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\TranscriptObjectConfig $transcript_object_config + * Configuration for when `source` contains conversation transcripts. + * @type string $parent + * Required. The parent resource for new conversations. + * @type \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\ConversationConfig $conversation_config + * Configuration that applies to all conversations. + * @type \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $redaction_config + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + * @type \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $speech_config + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + * @type int $sample_size + * Optional. If set, this fields indicates the number of objects to ingest + * from the Cloud Storage bucket. If empty, the entire bucket will be + * ingested. Unless they are first deleted, conversations produced through + * sampling won't be ingested by subsequent ingest requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * A cloud storage bucket source. Note that any previously ingested objects + * from the source will be skipped to avoid duplication. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\GcsSource|null + */ + public function getGcsSource() + { + return $this->readOneof(2); + } + + public function hasGcsSource() + { + return $this->hasOneof(2); + } + + /** + * A cloud storage bucket source. Note that any previously ingested objects + * from the source will be skipped to avoid duplication. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * @param \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\GcsSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Configuration for when `source` contains conversation transcripts. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\TranscriptObjectConfig|null + */ + public function getTranscriptObjectConfig() + { + return $this->readOneof(3); + } + + public function hasTranscriptObjectConfig() + { + return $this->hasOneof(3); + } + + /** + * Configuration for when `source` contains conversation transcripts. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\TranscriptObjectConfig $var + * @return $this + */ + public function setTranscriptObjectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\TranscriptObjectConfig::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The parent resource for new conversations. + * + * Generated 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 new conversations. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Configuration that applies to all conversations. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * @return \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\ConversationConfig|null + */ + public function getConversationConfig() + { + return $this->conversation_config; + } + + public function hasConversationConfig() + { + return isset($this->conversation_config); + } + + public function clearConversationConfig() + { + unset($this->conversation_config); + } + + /** + * Configuration that applies to all conversations. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * @param \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\ConversationConfig $var + * @return $this + */ + public function setConversationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\ConversationConfig::class); + $this->conversation_config = $var; + + return $this; + } + + /** + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ContactCenterInsights\V1\RedactionConfig|null + */ + public function getRedactionConfig() + { + return $this->redaction_config; + } + + public function hasRedactionConfig() + { + return isset($this->redaction_config); + } + + public function clearRedactionConfig() + { + unset($this->redaction_config); + } + + /** + * Optional. DLP settings for transcript redaction. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $var + * @return $this + */ + public function setRedactionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\RedactionConfig::class); + $this->redaction_config = $var; + + return $this; + } + + /** + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ContactCenterInsights\V1\SpeechConfig|null + */ + public function getSpeechConfig() + { + return $this->speech_config; + } + + public function hasSpeechConfig() + { + return isset($this->speech_config); + } + + public function clearSpeechConfig() + { + unset($this->speech_config); + } + + /** + * Optional. Default Speech-to-Text configuration. Optional, will default to + * the config specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $var + * @return $this + */ + public function setSpeechConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SpeechConfig::class); + $this->speech_config = $var; + + return $this; + } + + /** + * Optional. If set, this fields indicates the number of objects to ingest + * from the Cloud Storage bucket. If empty, the entire bucket will be + * ingested. Unless they are first deleted, conversations produced through + * sampling won't be ingested by subsequent ingest requests. + * + * Generated from protobuf field optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSampleSize() + { + return isset($this->sample_size) ? $this->sample_size : 0; + } + + public function hasSampleSize() + { + return isset($this->sample_size); + } + + public function clearSampleSize() + { + unset($this->sample_size); + } + + /** + * Optional. If set, this fields indicates the number of objects to ingest + * from the Cloud Storage bucket. If empty, the entire bucket will be + * ingested. Unless they are first deleted, conversations produced through + * sampling won't be ingested by subsequent ingest requests. + * + * Generated from protobuf field optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSampleSize($var) + { + GPBUtil::checkInt32($var); + $this->sample_size = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + + /** + * @return string + */ + public function getObjectConfig() + { + return $this->whichOneof("object_config"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/ConversationConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/ConversationConfig.php new file mode 100644 index 000000000000..8a001dbd3064 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/ConversationConfig.php @@ -0,0 +1,166 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + */ +class ConversationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. An opaque, user-specified string representing a human agent who + * handled all conversations in the import. Note that this will be + * overridden if per-conversation metadata is provided through the + * `metadata_bucket_uri`. + * + * Generated from protobuf field string agent_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_id = ''; + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $agent_channel = 0; + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $customer_channel = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $agent_id + * Optional. An opaque, user-specified string representing a human agent who + * handled all conversations in the import. Note that this will be + * overridden if per-conversation metadata is provided through the + * `metadata_bucket_uri`. + * @type int $agent_channel + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * @type int $customer_channel + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Optional. An opaque, user-specified string representing a human agent who + * handled all conversations in the import. Note that this will be + * overridden if per-conversation metadata is provided through the + * `metadata_bucket_uri`. + * + * Generated from protobuf field string agent_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * Optional. An opaque, user-specified string representing a human agent who + * handled all conversations in the import. Note that this will be + * overridden if per-conversation metadata is provided through the + * `metadata_bucket_uri`. + * + * Generated from protobuf field string agent_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAgentChannel() + { + return $this->agent_channel; + } + + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAgentChannel($var) + { + GPBUtil::checkInt32($var); + $this->agent_channel = $var; + + return $this; + } + + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCustomerChannel() + { + return $this->customer_channel; + } + + /** + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. + * + * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCustomerChannel($var) + { + GPBUtil::checkInt32($var); + $this->customer_channel = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConversationConfig::class, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest_ConversationConfig::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource.php new file mode 100644 index 000000000000..cf9d0ab4f8eb --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource.php @@ -0,0 +1,218 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + */ +class GcsSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Cloud Storage bucket containing source objects. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bucket_uri = ''; + /** + * Optional. Specifies the type of the objects in `bucket_uri`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bucket_object_type = 0; + /** + * Optional. The Cloud Storage path to the conversation metadata. Note that: + * [1] Metadata files are expected to be in JSON format. + * [2] Metadata and source files (transcripts or audio) must be in + * separate buckets. + * [3] A source file and its corresponding metadata file must share the same + * name to + * be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and + * `gs://bucket/metadata/conversation1.json`. + * + * Generated from protobuf field optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_bucket_uri = null; + /** + * Optional. Custom keys to extract as conversation labels from metadata + * files in `metadata_bucket_uri`. Keys not included in this field will be + * ignored. Note that there is a limit of 20 labels per conversation. + * + * Generated from protobuf field repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $custom_metadata_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket_uri + * Required. The Cloud Storage bucket containing source objects. + * @type int $bucket_object_type + * Optional. Specifies the type of the objects in `bucket_uri`. + * @type string $metadata_bucket_uri + * Optional. The Cloud Storage path to the conversation metadata. Note that: + * [1] Metadata files are expected to be in JSON format. + * [2] Metadata and source files (transcripts or audio) must be in + * separate buckets. + * [3] A source file and its corresponding metadata file must share the same + * name to + * be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and + * `gs://bucket/metadata/conversation1.json`. + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_metadata_keys + * Optional. Custom keys to extract as conversation labels from metadata + * files in `metadata_bucket_uri`. Keys not included in this field will be + * ignored. Note that there is a limit of 20 labels per conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Cloud Storage bucket containing source objects. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBucketUri() + { + return $this->bucket_uri; + } + + /** + * Required. The Cloud Storage bucket containing source objects. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBucketUri($var) + { + GPBUtil::checkString($var, True); + $this->bucket_uri = $var; + + return $this; + } + + /** + * Optional. Specifies the type of the objects in `bucket_uri`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBucketObjectType() + { + return $this->bucket_object_type; + } + + /** + * Optional. Specifies the type of the objects in `bucket_uri`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBucketObjectType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest\GcsSource\BucketObjectType::class); + $this->bucket_object_type = $var; + + return $this; + } + + /** + * Optional. The Cloud Storage path to the conversation metadata. Note that: + * [1] Metadata files are expected to be in JSON format. + * [2] Metadata and source files (transcripts or audio) must be in + * separate buckets. + * [3] A source file and its corresponding metadata file must share the same + * name to + * be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and + * `gs://bucket/metadata/conversation1.json`. + * + * Generated from protobuf field optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataBucketUri() + { + return isset($this->metadata_bucket_uri) ? $this->metadata_bucket_uri : ''; + } + + public function hasMetadataBucketUri() + { + return isset($this->metadata_bucket_uri); + } + + public function clearMetadataBucketUri() + { + unset($this->metadata_bucket_uri); + } + + /** + * Optional. The Cloud Storage path to the conversation metadata. Note that: + * [1] Metadata files are expected to be in JSON format. + * [2] Metadata and source files (transcripts or audio) must be in + * separate buckets. + * [3] A source file and its corresponding metadata file must share the same + * name to + * be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and + * `gs://bucket/metadata/conversation1.json`. + * + * Generated from protobuf field optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataBucketUri($var) + { + GPBUtil::checkString($var, True); + $this->metadata_bucket_uri = $var; + + return $this; + } + + /** + * Optional. Custom keys to extract as conversation labels from metadata + * files in `metadata_bucket_uri`. Keys not included in this field will be + * ignored. Note that there is a limit of 20 labels per conversation. + * + * Generated from protobuf field repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomMetadataKeys() + { + return $this->custom_metadata_keys; + } + + /** + * Optional. Custom keys to extract as conversation labels from metadata + * files in `metadata_bucket_uri`. Keys not included in this field will be + * ignored. Note that there is a limit of 20 labels per conversation. + * + * Generated from protobuf field repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomMetadataKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->custom_metadata_keys = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GcsSource::class, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest_GcsSource::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource/BucketObjectType.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource/BucketObjectType.php new file mode 100644 index 000000000000..826704c5a327 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/GcsSource/BucketObjectType.php @@ -0,0 +1,62 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType + */ +class BucketObjectType +{ + /** + * The object type is unspecified and will default to `TRANSCRIPT`. + * + * Generated from protobuf enum BUCKET_OBJECT_TYPE_UNSPECIFIED = 0; + */ + const BUCKET_OBJECT_TYPE_UNSPECIFIED = 0; + /** + * The object is a transcript. + * + * Generated from protobuf enum TRANSCRIPT = 1; + */ + const TRANSCRIPT = 1; + /** + * The object is an audio file. + * + * Generated from protobuf enum AUDIO = 2; + */ + const AUDIO = 2; + + private static $valueToName = [ + self::BUCKET_OBJECT_TYPE_UNSPECIFIED => 'BUCKET_OBJECT_TYPE_UNSPECIFIED', + self::TRANSCRIPT => 'TRANSCRIPT', + 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(BucketObjectType::class, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest_GcsSource_BucketObjectType::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/TranscriptObjectConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/TranscriptObjectConfig.php new file mode 100644 index 000000000000..928cc9f5e174 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsRequest/TranscriptObjectConfig.php @@ -0,0 +1,70 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + */ +class TranscriptObjectConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The medium transcript objects represent. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $medium = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $medium + * Required. The medium transcript objects represent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The medium transcript objects represent. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMedium() + { + return $this->medium; + } + + /** + * Required. The medium transcript objects represent. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMedium($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\Medium::class); + $this->medium = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TranscriptObjectConfig::class, \Google\Cloud\ContactCenterInsights\V1\IngestConversationsRequest_TranscriptObjectConfig::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsResponse.php new file mode 100644 index 000000000000..97d2e9727617 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IngestConversationsResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.IngestConversationsResponse + */ +class IngestConversationsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecMetadata.php new file mode 100644 index 000000000000..c0baf71e1a3d --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecMetadata.php @@ -0,0 +1,203 @@ +google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecMetadata + */ +class InitializeEncryptionSpecMetadata 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. The original request for initialization. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $request = null; + /** + * Partial errors during initialising operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + */ + private $partial_errors; + + /** + * 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 \Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecRequest $request + * Output only. The original request for initialization. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors + * Partial errors during initialising operation that might cause the operation + * output to be incomplete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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. The original request for initialization. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * Output only. The original request for initialization. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecRequest::class); + $this->request = $var; + + return $this; + } + + /** + * Partial errors during initialising operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialErrors() + { + return $this->partial_errors; + } + + /** + * Partial errors during initialising operation that might cause the operation + * output to be incomplete. + * + * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecRequest.php new file mode 100644 index 000000000000..a140e2788c3e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecRequest.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest + */ +class InitializeEncryptionSpecRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The encryption spec used for CMEK encryption. It is required that + * the kms key is in the same region as the endpoint. The same key will be + * used for all provisioned resources, if encryption is available. If the + * kms_key_name is left empty, no encryption will be enforced. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $encryption_spec = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\EncryptionSpec $encryptionSpec Required. The encryption spec used for CMEK encryption. It is required that + * the kms key is in the same region as the endpoint. The same key will be + * used for all provisioned resources, if encryption is available. If the + * kms_key_name is left empty, no encryption will be enforced. + * + * @return \Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\EncryptionSpec $encryptionSpec): self + { + return (new self()) + ->setEncryptionSpec($encryptionSpec); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\EncryptionSpec $encryption_spec + * Required. The encryption spec used for CMEK encryption. It is required that + * the kms key is in the same region as the endpoint. The same key will be + * used for all provisioned resources, if encryption is available. If the + * kms_key_name is left empty, no encryption will be enforced. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that + * the kms key is in the same region as the endpoint. The same key will be + * used for all provisioned resources, if encryption is available. If the + * kms_key_name is left empty, no encryption will be enforced. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that + * the kms key is in the same region as the endpoint. The same key will be + * used for all provisioned resources, if encryption is available. If the + * kms_key_name is left empty, no encryption will be enforced. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecResponse.php new file mode 100644 index 000000000000..a56abe51d282 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InitializeEncryptionSpecResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecResponse + */ +class InitializeEncryptionSpecResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Intent.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Intent.php new file mode 100644 index 000000000000..74f40304f91e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Intent.php @@ -0,0 +1,102 @@ +google.cloud.contactcenterinsights.v1.Intent + */ +class Intent extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifier of the intent. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * The human-readable name of the intent. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The unique identifier of the intent. + * @type string $display_name + * The human-readable name of the intent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The unique identifier of the intent. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The unique identifier of the intent. + * + * 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 human-readable name of the intent. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name of the intent. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IntentMatchData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IntentMatchData.php new file mode 100644 index 000000000000..7997dc89a081 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IntentMatchData.php @@ -0,0 +1,74 @@ +google.cloud.contactcenterinsights.v1.IntentMatchData + */ +class IntentMatchData extends \Google\Protobuf\Internal\Message +{ + /** + * The id of the matched intent. + * Can be used to retrieve the corresponding intent information. + * + * Generated from protobuf field string intent_unique_id = 1; + */ + protected $intent_unique_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $intent_unique_id + * The id of the matched intent. + * Can be used to retrieve the corresponding intent information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The id of the matched intent. + * Can be used to retrieve the corresponding intent information. + * + * Generated from protobuf field string intent_unique_id = 1; + * @return string + */ + public function getIntentUniqueId() + { + return $this->intent_unique_id; + } + + /** + * The id of the matched intent. + * Can be used to retrieve the corresponding intent information. + * + * Generated from protobuf field string intent_unique_id = 1; + * @param string $var + * @return $this + */ + public function setIntentUniqueId($var) + { + GPBUtil::checkString($var, True); + $this->intent_unique_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InterruptionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InterruptionData.php new file mode 100644 index 000000000000..c6692b654dbc --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/InterruptionData.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.InterruptionData + */ +class InterruptionData extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Issue.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Issue.php new file mode 100644 index 000000000000..710d57742358 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Issue.php @@ -0,0 +1,269 @@ +google.cloud.contactcenterinsights.v1.Issue + */ +class Issue extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the issue. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The representative name for the issue. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Output only. The time at which this issue was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The most recent time that this issue was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Resource names of the sample representative utterances that + * match to this issue. + * + * Generated from protobuf field repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sample_utterances; + /** + * Representative description of the issue. + * + * Generated from protobuf field string display_description = 14; + */ + protected $display_description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the issue. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @type string $display_name + * The representative name for the issue. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this issue was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The most recent time that this issue was updated. + * @type array|\Google\Protobuf\Internal\RepeatedField $sample_utterances + * Output only. Resource names of the sample representative utterances that + * match to this issue. + * @type string $display_description + * Representative description of the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the issue. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the issue. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * 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; + } + + /** + * The representative name for the issue. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The representative name for the issue. + * + * 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 time at which this issue 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 this issue 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; + } + + /** + * Output only. The most recent time that this issue 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 most recent time that this issue 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. Resource names of the sample representative utterances that + * match to this issue. + * + * Generated from protobuf field repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSampleUtterances() + { + return $this->sample_utterances; + } + + /** + * Output only. Resource names of the sample representative utterances that + * match to this issue. + * + * Generated from protobuf field repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSampleUtterances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sample_utterances = $arr; + + return $this; + } + + /** + * Representative description of the issue. + * + * Generated from protobuf field string display_description = 14; + * @return string + */ + public function getDisplayDescription() + { + return $this->display_description; + } + + /** + * Representative description of the issue. + * + * Generated from protobuf field string display_description = 14; + * @param string $var + * @return $this + */ + public function setDisplayDescription($var) + { + GPBUtil::checkString($var, True); + $this->display_description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueAssignment.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueAssignment.php new file mode 100644 index 000000000000..bfe826f1fadc --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueAssignment.php @@ -0,0 +1,143 @@ +google.cloud.contactcenterinsights.v1.IssueAssignment + */ +class IssueAssignment extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the assigned issue. + * + * Generated from protobuf field string issue = 1; + */ + protected $issue = ''; + /** + * Score indicating the likelihood of the issue assignment. + * currently bounded on [0,1]. + * + * Generated from protobuf field double score = 2; + */ + protected $score = 0.0; + /** + * Immutable. Display name of the assigned issue. This field is set at time of + * analyis and immutable since then. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issue + * Resource name of the assigned issue. + * @type float $score + * Score indicating the likelihood of the issue assignment. + * currently bounded on [0,1]. + * @type string $display_name + * Immutable. Display name of the assigned issue. This field is set at time of + * analyis and immutable since then. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the assigned issue. + * + * Generated from protobuf field string issue = 1; + * @return string + */ + public function getIssue() + { + return $this->issue; + } + + /** + * Resource name of the assigned issue. + * + * Generated from protobuf field string issue = 1; + * @param string $var + * @return $this + */ + public function setIssue($var) + { + GPBUtil::checkString($var, True); + $this->issue = $var; + + return $this; + } + + /** + * Score indicating the likelihood of the issue assignment. + * currently bounded on [0,1]. + * + * Generated from protobuf field double score = 2; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * Score indicating the likelihood of the issue assignment. + * currently bounded on [0,1]. + * + * Generated from protobuf field double score = 2; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkDouble($var); + $this->score = $var; + + return $this; + } + + /** + * Immutable. Display name of the assigned issue. This field is set at time of + * analyis and immutable since then. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Immutable. Display name of the assigned issue. This field is set at time of + * analyis and immutable since then. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueMatchData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueMatchData.php new file mode 100644 index 000000000000..a0efc3fe72dd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueMatchData.php @@ -0,0 +1,77 @@ +google.cloud.contactcenterinsights.v1.IssueMatchData + */ +class IssueMatchData extends \Google\Protobuf\Internal\Message +{ + /** + * Information about the issue's assignment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + protected $issue_assignment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\IssueAssignment $issue_assignment + * Information about the issue's assignment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Information about the issue's assignment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueAssignment|null + */ + public function getIssueAssignment() + { + return $this->issue_assignment; + } + + public function hasIssueAssignment() + { + return isset($this->issue_assignment); + } + + public function clearIssueAssignment() + { + unset($this->issue_assignment); + } + + /** + * Information about the issue's assignment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueAssignment $var + * @return $this + */ + public function setIssueAssignment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueAssignment::class); + $this->issue_assignment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel.php new file mode 100644 index 000000000000..5f48567214a1 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel.php @@ -0,0 +1,425 @@ +google.cloud.contactcenterinsights.v1.IssueModel + */ +class IssueModel extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the issue model. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The representative name for the issue model. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Output only. The time at which this issue model was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The most recent time at which the issue model was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Number of issues in this issue model. + * + * Generated from protobuf field int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $issue_count = 0; + /** + * Output only. State of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Configs for the input data that used to create the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6; + */ + protected $input_data_config = null; + /** + * Output only. Immutable. The issue model's label statistics on its training + * data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $training_stats = null; + /** + * Type of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9; + */ + protected $model_type = 0; + /** + * Language of the model. + * + * Generated from protobuf field string language_code = 10; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the issue model. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * @type string $display_name + * The representative name for the issue model. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this issue model was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The most recent time at which the issue model was updated. + * @type int|string $issue_count + * Output only. Number of issues in this issue model. + * @type int $state + * Output only. State of the model. + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModel\InputDataConfig $input_data_config + * Configs for the input data that used to create the issue model. + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $training_stats + * Output only. Immutable. The issue model's label statistics on its training + * data. + * @type int $model_type + * Type of the model. + * @type string $language_code + * Language of the model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the issue model. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the issue model. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * + * 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; + } + + /** + * The representative name for the issue model. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The representative name for the issue model. + * + * 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 time at which this issue model 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 this issue model 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; + } + + /** + * Output only. The most recent time at which the issue model 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 most recent time at which the issue model 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. Number of issues in this issue model. + * + * Generated from protobuf field int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getIssueCount() + { + return $this->issue_count; + } + + /** + * Output only. Number of issues in this issue model. + * + * Generated from protobuf field int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setIssueCount($var) + { + GPBUtil::checkInt64($var); + $this->issue_count = $var; + + return $this; + } + + /** + * Output only. State of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\IssueModel\State::class); + $this->state = $var; + + return $this; + } + + /** + * Configs for the input data that used to create the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModel\InputDataConfig|null + */ + public function getInputDataConfig() + { + return $this->input_data_config; + } + + public function hasInputDataConfig() + { + return isset($this->input_data_config); + } + + public function clearInputDataConfig() + { + unset($this->input_data_config); + } + + /** + * Configs for the input data that used to create the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel\InputDataConfig $var + * @return $this + */ + public function setInputDataConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModel\InputDataConfig::class); + $this->input_data_config = $var; + + return $this; + } + + /** + * Output only. Immutable. The issue model's label statistics on its training + * data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats|null + */ + public function getTrainingStats() + { + return $this->training_stats; + } + + public function hasTrainingStats() + { + return isset($this->training_stats); + } + + public function clearTrainingStats() + { + unset($this->training_stats); + } + + /** + * Output only. Immutable. The issue model's label statistics on its training + * data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $var + * @return $this + */ + public function setTrainingStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats::class); + $this->training_stats = $var; + + return $this; + } + + /** + * Type of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9; + * @return int + */ + public function getModelType() + { + return $this->model_type; + } + + /** + * Type of the model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9; + * @param int $var + * @return $this + */ + public function setModelType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\IssueModel\ModelType::class); + $this->model_type = $var; + + return $this; + } + + /** + * Language of the model. + * + * Generated from protobuf field string language_code = 10; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Language of the model. + * + * Generated from protobuf field string language_code = 10; + * @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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/InputDataConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/InputDataConfig.php new file mode 100644 index 000000000000..4a40b7cb1ee0 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/InputDataConfig.php @@ -0,0 +1,155 @@ +google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig + */ +class InputDataConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Medium of conversations used in training data. This field is being + * deprecated. To specify the medium to be used in training a new issue + * model, set the `medium` field on `filter`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [deprecated = true]; + * @deprecated + */ + protected $medium = 0; + /** + * Output only. Number of conversations used in training. Output only. + * + * Generated from protobuf field int64 training_conversations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $training_conversations_count = 0; + /** + * A filter to reduce the conversations used for training the model to a + * specific subset. + * + * Generated from protobuf field string filter = 3; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $medium + * Medium of conversations used in training data. This field is being + * deprecated. To specify the medium to be used in training a new issue + * model, set the `medium` field on `filter`. + * @type int|string $training_conversations_count + * Output only. Number of conversations used in training. Output only. + * @type string $filter + * A filter to reduce the conversations used for training the model to a + * specific subset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Medium of conversations used in training data. This field is being + * deprecated. To specify the medium to be used in training a new issue + * model, set the `medium` field on `filter`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [deprecated = true]; + * @return int + * @deprecated + */ + public function getMedium() + { + @trigger_error('medium is deprecated.', E_USER_DEPRECATED); + return $this->medium; + } + + /** + * Medium of conversations used in training data. This field is being + * deprecated. To specify the medium to be used in training a new issue + * model, set the `medium` field on `filter`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setMedium($var) + { + @trigger_error('medium is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\Medium::class); + $this->medium = $var; + + return $this; + } + + /** + * Output only. Number of conversations used in training. Output only. + * + * Generated from protobuf field int64 training_conversations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTrainingConversationsCount() + { + return $this->training_conversations_count; + } + + /** + * Output only. Number of conversations used in training. Output only. + * + * Generated from protobuf field int64 training_conversations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTrainingConversationsCount($var) + { + GPBUtil::checkInt64($var); + $this->training_conversations_count = $var; + + return $this; + } + + /** + * A filter to reduce the conversations used for training the model to a + * specific subset. + * + * Generated from protobuf field string filter = 3; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce the conversations used for training the model to a + * specific subset. + * + * 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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InputDataConfig::class, \Google\Cloud\ContactCenterInsights\V1\IssueModel_InputDataConfig::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/ModelType.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/ModelType.php new file mode 100644 index 000000000000..f92a0416a08b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/ModelType.php @@ -0,0 +1,64 @@ +google.cloud.contactcenterinsights.v1.IssueModel.ModelType + */ +class ModelType +{ + /** + * Unspecified model type. + * + * Generated from protobuf enum MODEL_TYPE_UNSPECIFIED = 0; + */ + const MODEL_TYPE_UNSPECIFIED = 0; + /** + * Type V1. + * + * Generated from protobuf enum TYPE_V1 = 1; + */ + const TYPE_V1 = 1; + /** + * Type V2. + * + * Generated from protobuf enum TYPE_V2 = 2; + */ + const TYPE_V2 = 2; + + private static $valueToName = [ + self::MODEL_TYPE_UNSPECIFIED => 'MODEL_TYPE_UNSPECIFIED', + self::TYPE_V1 => 'TYPE_V1', + self::TYPE_V2 => 'TYPE_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(ModelType::class, \Google\Cloud\ContactCenterInsights\V1\IssueModel_ModelType::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/State.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/State.php new file mode 100644 index 000000000000..9092c5c9a341 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModel/State.php @@ -0,0 +1,86 @@ +google.cloud.contactcenterinsights.v1.IssueModel.State + */ +class State +{ + /** + * Unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Model is not deployed but is ready to deploy. + * + * Generated from protobuf enum UNDEPLOYED = 1; + */ + const UNDEPLOYED = 1; + /** + * Model is being deployed. + * + * Generated from protobuf enum DEPLOYING = 2; + */ + const DEPLOYING = 2; + /** + * Model is deployed and is ready to be used. A model can only be used in + * analysis if it's in this state. + * + * Generated from protobuf enum DEPLOYED = 3; + */ + const DEPLOYED = 3; + /** + * Model is being undeployed. + * + * Generated from protobuf enum UNDEPLOYING = 4; + */ + const UNDEPLOYING = 4; + /** + * Model is being deleted. + * + * Generated from protobuf enum DELETING = 5; + */ + const DELETING = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::UNDEPLOYED => 'UNDEPLOYED', + self::DEPLOYING => 'DEPLOYING', + self::DEPLOYED => 'DEPLOYED', + self::UNDEPLOYING => 'UNDEPLOYING', + 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\ContactCenterInsights\V1\IssueModel_State::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats.php new file mode 100644 index 000000000000..13e20a42460f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats.php @@ -0,0 +1,139 @@ +google.cloud.contactcenterinsights.v1.IssueModelLabelStats + */ +class IssueModelLabelStats extends \Google\Protobuf\Internal\Message +{ + /** + * Number of conversations the issue model has analyzed at this point in time. + * + * Generated from protobuf field int64 analyzed_conversations_count = 1; + */ + protected $analyzed_conversations_count = 0; + /** + * Number of analyzed conversations for which no issue was applicable at this + * point in time. + * + * Generated from protobuf field int64 unclassified_conversations_count = 2; + */ + protected $unclassified_conversations_count = 0; + /** + * Statistics on each issue. Key is the issue's resource name. + * + * Generated from protobuf field map issue_stats = 3; + */ + private $issue_stats; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $analyzed_conversations_count + * Number of conversations the issue model has analyzed at this point in time. + * @type int|string $unclassified_conversations_count + * Number of analyzed conversations for which no issue was applicable at this + * point in time. + * @type array|\Google\Protobuf\Internal\MapField $issue_stats + * Statistics on each issue. Key is the issue's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Number of conversations the issue model has analyzed at this point in time. + * + * Generated from protobuf field int64 analyzed_conversations_count = 1; + * @return int|string + */ + public function getAnalyzedConversationsCount() + { + return $this->analyzed_conversations_count; + } + + /** + * Number of conversations the issue model has analyzed at this point in time. + * + * Generated from protobuf field int64 analyzed_conversations_count = 1; + * @param int|string $var + * @return $this + */ + public function setAnalyzedConversationsCount($var) + { + GPBUtil::checkInt64($var); + $this->analyzed_conversations_count = $var; + + return $this; + } + + /** + * Number of analyzed conversations for which no issue was applicable at this + * point in time. + * + * Generated from protobuf field int64 unclassified_conversations_count = 2; + * @return int|string + */ + public function getUnclassifiedConversationsCount() + { + return $this->unclassified_conversations_count; + } + + /** + * Number of analyzed conversations for which no issue was applicable at this + * point in time. + * + * Generated from protobuf field int64 unclassified_conversations_count = 2; + * @param int|string $var + * @return $this + */ + public function setUnclassifiedConversationsCount($var) + { + GPBUtil::checkInt64($var); + $this->unclassified_conversations_count = $var; + + return $this; + } + + /** + * Statistics on each issue. Key is the issue's resource name. + * + * Generated from protobuf field map issue_stats = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getIssueStats() + { + return $this->issue_stats; + } + + /** + * Statistics on each issue. Key is the issue's resource name. + * + * Generated from protobuf field map issue_stats = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setIssueStats($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats\IssueStats::class); + $this->issue_stats = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats/IssueStats.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats/IssueStats.php new file mode 100644 index 000000000000..b6e19bb189f4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelLabelStats/IssueStats.php @@ -0,0 +1,146 @@ +google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats + */ +class IssueStats extends \Google\Protobuf\Internal\Message +{ + /** + * Issue resource. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * Generated from protobuf field string issue = 1; + */ + protected $issue = ''; + /** + * Number of conversations attached to the issue at this point in time. + * + * Generated from protobuf field int64 labeled_conversations_count = 2; + */ + protected $labeled_conversations_count = 0; + /** + * Display name of the issue. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issue + * Issue resource. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @type int|string $labeled_conversations_count + * Number of conversations attached to the issue at this point in time. + * @type string $display_name + * Display name of the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Issue resource. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * Generated from protobuf field string issue = 1; + * @return string + */ + public function getIssue() + { + return $this->issue; + } + + /** + * Issue resource. + * Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * + * Generated from protobuf field string issue = 1; + * @param string $var + * @return $this + */ + public function setIssue($var) + { + GPBUtil::checkString($var, True); + $this->issue = $var; + + return $this; + } + + /** + * Number of conversations attached to the issue at this point in time. + * + * Generated from protobuf field int64 labeled_conversations_count = 2; + * @return int|string + */ + public function getLabeledConversationsCount() + { + return $this->labeled_conversations_count; + } + + /** + * Number of conversations attached to the issue at this point in time. + * + * Generated from protobuf field int64 labeled_conversations_count = 2; + * @param int|string $var + * @return $this + */ + public function setLabeledConversationsCount($var) + { + GPBUtil::checkInt64($var); + $this->labeled_conversations_count = $var; + + return $this; + } + + /** + * Display name of the issue. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the issue. + * + * 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(IssueStats::class, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats_IssueStats::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelResult.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelResult.php new file mode 100644 index 000000000000..80a0ea58e065 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/IssueModelResult.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.IssueModelResult + */ +class IssueModelResult extends \Google\Protobuf\Internal\Message +{ + /** + * Issue model that generates the result. + * Format: projects/{project}/locations/{location}/issueModels/{issue_model} + * + * Generated from protobuf field string issue_model = 1 [(.google.api.resource_reference) = { + */ + protected $issue_model = ''; + /** + * All the matched issues. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueAssignment issues = 2; + */ + private $issues; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issue_model + * Issue model that generates the result. + * Format: projects/{project}/locations/{location}/issueModels/{issue_model} + * @type array<\Google\Cloud\ContactCenterInsights\V1\IssueAssignment>|\Google\Protobuf\Internal\RepeatedField $issues + * All the matched issues. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Issue model that generates the result. + * Format: projects/{project}/locations/{location}/issueModels/{issue_model} + * + * Generated from protobuf field string issue_model = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getIssueModel() + { + return $this->issue_model; + } + + /** + * Issue model that generates the result. + * Format: projects/{project}/locations/{location}/issueModels/{issue_model} + * + * Generated from protobuf field string issue_model = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIssueModel($var) + { + GPBUtil::checkString($var, True); + $this->issue_model = $var; + + return $this; + } + + /** + * All the matched issues. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueAssignment issues = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssues() + { + return $this->issues; + } + + /** + * All the matched issues. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueAssignment issues = 2; + * @param array<\Google\Cloud\ContactCenterInsights\V1\IssueAssignment>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\IssueAssignment::class); + $this->issues = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesRequest.php new file mode 100644 index 000000000000..0ca0f63bbf9a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesRequest.php @@ -0,0 +1,207 @@ +google.cloud.contactcenterinsights.v1.ListAnalysesRequest + */ +class ListAnalysesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the analyses. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of analyses to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The value returned by the last `ListAnalysesResponse`; indicates + * that this is a continuation of a prior `ListAnalyses` call and + * the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource of the analyses. Please see + * {@see ContactCenterInsightsClient::conversationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListAnalysesRequest + * + * @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 of the analyses. + * @type int $page_size + * The maximum number of analyses to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * @type string $page_token + * The value returned by the last `ListAnalysesResponse`; indicates + * that this is a continuation of a prior `ListAnalyses` call and + * the system should return the next page of data. + * @type string $filter + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the analyses. + * + * Generated 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 of the analyses. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 analyses to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of analyses to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * 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 value returned by the last `ListAnalysesResponse`; indicates + * that this is a continuation of a prior `ListAnalyses` call and + * the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value returned by the last `ListAnalysesResponse`; indicates + * that this is a continuation of a prior `ListAnalyses` call and + * the system should return the next page of data. + * + * 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 filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesResponse.php new file mode 100644 index 000000000000..c1a8d2ea3c7c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListAnalysesResponse.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.ListAnalysesResponse + */ +class ListAnalysesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The analyses that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Analysis analyses = 1; + */ + private $analyses; + /** + * A token, which can be sent as `page_token` 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\ContactCenterInsights\V1\Analysis>|\Google\Protobuf\Internal\RepeatedField $analyses + * The analyses that match 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\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The analyses that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Analysis analyses = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnalyses() + { + return $this->analyses; + } + + /** + * The analyses that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Analysis analyses = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Analysis>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnalyses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Analysis::class); + $this->analyses = $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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsRequest.php new file mode 100644 index 000000000000..42dfc06a5ec7 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsRequest.php @@ -0,0 +1,323 @@ +google.cloud.contactcenterinsights.v1.ListConversationsRequest + */ +class ListConversationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of conversations to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call + * might return fewer results than the requested page size. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The value returned by the last `ListConversationsResponse`. This value + * indicates that this is a continuation of a prior `ListConversations` call + * and that the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Optional. The attribute by which to order conversations in the response. + * If empty, conversations will be ordered by descending creation time. + * Supported values are one of the following: + * * create_time + * * customer_satisfaction_rating + * * duration + * * latest_analysis + * * start_time + * * turn_count + * The default sort order is ascending. To specify order, append `asc` or + * `desc` (`create_time desc`). + * For more details, see [Google AIPs + * Ordering](https://google.aip.dev/132#ordering). + * + * Generated from protobuf field string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * The level of details of the conversation. Default is `BASIC`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 5; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent resource of the conversation. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListConversationsRequest + * + * @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 of the conversation. + * @type int $page_size + * The maximum number of conversations to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call + * might return fewer results than the requested page size. + * @type string $page_token + * The value returned by the last `ListConversationsResponse`. This value + * indicates that this is a continuation of a prior `ListConversations` call + * and that the system should return the next page of data. + * @type string $filter + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * @type string $order_by + * Optional. The attribute by which to order conversations in the response. + * If empty, conversations will be ordered by descending creation time. + * Supported values are one of the following: + * * create_time + * * customer_satisfaction_rating + * * duration + * * latest_analysis + * * start_time + * * turn_count + * The default sort order is ascending. To specify order, append `asc` or + * `desc` (`create_time desc`). + * For more details, see [Google AIPs + * Ordering](https://google.aip.dev/132#ordering). + * @type int $view + * The level of details of the conversation. Default is `BASIC`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the conversation. + * + * Generated 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 of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 conversations to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call + * might return fewer results than the requested page size. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of conversations to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call + * might return fewer results than the requested 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; + } + + /** + * The value returned by the last `ListConversationsResponse`. This value + * indicates that this is a continuation of a prior `ListConversations` call + * and that the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value returned by the last `ListConversationsResponse`. This value + * indicates that this is a continuation of a prior `ListConversations` call + * and that the system should return the next page of data. + * + * 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 filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying + * conversations with specific properties. + * + * 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. The attribute by which to order conversations in the response. + * If empty, conversations will be ordered by descending creation time. + * Supported values are one of the following: + * * create_time + * * customer_satisfaction_rating + * * duration + * * latest_analysis + * * start_time + * * turn_count + * The default sort order is ascending. To specify order, append `asc` or + * `desc` (`create_time desc`). + * For more details, see [Google AIPs + * Ordering](https://google.aip.dev/132#ordering). + * + * Generated from protobuf field string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. The attribute by which to order conversations in the response. + * If empty, conversations will be ordered by descending creation time. + * Supported values are one of the following: + * * create_time + * * customer_satisfaction_rating + * * duration + * * latest_analysis + * * start_time + * * turn_count + * The default sort order is ascending. To specify order, append `asc` or + * `desc` (`create_time desc`). + * For more details, see [Google AIPs + * Ordering](https://google.aip.dev/132#ordering). + * + * 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; + } + + /** + * The level of details of the conversation. Default is `BASIC`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 5; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The level of details of the conversation. Default is `BASIC`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationView view = 5; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsResponse.php new file mode 100644 index 000000000000..d43bf9bd86f7 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListConversationsResponse.php @@ -0,0 +1,109 @@ +google.cloud.contactcenterinsights.v1.ListConversationsResponse + */ +class ListConversationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The conversations that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation conversations = 1; + */ + private $conversations; + /** + * A token which can be sent as `page_token` to retrieve the next page. If + * this field is set, it means there is another page available. If it is not + * set, it means no other pages are available. + * + * 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\ContactCenterInsights\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $conversations + * The conversations that match 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 set, it means there is another page available. If it is not + * set, it means no other pages are available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The conversations that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation conversations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConversations() + { + return $this->conversations; + } + + /** + * The conversations that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation conversations = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConversations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Conversation::class); + $this->conversations = $arr; + + return $this; + } + + /** + * A token which can be sent as `page_token` to retrieve the next page. If + * this field is set, it means there is another page available. If it is not + * set, it means no other pages are available. + * + * 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 set, it means there is another page available. If it is not + * set, it means no other pages are available. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsRequest.php new file mode 100644 index 000000000000..797cc70091fb --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.ListIssueModelsRequest + */ +class ListIssueModelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * @param string $parent Required. The parent resource of the issue model. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListIssueModelsRequest + * + * @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 of the issue model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the issue model. + * + * Generated 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 of the issue model. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsResponse.php new file mode 100644 index 000000000000..fd1955c2afaf --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssueModelsResponse.php @@ -0,0 +1,67 @@ +google.cloud.contactcenterinsights.v1.ListIssueModelsResponse + */ +class ListIssueModelsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The issue models that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1; + */ + private $issue_models; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $issue_models + * The issue models that match the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The issue models that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssueModels() + { + return $this->issue_models; + } + + /** + * The issue models that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssueModels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\IssueModel::class); + $this->issue_models = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesRequest.php new file mode 100644 index 000000000000..9c33a0640c2a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.ListIssuesRequest + */ +class ListIssuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the issue. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * @param string $parent Required. The parent resource of the issue. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListIssuesRequest + * + * @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 of the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the issue. + * + * Generated 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 of the issue. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesResponse.php new file mode 100644 index 000000000000..3bb883650053 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListIssuesResponse.php @@ -0,0 +1,67 @@ +google.cloud.contactcenterinsights.v1.ListIssuesResponse + */ +class ListIssuesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The issues that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Issue issues = 1; + */ + private $issues; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\ContactCenterInsights\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $issues + * The issues that match the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The issues that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Issue issues = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssues() + { + return $this->issues; + } + + /** + * The issues that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Issue issues = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Issue::class); + $this->issues = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersRequest.php new file mode 100644 index 000000000000..531bf84f176f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersRequest.php @@ -0,0 +1,207 @@ +google.cloud.contactcenterinsights.v1.ListPhraseMatchersRequest + */ +class ListPhraseMatchersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the phrase matcher. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of phrase matchers to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The value returned by the last `ListPhraseMatchersResponse`. This value + * indicates that this is a continuation of a prior `ListPhraseMatchers` call + * and that the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter to reduce results to a specific subset. Useful for querying + * phrase matchers with specific properties. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource of the phrase matcher. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListPhraseMatchersRequest + * + * @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 of the phrase matcher. + * @type int $page_size + * The maximum number of phrase matchers to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * @type string $page_token + * The value returned by the last `ListPhraseMatchersResponse`. This value + * indicates that this is a continuation of a prior `ListPhraseMatchers` call + * and that the system should return the next page of data. + * @type string $filter + * A filter to reduce results to a specific subset. Useful for querying + * phrase matchers with specific properties. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the phrase matcher. + * + * Generated 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 of the phrase matcher. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 phrase matchers to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of phrase matchers to return in the response. If this + * value is zero, the service will select a default size. A call might return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * 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 value returned by the last `ListPhraseMatchersResponse`. This value + * indicates that this is a continuation of a prior `ListPhraseMatchers` call + * and that the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value returned by the last `ListPhraseMatchersResponse`. This value + * indicates that this is a continuation of a prior `ListPhraseMatchers` call + * and that the system should return the next page of data. + * + * 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 filter to reduce results to a specific subset. Useful for querying + * phrase matchers with specific properties. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying + * phrase matchers with specific properties. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersResponse.php new file mode 100644 index 000000000000..a757fadd7624 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListPhraseMatchersResponse.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse + */ +class ListPhraseMatchersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The phrase matchers that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matchers = 1; + */ + private $phrase_matchers; + /** + * A token, which can be sent as `page_token` 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\ContactCenterInsights\V1\PhraseMatcher>|\Google\Protobuf\Internal\RepeatedField $phrase_matchers + * The phrase matchers that match 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\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The phrase matchers that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matchers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhraseMatchers() + { + return $this->phrase_matchers; + } + + /** + * The phrase matchers that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matchers = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatcher>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhraseMatchers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher::class); + $this->phrase_matchers = $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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsRequest.php new file mode 100644 index 000000000000..6beedf23a10a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsRequest.php @@ -0,0 +1,169 @@ +google.cloud.contactcenterinsights.v1.ListViewsRequest + */ +class ListViewsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the views. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of views to return in the response. If this + * value is zero, the service will select a default size. A call may return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The value returned by the last `ListViewsResponse`; indicates + * that this is a continuation of a prior `ListViews` call and + * the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent resource of the views. Please see + * {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\ListViewsRequest + * + * @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 of the views. + * @type int $page_size + * The maximum number of views to return in the response. If this + * value is zero, the service will select a default size. A call may return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * @type string $page_token + * The value returned by the last `ListViewsResponse`; indicates + * that this is a continuation of a prior `ListViews` call and + * the system should return the next page of data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the views. + * + * Generated 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 of the views. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 views to return in the response. If this + * value is zero, the service will select a default size. A call may return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of views to return in the response. If this + * value is zero, the service will select a default size. A call may return + * fewer objects than requested. A non-empty `next_page_token` in the response + * indicates that more data is available. + * + * 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 value returned by the last `ListViewsResponse`; indicates + * that this is a continuation of a prior `ListViews` call and + * the system should return the next page of data. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value returned by the last `ListViewsResponse`; indicates + * that this is a continuation of a prior `ListViews` call and + * the system should return the next page of data. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsResponse.php new file mode 100644 index 000000000000..18ad9605fc2b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/ListViewsResponse.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.ListViewsResponse + */ +class ListViewsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The views that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.View views = 1; + */ + private $views; + /** + * A token, which can be sent as `page_token` 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\ContactCenterInsights\V1\View>|\Google\Protobuf\Internal\RepeatedField $views + * The views that match 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\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * The views that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.View views = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getViews() + { + return $this->views; + } + + /** + * The views that match the request. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.View views = 1; + * @param array<\Google\Cloud\ContactCenterInsights\V1\View>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setViews($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\View::class); + $this->views = $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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchData.php new file mode 100644 index 000000000000..976b4005d028 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchData.php @@ -0,0 +1,102 @@ +google.cloud.contactcenterinsights.v1.PhraseMatchData + */ +class PhraseMatchData extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifier (the resource name) of the phrase matcher. + * + * Generated from protobuf field string phrase_matcher = 1; + */ + protected $phrase_matcher = ''; + /** + * The human-readable name of the phrase matcher. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $phrase_matcher + * The unique identifier (the resource name) of the phrase matcher. + * @type string $display_name + * The human-readable name of the phrase matcher. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The unique identifier (the resource name) of the phrase matcher. + * + * Generated from protobuf field string phrase_matcher = 1; + * @return string + */ + public function getPhraseMatcher() + { + return $this->phrase_matcher; + } + + /** + * The unique identifier (the resource name) of the phrase matcher. + * + * Generated from protobuf field string phrase_matcher = 1; + * @param string $var + * @return $this + */ + public function setPhraseMatcher($var) + { + GPBUtil::checkString($var, True); + $this->phrase_matcher = $var; + + return $this; + } + + /** + * The human-readable name of the phrase matcher. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name of the phrase matcher. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRule.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRule.php new file mode 100644 index 000000000000..7c378d92751c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRule.php @@ -0,0 +1,153 @@ +google.cloud.contactcenterinsights.v1.PhraseMatchRule + */ +class PhraseMatchRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The phrase to be matched. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Specifies whether the phrase must be missing from the transcript segment or + * present in the transcript segment. + * + * Generated from protobuf field bool negated = 2; + */ + protected $negated = false; + /** + * Provides additional information about the rule that specifies how to apply + * the rule. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; + */ + protected $config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Required. The phrase to be matched. + * @type bool $negated + * Specifies whether the phrase must be missing from the transcript segment or + * present in the transcript segment. + * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig $config + * Provides additional information about the rule that specifies how to apply + * the rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The phrase to be matched. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The phrase to be matched. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Specifies whether the phrase must be missing from the transcript segment or + * present in the transcript segment. + * + * Generated from protobuf field bool negated = 2; + * @return bool + */ + public function getNegated() + { + return $this->negated; + } + + /** + * Specifies whether the phrase must be missing from the transcript segment or + * present in the transcript segment. + * + * Generated from protobuf field bool negated = 2; + * @param bool $var + * @return $this + */ + public function setNegated($var) + { + GPBUtil::checkBool($var); + $this->negated = $var; + + return $this; + } + + /** + * Provides additional information about the rule that specifies how to apply + * the rule. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Provides additional information about the rule that specifies how to apply + * the rule. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig::class); + $this->config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleConfig.php new file mode 100644 index 000000000000..bc1b1f53a206 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleConfig.php @@ -0,0 +1,75 @@ +google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig + */ +class PhraseMatchRuleConfig extends \Google\Protobuf\Internal\Message +{ + protected $config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig $exact_match_config + * The configuration for the exact match rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The configuration for the exact match rule. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExactMatchConfig exact_match_config = 1; + * @return \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig|null + */ + public function getExactMatchConfig() + { + return $this->readOneof(1); + } + + public function hasExactMatchConfig() + { + return $this->hasOneof(1); + } + + /** + * The configuration for the exact match rule. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ExactMatchConfig exact_match_config = 1; + * @param \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig $var + * @return $this + */ + public function setExactMatchConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getConfig() + { + return $this->whichOneof("config"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup.php new file mode 100644 index 000000000000..3349ff2378e3 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup.php @@ -0,0 +1,101 @@ +google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup + */ +class PhraseMatchRuleGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type of this phrase match rule group. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * A list of phrase match rules that are included in this group. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2; + */ + private $phrase_match_rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Required. The type of this phrase match rule group. + * @type array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule>|\Google\Protobuf\Internal\RepeatedField $phrase_match_rules + * A list of phrase match rules that are included in this group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type of this phrase match rule group. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of this phrase match rule group. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup\PhraseMatchRuleGroupType::class); + $this->type = $var; + + return $this; + } + + /** + * A list of phrase match rules that are included in this group. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhraseMatchRules() + { + return $this->phrase_match_rules; + } + + /** + * A list of phrase match rules that are included in this group. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2; + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhraseMatchRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule::class); + $this->phrase_match_rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup/PhraseMatchRuleGroupType.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup/PhraseMatchRuleGroupType.php new file mode 100644 index 000000000000..109fdfea30d9 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatchRuleGroup/PhraseMatchRuleGroupType.php @@ -0,0 +1,65 @@ +google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType + */ +class PhraseMatchRuleGroupType +{ + /** + * Unspecified. + * + * Generated from protobuf enum PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED = 0; + */ + const PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED = 0; + /** + * Must meet all phrase match rules or there is no match. + * + * Generated from protobuf enum ALL_OF = 1; + */ + const ALL_OF = 1; + /** + * If any of the phrase match rules are met, there is a match. + * + * Generated from protobuf enum ANY_OF = 2; + */ + const ANY_OF = 2; + + private static $valueToName = [ + self::PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED => 'PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED', + self::ALL_OF => 'ALL_OF', + self::ANY_OF => 'ANY_OF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PhraseMatchRuleGroupType::class, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup_PhraseMatchRuleGroupType::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher.php new file mode 100644 index 000000000000..44a2e86faddd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher.php @@ -0,0 +1,477 @@ +google.cloud.contactcenterinsights.v1.PhraseMatcher + */ +class PhraseMatcher extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the phrase matcher. + * Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. Immutable. The revision ID of the phrase matcher. + * A new revision is committed whenever the matcher is changed, except when it + * is activated or deactivated. A server generated random ID will be used. + * Example: locations/global/phraseMatchers/my-first-matcher@1234567 + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_id = ''; + /** + * The customized version tag to use for the phrase matcher. If not specified, + * it will default to `revision_id`. + * + * Generated from protobuf field string version_tag = 3; + */ + protected $version_tag = ''; + /** + * Output only. The timestamp of when the revision was created. It is also the + * create time when a new matcher is added. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_create_time = null; + /** + * The human-readable name of the phrase matcher. + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Required. The type of this phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Applies the phrase matcher only when it is active. + * + * Generated from protobuf field bool active = 7; + */ + protected $active = false; + /** + * A list of phase match rule groups that are included in this matcher. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8; + */ + private $phrase_match_rule_groups; + /** + * Output only. The most recent time at which the activation status was + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $activation_update_time = null; + /** + * The role whose utterances the phrase matcher should be matched + * against. If the role is ROLE_UNSPECIFIED it will be matched against any + * utterances in the transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10; + */ + protected $role_match = 0; + /** + * Output only. The most recent time at which the phrase matcher was 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 + * The resource name of the phrase matcher. + * Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * @type string $revision_id + * Output only. Immutable. The revision ID of the phrase matcher. + * A new revision is committed whenever the matcher is changed, except when it + * is activated or deactivated. A server generated random ID will be used. + * Example: locations/global/phraseMatchers/my-first-matcher@1234567 + * @type string $version_tag + * The customized version tag to use for the phrase matcher. If not specified, + * it will default to `revision_id`. + * @type \Google\Protobuf\Timestamp $revision_create_time + * Output only. The timestamp of when the revision was created. It is also the + * create time when a new matcher is added. + * @type string $display_name + * The human-readable name of the phrase matcher. + * @type int $type + * Required. The type of this phrase matcher. + * @type bool $active + * Applies the phrase matcher only when it is active. + * @type array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup>|\Google\Protobuf\Internal\RepeatedField $phrase_match_rule_groups + * A list of phase match rule groups that are included in this matcher. + * @type \Google\Protobuf\Timestamp $activation_update_time + * Output only. The most recent time at which the activation status was + * updated. + * @type int $role_match + * The role whose utterances the phrase matcher should be matched + * against. If the role is ROLE_UNSPECIFIED it will be matched against any + * utterances in the transcript. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The most recent time at which the phrase matcher was updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the phrase matcher. + * Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the phrase matcher. + * Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * + * 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. Immutable. The revision ID of the phrase matcher. + * A new revision is committed whenever the matcher is changed, except when it + * is activated or deactivated. A server generated random ID will be used. + * Example: locations/global/phraseMatchers/my-first-matcher@1234567 + * + * Generated from protobuf field string revision_id = 2 [(.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 phrase matcher. + * A new revision is committed whenever the matcher is changed, except when it + * is activated or deactivated. A server generated random ID will be used. + * Example: locations/global/phraseMatchers/my-first-matcher@1234567 + * + * Generated from protobuf field string revision_id = 2 [(.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; + } + + /** + * The customized version tag to use for the phrase matcher. If not specified, + * it will default to `revision_id`. + * + * Generated from protobuf field string version_tag = 3; + * @return string + */ + public function getVersionTag() + { + return $this->version_tag; + } + + /** + * The customized version tag to use for the phrase matcher. If not specified, + * it will default to `revision_id`. + * + * Generated from protobuf field string version_tag = 3; + * @param string $var + * @return $this + */ + public function setVersionTag($var) + { + GPBUtil::checkString($var, True); + $this->version_tag = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the revision was created. It is also the + * create time when a new matcher is added. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 4 [(.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. The timestamp of when the revision was created. It is also the + * create time when a new matcher is added. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 4 [(.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; + } + + /** + * The human-readable name of the phrase matcher. + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name of the phrase matcher. + * + * 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; + } + + /** + * Required. The type of this phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of this phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher\PhraseMatcherType::class); + $this->type = $var; + + return $this; + } + + /** + * Applies the phrase matcher only when it is active. + * + * Generated from protobuf field bool active = 7; + * @return bool + */ + public function getActive() + { + return $this->active; + } + + /** + * Applies the phrase matcher only when it is active. + * + * Generated from protobuf field bool active = 7; + * @param bool $var + * @return $this + */ + public function setActive($var) + { + GPBUtil::checkBool($var); + $this->active = $var; + + return $this; + } + + /** + * A list of phase match rule groups that are included in this matcher. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhraseMatchRuleGroups() + { + return $this->phrase_match_rule_groups; + } + + /** + * A list of phase match rule groups that are included in this matcher. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8; + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhraseMatchRuleGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup::class); + $this->phrase_match_rule_groups = $arr; + + return $this; + } + + /** + * Output only. The most recent time at which the activation status was + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getActivationUpdateTime() + { + return $this->activation_update_time; + } + + public function hasActivationUpdateTime() + { + return isset($this->activation_update_time); + } + + public function clearActivationUpdateTime() + { + unset($this->activation_update_time); + } + + /** + * Output only. The most recent time at which the activation status was + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setActivationUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->activation_update_time = $var; + + return $this; + } + + /** + * The role whose utterances the phrase matcher should be matched + * against. If the role is ROLE_UNSPECIFIED it will be matched against any + * utterances in the transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10; + * @return int + */ + public function getRoleMatch() + { + return $this->role_match; + } + + /** + * The role whose utterances the phrase matcher should be matched + * against. If the role is ROLE_UNSPECIFIED it will be matched against any + * utterances in the transcript. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10; + * @param int $var + * @return $this + */ + public function setRoleMatch($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\ConversationParticipant\Role::class); + $this->role_match = $var; + + return $this; + } + + /** + * Output only. The most recent time at which the phrase matcher was 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 most recent time at which the phrase matcher was 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher/PhraseMatcherType.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher/PhraseMatcherType.php new file mode 100644 index 000000000000..ba37adcff295 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/PhraseMatcher/PhraseMatcherType.php @@ -0,0 +1,65 @@ +google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType + */ +class PhraseMatcherType +{ + /** + * Unspecified. + * + * Generated from protobuf enum PHRASE_MATCHER_TYPE_UNSPECIFIED = 0; + */ + const PHRASE_MATCHER_TYPE_UNSPECIFIED = 0; + /** + * Must meet all phrase match rule groups or there is no match. + * + * Generated from protobuf enum ALL_OF = 1; + */ + const ALL_OF = 1; + /** + * If any of the phrase match rule groups are met, there is a match. + * + * Generated from protobuf enum ANY_OF = 2; + */ + const ANY_OF = 2; + + private static $valueToName = [ + self::PHRASE_MATCHER_TYPE_UNSPECIFIED => 'PHRASE_MATCHER_TYPE_UNSPECIFIED', + self::ALL_OF => 'ALL_OF', + self::ANY_OF => 'ANY_OF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PhraseMatcherType::class, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher_PhraseMatcherType::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RedactionConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RedactionConfig.php new file mode 100644 index 000000000000..293547129dc3 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RedactionConfig.php @@ -0,0 +1,123 @@ +google.cloud.contactcenterinsights.v1.RedactionConfig + */ +class RedactionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The fully-qualified DLP deidentify template resource name. + * Format: + * `projects/{project}/deidentifyTemplates/{template}` + * + * Generated from protobuf field string deidentify_template = 1; + */ + protected $deidentify_template = ''; + /** + * The fully-qualified DLP inspect template resource name. + * Format: + * `projects/{project}/locations/{location}/inspectTemplates/{template}` + * + * Generated from protobuf field string inspect_template = 2; + */ + protected $inspect_template = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $deidentify_template + * The fully-qualified DLP deidentify template resource name. + * Format: + * `projects/{project}/deidentifyTemplates/{template}` + * @type string $inspect_template + * The fully-qualified DLP inspect template resource name. + * Format: + * `projects/{project}/locations/{location}/inspectTemplates/{template}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The fully-qualified DLP deidentify template resource name. + * Format: + * `projects/{project}/deidentifyTemplates/{template}` + * + * Generated from protobuf field string deidentify_template = 1; + * @return string + */ + public function getDeidentifyTemplate() + { + return $this->deidentify_template; + } + + /** + * The fully-qualified DLP deidentify template resource name. + * Format: + * `projects/{project}/deidentifyTemplates/{template}` + * + * Generated from protobuf field string deidentify_template = 1; + * @param string $var + * @return $this + */ + public function setDeidentifyTemplate($var) + { + GPBUtil::checkString($var, True); + $this->deidentify_template = $var; + + return $this; + } + + /** + * The fully-qualified DLP inspect template resource name. + * Format: + * `projects/{project}/locations/{location}/inspectTemplates/{template}` + * + * Generated from protobuf field string inspect_template = 2; + * @return string + */ + public function getInspectTemplate() + { + return $this->inspect_template; + } + + /** + * The fully-qualified DLP inspect template resource name. + * Format: + * `projects/{project}/locations/{location}/inspectTemplates/{template}` + * + * Generated from protobuf field string inspect_template = 2; + * @param string $var + * @return $this + */ + public function setInspectTemplate($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation.php new file mode 100644 index 000000000000..4c7f365eabe0 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation.php @@ -0,0 +1,502 @@ +google.cloud.contactcenterinsights.v1.RuntimeAnnotation + */ +class RuntimeAnnotation extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifier of the annotation. + * Format: + * projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} + * + * Generated from protobuf field string annotation_id = 1; + */ + protected $annotation_id = ''; + /** + * The time at which this annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + */ + protected $create_time = null; + /** + * The boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary start_boundary = 3; + */ + protected $start_boundary = null; + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary end_boundary = 4; + */ + protected $end_boundary = null; + /** + * The feedback that the customer has about the answer in `data`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback answer_feedback = 5; + */ + protected $answer_feedback = null; + /** + * Explicit input used for generating the answer + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput user_input = 16; + */ + protected $user_input = null; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\ArticleSuggestionData $article_suggestion + * Agent Assist Article Suggestion data. + * @type \Google\Cloud\ContactCenterInsights\V1\FaqAnswerData $faq_answer + * Agent Assist FAQ answer data. + * @type \Google\Cloud\ContactCenterInsights\V1\SmartReplyData $smart_reply + * Agent Assist Smart Reply data. + * @type \Google\Cloud\ContactCenterInsights\V1\SmartComposeSuggestionData $smart_compose_suggestion + * Agent Assist Smart Compose suggestion data. + * @type \Google\Cloud\ContactCenterInsights\V1\DialogflowInteractionData $dialogflow_interaction + * Dialogflow interaction data. + * @type \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData $conversation_summarization_suggestion + * Conversation summarization suggestion data. + * @type string $annotation_id + * The unique identifier of the annotation. + * Format: + * projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} + * @type \Google\Protobuf\Timestamp $create_time + * The time at which this annotation was created. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $start_boundary + * The boundary in the conversation where the annotation starts, inclusive. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $end_boundary + * The boundary in the conversation where the annotation ends, inclusive. + * @type \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback $answer_feedback + * The feedback that the customer has about the answer in `data`. + * @type \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation\UserInput $user_input + * Explicit input used for generating the answer + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Agent Assist Article Suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ArticleSuggestionData article_suggestion = 6; + * @return \Google\Cloud\ContactCenterInsights\V1\ArticleSuggestionData|null + */ + public function getArticleSuggestion() + { + return $this->readOneof(6); + } + + public function hasArticleSuggestion() + { + return $this->hasOneof(6); + } + + /** + * Agent Assist Article Suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ArticleSuggestionData article_suggestion = 6; + * @param \Google\Cloud\ContactCenterInsights\V1\ArticleSuggestionData $var + * @return $this + */ + public function setArticleSuggestion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ArticleSuggestionData::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Agent Assist FAQ answer data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.FaqAnswerData faq_answer = 7; + * @return \Google\Cloud\ContactCenterInsights\V1\FaqAnswerData|null + */ + public function getFaqAnswer() + { + return $this->readOneof(7); + } + + public function hasFaqAnswer() + { + return $this->hasOneof(7); + } + + /** + * Agent Assist FAQ answer data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.FaqAnswerData faq_answer = 7; + * @param \Google\Cloud\ContactCenterInsights\V1\FaqAnswerData $var + * @return $this + */ + public function setFaqAnswer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\FaqAnswerData::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Agent Assist Smart Reply data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SmartReplyData smart_reply = 8; + * @return \Google\Cloud\ContactCenterInsights\V1\SmartReplyData|null + */ + public function getSmartReply() + { + return $this->readOneof(8); + } + + public function hasSmartReply() + { + return $this->hasOneof(8); + } + + /** + * Agent Assist Smart Reply data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SmartReplyData smart_reply = 8; + * @param \Google\Cloud\ContactCenterInsights\V1\SmartReplyData $var + * @return $this + */ + public function setSmartReply($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SmartReplyData::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Agent Assist Smart Compose suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData smart_compose_suggestion = 9; + * @return \Google\Cloud\ContactCenterInsights\V1\SmartComposeSuggestionData|null + */ + public function getSmartComposeSuggestion() + { + return $this->readOneof(9); + } + + public function hasSmartComposeSuggestion() + { + return $this->hasOneof(9); + } + + /** + * Agent Assist Smart Compose suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData smart_compose_suggestion = 9; + * @param \Google\Cloud\ContactCenterInsights\V1\SmartComposeSuggestionData $var + * @return $this + */ + public function setSmartComposeSuggestion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SmartComposeSuggestionData::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Dialogflow interaction data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DialogflowInteractionData dialogflow_interaction = 10; + * @return \Google\Cloud\ContactCenterInsights\V1\DialogflowInteractionData|null + */ + public function getDialogflowInteraction() + { + return $this->readOneof(10); + } + + public function hasDialogflowInteraction() + { + return $this->hasOneof(10); + } + + /** + * Dialogflow interaction data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.DialogflowInteractionData dialogflow_interaction = 10; + * @param \Google\Cloud\ContactCenterInsights\V1\DialogflowInteractionData $var + * @return $this + */ + public function setDialogflowInteraction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\DialogflowInteractionData::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Conversation summarization suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData conversation_summarization_suggestion = 12; + * @return \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData|null + */ + public function getConversationSummarizationSuggestion() + { + return $this->readOneof(12); + } + + public function hasConversationSummarizationSuggestion() + { + return $this->hasOneof(12); + } + + /** + * Conversation summarization suggestion data. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData conversation_summarization_suggestion = 12; + * @param \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData $var + * @return $this + */ + public function setConversationSummarizationSuggestion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ConversationSummarizationSuggestionData::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * The unique identifier of the annotation. + * Format: + * projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} + * + * Generated from protobuf field string annotation_id = 1; + * @return string + */ + public function getAnnotationId() + { + return $this->annotation_id; + } + + /** + * The unique identifier of the annotation. + * Format: + * projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} + * + * Generated from protobuf field string annotation_id = 1; + * @param string $var + * @return $this + */ + public function setAnnotationId($var) + { + GPBUtil::checkString($var, True); + $this->annotation_id = $var; + + return $this; + } + + /** + * The time at which this annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @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 at which this annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @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 boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary start_boundary = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary|null + */ + public function getStartBoundary() + { + return $this->start_boundary; + } + + public function hasStartBoundary() + { + return isset($this->start_boundary); + } + + public function clearStartBoundary() + { + unset($this->start_boundary); + } + + /** + * The boundary in the conversation where the annotation starts, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary start_boundary = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $var + * @return $this + */ + public function setStartBoundary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary::class); + $this->start_boundary = $var; + + return $this; + } + + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary end_boundary = 4; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary|null + */ + public function getEndBoundary() + { + return $this->end_boundary; + } + + public function hasEndBoundary() + { + return isset($this->end_boundary); + } + + public function clearEndBoundary() + { + unset($this->end_boundary); + } + + /** + * The boundary in the conversation where the annotation ends, inclusive. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotationBoundary end_boundary = 4; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary $var + * @return $this + */ + public function setEndBoundary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotationBoundary::class); + $this->end_boundary = $var; + + return $this; + } + + /** + * The feedback that the customer has about the answer in `data`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback answer_feedback = 5; + * @return \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback|null + */ + public function getAnswerFeedback() + { + return $this->answer_feedback; + } + + public function hasAnswerFeedback() + { + return isset($this->answer_feedback); + } + + public function clearAnswerFeedback() + { + unset($this->answer_feedback); + } + + /** + * The feedback that the customer has about the answer in `data`. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnswerFeedback answer_feedback = 5; + * @param \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback $var + * @return $this + */ + public function setAnswerFeedback($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnswerFeedback::class); + $this->answer_feedback = $var; + + return $this; + } + + /** + * Explicit input used for generating the answer + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput user_input = 16; + * @return \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation\UserInput|null + */ + public function getUserInput() + { + return $this->user_input; + } + + public function hasUserInput() + { + return isset($this->user_input); + } + + public function clearUserInput() + { + unset($this->user_input); + } + + /** + * Explicit input used for generating the answer + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput user_input = 16; + * @param \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation\UserInput $var + * @return $this + */ + public function setUserInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation\UserInput::class); + $this->user_input = $var; + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput.php new file mode 100644 index 000000000000..1c3a54ac06c4 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput.php @@ -0,0 +1,146 @@ +google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput + */ +class UserInput extends \Google\Protobuf\Internal\Message +{ + /** + * Query text. Article Search uses this to store the input query used + * to generate the search results. + * + * Generated from protobuf field string query = 1; + */ + protected $query = ''; + /** + * The resource name of associated generator. Format: + * `projects//locations//generators/` + * + * Generated from protobuf field string generator_name = 2; + */ + protected $generator_name = ''; + /** + * Query source for the answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3; + */ + protected $query_source = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Query text. Article Search uses this to store the input query used + * to generate the search results. + * @type string $generator_name + * The resource name of associated generator. Format: + * `projects//locations//generators/` + * @type int $query_source + * Query source for the answer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Query text. Article Search uses this to store the input query used + * to generate the search results. + * + * Generated from protobuf field string query = 1; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Query text. Article Search uses this to store the input query used + * to generate the search results. + * + * Generated from protobuf field string query = 1; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * The resource name of associated generator. Format: + * `projects//locations//generators/` + * + * Generated from protobuf field string generator_name = 2; + * @return string + */ + public function getGeneratorName() + { + return $this->generator_name; + } + + /** + * The resource name of associated generator. Format: + * `projects//locations//generators/` + * + * Generated from protobuf field string generator_name = 2; + * @param string $var + * @return $this + */ + public function setGeneratorName($var) + { + GPBUtil::checkString($var, True); + $this->generator_name = $var; + + return $this; + } + + /** + * Query source for the answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3; + * @return int + */ + public function getQuerySource() + { + return $this->query_source; + } + + /** + * Query source for the answer. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3; + * @param int $var + * @return $this + */ + public function setQuerySource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation\UserInput\QuerySource::class); + $this->query_source = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UserInput::class, \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation_UserInput::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput/QuerySource.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput/QuerySource.php new file mode 100644 index 000000000000..cbdf87a560cd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/RuntimeAnnotation/UserInput/QuerySource.php @@ -0,0 +1,65 @@ +google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource + */ +class QuerySource +{ + /** + * Unknown query source. + * + * Generated from protobuf enum QUERY_SOURCE_UNSPECIFIED = 0; + */ + const QUERY_SOURCE_UNSPECIFIED = 0; + /** + * The query is from agents. + * + * Generated from protobuf enum AGENT_QUERY = 1; + */ + const AGENT_QUERY = 1; + /** + * The query is a query from previous suggestions, e.g. from a preceding + * SuggestKnowledgeAssist response. + * + * Generated from protobuf enum SUGGESTED_QUERY = 2; + */ + const SUGGESTED_QUERY = 2; + + private static $valueToName = [ + self::QUERY_SOURCE_UNSPECIFIED => 'QUERY_SOURCE_UNSPECIFIED', + self::AGENT_QUERY => 'AGENT_QUERY', + self::SUGGESTED_QUERY => 'SUGGESTED_QUERY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(QuerySource::class, \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation_UserInput_QuerySource::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SentimentData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SentimentData.php new file mode 100644 index 000000000000..ce03d00b710a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SentimentData.php @@ -0,0 +1,105 @@ +google.cloud.contactcenterinsights.v1.SentimentData + */ +class SentimentData extends \Google\Protobuf\Internal\Message +{ + /** + * A non-negative number from 0 to infinity which represents the abolute + * magnitude of sentiment regardless of score. + * + * Generated from protobuf field float magnitude = 1; + */ + protected $magnitude = 0.0; + /** + * The sentiment score between -1.0 (negative) and 1.0 (positive). + * + * Generated from protobuf field float score = 2; + */ + protected $score = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $magnitude + * A non-negative number from 0 to infinity which represents the abolute + * magnitude of sentiment regardless of score. + * @type float $score + * The sentiment score between -1.0 (negative) and 1.0 (positive). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A non-negative number from 0 to infinity which represents the abolute + * magnitude of sentiment regardless of score. + * + * Generated from protobuf field float magnitude = 1; + * @return float + */ + public function getMagnitude() + { + return $this->magnitude; + } + + /** + * A non-negative number from 0 to infinity which represents the abolute + * magnitude of sentiment regardless of score. + * + * Generated from protobuf field float magnitude = 1; + * @param float $var + * @return $this + */ + public function setMagnitude($var) + { + GPBUtil::checkFloat($var); + $this->magnitude = $var; + + return $this; + } + + /** + * The sentiment score between -1.0 (negative) and 1.0 (positive). + * + * Generated from protobuf field float score = 2; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * The sentiment score between -1.0 (negative) and 1.0 (positive). + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings.php new file mode 100644 index 000000000000..a728e5d6bc4f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings.php @@ -0,0 +1,516 @@ +google.cloud.contactcenterinsights.v1.Settings + */ +class Settings extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the settings resource. + * Format: + * projects/{project}/locations/{location}/settings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Output only. The time at which the settings 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 at which the settings were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * A language code to be applied to each transcript segment unless the segment + * already specifies a language code. Language code defaults to "en-US" if it + * is neither specified on the segment nor here. + * + * Generated from protobuf field string language_code = 4; + */ + protected $language_code = ''; + /** + * The default TTL for newly-created conversations. If a conversation has a + * specified expiration, that value will be used instead. Changing this + * value will not change the expiration of existing conversations. + * Conversations with no expire time persist until they are deleted. + * + * Generated from protobuf field .google.protobuf.Duration conversation_ttl = 5; + */ + protected $conversation_ttl = null; + /** + * A map that maps a notification trigger to a Pub/Sub topic. Each time a + * specified trigger occurs, Insights will notify the corresponding Pub/Sub + * topic. + * Keys are notification triggers. Supported keys are: + * * "all-triggers": Notify each time any of the supported triggers occurs. + * * "create-analysis": Notify each time an analysis is created. + * * "create-conversation": Notify each time a conversation is created. + * * "export-insights-data": Notify each time an export is complete. + * * "ingest-conversations": Notify each time an IngestConversations LRO is + * complete. + * * "update-conversation": Notify each time a conversation is updated via + * UpdateConversation. + * * "upload-conversation": Notify when an UploadConversation LRO is complete. + * Values are Pub/Sub topics. The format of each Pub/Sub topic is: + * projects/{project}/topics/{topic} + * + * Generated from protobuf field map pubsub_notification_settings = 6; + */ + private $pubsub_notification_settings; + /** + * Default analysis settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig analysis_config = 7; + */ + protected $analysis_config = null; + /** + * Default DLP redaction resources to be applied while ingesting + * conversations. This applies to conversations ingested from the + * `UploadConversation` and `IngestConversations` endpoints, including + * conversations coming from CCAI Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + protected $redaction_config = null; + /** + * Optional. Default Speech-to-Text resources to use while ingesting audio + * files. Optional, CCAI Insights will create a default if not provided. This + * applies to conversations ingested from the `UploadConversation` and + * `IngestConversations` endpoints, including conversations coming from CCAI + * Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $speech_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the settings resource. + * Format: + * projects/{project}/locations/{location}/settings + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the settings was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the settings were last updated. + * @type string $language_code + * A language code to be applied to each transcript segment unless the segment + * already specifies a language code. Language code defaults to "en-US" if it + * is neither specified on the segment nor here. + * @type \Google\Protobuf\Duration $conversation_ttl + * The default TTL for newly-created conversations. If a conversation has a + * specified expiration, that value will be used instead. Changing this + * value will not change the expiration of existing conversations. + * Conversations with no expire time persist until they are deleted. + * @type array|\Google\Protobuf\Internal\MapField $pubsub_notification_settings + * A map that maps a notification trigger to a Pub/Sub topic. Each time a + * specified trigger occurs, Insights will notify the corresponding Pub/Sub + * topic. + * Keys are notification triggers. Supported keys are: + * * "all-triggers": Notify each time any of the supported triggers occurs. + * * "create-analysis": Notify each time an analysis is created. + * * "create-conversation": Notify each time a conversation is created. + * * "export-insights-data": Notify each time an export is complete. + * * "ingest-conversations": Notify each time an IngestConversations LRO is + * complete. + * * "update-conversation": Notify each time a conversation is updated via + * UpdateConversation. + * * "upload-conversation": Notify when an UploadConversation LRO is complete. + * Values are Pub/Sub topics. The format of each Pub/Sub topic is: + * projects/{project}/topics/{topic} + * @type \Google\Cloud\ContactCenterInsights\V1\Settings\AnalysisConfig $analysis_config + * Default analysis settings. + * @type \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $redaction_config + * Default DLP redaction resources to be applied while ingesting + * conversations. This applies to conversations ingested from the + * `UploadConversation` and `IngestConversations` endpoints, including + * conversations coming from CCAI Platform. + * @type \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $speech_config + * Optional. Default Speech-to-Text resources to use while ingesting audio + * files. Optional, CCAI Insights will create a default if not provided. This + * applies to conversations ingested from the `UploadConversation` and + * `IngestConversations` endpoints, including conversations coming from CCAI + * Platform. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the settings resource. + * Format: + * projects/{project}/locations/{location}/settings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the settings resource. + * Format: + * projects/{project}/locations/{location}/settings + * + * 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. The time at which the settings 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 at which the settings 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 at which the settings 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. The time at which the settings 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; + } + + /** + * A language code to be applied to each transcript segment unless the segment + * already specifies a language code. Language code defaults to "en-US" if it + * is neither specified on the segment nor here. + * + * Generated from protobuf field string language_code = 4; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * A language code to be applied to each transcript segment unless the segment + * already specifies a language code. Language code defaults to "en-US" if it + * is neither specified on the segment nor here. + * + * Generated from protobuf field string language_code = 4; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * The default TTL for newly-created conversations. If a conversation has a + * specified expiration, that value will be used instead. Changing this + * value will not change the expiration of existing conversations. + * Conversations with no expire time persist until they are deleted. + * + * Generated from protobuf field .google.protobuf.Duration conversation_ttl = 5; + * @return \Google\Protobuf\Duration|null + */ + public function getConversationTtl() + { + return $this->conversation_ttl; + } + + public function hasConversationTtl() + { + return isset($this->conversation_ttl); + } + + public function clearConversationTtl() + { + unset($this->conversation_ttl); + } + + /** + * The default TTL for newly-created conversations. If a conversation has a + * specified expiration, that value will be used instead. Changing this + * value will not change the expiration of existing conversations. + * Conversations with no expire time persist until they are deleted. + * + * Generated from protobuf field .google.protobuf.Duration conversation_ttl = 5; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setConversationTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->conversation_ttl = $var; + + return $this; + } + + /** + * A map that maps a notification trigger to a Pub/Sub topic. Each time a + * specified trigger occurs, Insights will notify the corresponding Pub/Sub + * topic. + * Keys are notification triggers. Supported keys are: + * * "all-triggers": Notify each time any of the supported triggers occurs. + * * "create-analysis": Notify each time an analysis is created. + * * "create-conversation": Notify each time a conversation is created. + * * "export-insights-data": Notify each time an export is complete. + * * "ingest-conversations": Notify each time an IngestConversations LRO is + * complete. + * * "update-conversation": Notify each time a conversation is updated via + * UpdateConversation. + * * "upload-conversation": Notify when an UploadConversation LRO is complete. + * Values are Pub/Sub topics. The format of each Pub/Sub topic is: + * projects/{project}/topics/{topic} + * + * Generated from protobuf field map pubsub_notification_settings = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getPubsubNotificationSettings() + { + return $this->pubsub_notification_settings; + } + + /** + * A map that maps a notification trigger to a Pub/Sub topic. Each time a + * specified trigger occurs, Insights will notify the corresponding Pub/Sub + * topic. + * Keys are notification triggers. Supported keys are: + * * "all-triggers": Notify each time any of the supported triggers occurs. + * * "create-analysis": Notify each time an analysis is created. + * * "create-conversation": Notify each time a conversation is created. + * * "export-insights-data": Notify each time an export is complete. + * * "ingest-conversations": Notify each time an IngestConversations LRO is + * complete. + * * "update-conversation": Notify each time a conversation is updated via + * UpdateConversation. + * * "upload-conversation": Notify when an UploadConversation LRO is complete. + * Values are Pub/Sub topics. The format of each Pub/Sub topic is: + * projects/{project}/topics/{topic} + * + * Generated from protobuf field map pubsub_notification_settings = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setPubsubNotificationSettings($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->pubsub_notification_settings = $arr; + + return $this; + } + + /** + * Default analysis settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig analysis_config = 7; + * @return \Google\Cloud\ContactCenterInsights\V1\Settings\AnalysisConfig|null + */ + public function getAnalysisConfig() + { + return $this->analysis_config; + } + + public function hasAnalysisConfig() + { + return isset($this->analysis_config); + } + + public function clearAnalysisConfig() + { + unset($this->analysis_config); + } + + /** + * Default analysis settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig analysis_config = 7; + * @param \Google\Cloud\ContactCenterInsights\V1\Settings\AnalysisConfig $var + * @return $this + */ + public function setAnalysisConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Settings\AnalysisConfig::class); + $this->analysis_config = $var; + + return $this; + } + + /** + * Default DLP redaction resources to be applied while ingesting + * conversations. This applies to conversations ingested from the + * `UploadConversation` and `IngestConversations` endpoints, including + * conversations coming from CCAI Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * @return \Google\Cloud\ContactCenterInsights\V1\RedactionConfig|null + */ + public function getRedactionConfig() + { + return $this->redaction_config; + } + + public function hasRedactionConfig() + { + return isset($this->redaction_config); + } + + public function clearRedactionConfig() + { + unset($this->redaction_config); + } + + /** + * Default DLP redaction resources to be applied while ingesting + * conversations. This applies to conversations ingested from the + * `UploadConversation` and `IngestConversations` endpoints, including + * conversations coming from CCAI Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * @param \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $var + * @return $this + */ + public function setRedactionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\RedactionConfig::class); + $this->redaction_config = $var; + + return $this; + } + + /** + * Optional. Default Speech-to-Text resources to use while ingesting audio + * files. Optional, CCAI Insights will create a default if not provided. This + * applies to conversations ingested from the `UploadConversation` and + * `IngestConversations` endpoints, including conversations coming from CCAI + * Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ContactCenterInsights\V1\SpeechConfig|null + */ + public function getSpeechConfig() + { + return $this->speech_config; + } + + public function hasSpeechConfig() + { + return isset($this->speech_config); + } + + public function clearSpeechConfig() + { + unset($this->speech_config); + } + + /** + * Optional. Default Speech-to-Text resources to use while ingesting audio + * files. Optional, CCAI Insights will create a default if not provided. This + * applies to conversations ingested from the `UploadConversation` and + * `IngestConversations` endpoints, including conversations coming from CCAI + * Platform. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $var + * @return $this + */ + public function setSpeechConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SpeechConfig::class); + $this->speech_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings/AnalysisConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings/AnalysisConfig.php new file mode 100644 index 000000000000..6bf6f5bf7a26 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/Settings/AnalysisConfig.php @@ -0,0 +1,160 @@ +google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig + */ +class AnalysisConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Percentage of conversations created using Dialogflow runtime integration + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double runtime_integration_analysis_percentage = 1; + */ + protected $runtime_integration_analysis_percentage = 0.0; + /** + * Percentage of conversations created using the UploadConversation endpoint + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double upload_conversation_analysis_percentage = 6; + */ + protected $upload_conversation_analysis_percentage = 0.0; + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + */ + protected $annotator_selector = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $runtime_integration_analysis_percentage + * Percentage of conversations created using Dialogflow runtime integration + * to analyze automatically, between [0, 100]. + * @type float $upload_conversation_analysis_percentage + * Percentage of conversations created using the UploadConversation endpoint + * to analyze automatically, between [0, 100]. + * @type \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $annotator_selector + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Percentage of conversations created using Dialogflow runtime integration + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double runtime_integration_analysis_percentage = 1; + * @return float + */ + public function getRuntimeIntegrationAnalysisPercentage() + { + return $this->runtime_integration_analysis_percentage; + } + + /** + * Percentage of conversations created using Dialogflow runtime integration + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double runtime_integration_analysis_percentage = 1; + * @param float $var + * @return $this + */ + public function setRuntimeIntegrationAnalysisPercentage($var) + { + GPBUtil::checkDouble($var); + $this->runtime_integration_analysis_percentage = $var; + + return $this; + } + + /** + * Percentage of conversations created using the UploadConversation endpoint + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double upload_conversation_analysis_percentage = 6; + * @return float + */ + public function getUploadConversationAnalysisPercentage() + { + return $this->upload_conversation_analysis_percentage; + } + + /** + * Percentage of conversations created using the UploadConversation endpoint + * to analyze automatically, between [0, 100]. + * + * Generated from protobuf field double upload_conversation_analysis_percentage = 6; + * @param float $var + * @return $this + */ + public function setUploadConversationAnalysisPercentage($var) + { + GPBUtil::checkDouble($var); + $this->upload_conversation_analysis_percentage = $var; + + return $this; + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * @return \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector|null + */ + public function getAnnotatorSelector() + { + return $this->annotator_selector; + } + + public function hasAnnotatorSelector() + { + return isset($this->annotator_selector); + } + + public function clearAnnotatorSelector() + { + unset($this->annotator_selector); + } + + /** + * To select the annotators to run and the phrase matchers to use + * (if any). If not specified, all annotators will be run. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * @param \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector $var + * @return $this + */ + public function setAnnotatorSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector::class); + $this->annotator_selector = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AnalysisConfig::class, \Google\Cloud\ContactCenterInsights\V1\Settings_AnalysisConfig::class); + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SilenceData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SilenceData.php new file mode 100644 index 000000000000..b2f045fe5662 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SilenceData.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.SilenceData + */ +class SilenceData extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartComposeSuggestionData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartComposeSuggestionData.php new file mode 100644 index 000000000000..abf22b896d3a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartComposeSuggestionData.php @@ -0,0 +1,189 @@ +google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData + */ +class SmartComposeSuggestionData extends \Google\Protobuf\Internal\Message +{ + /** + * The content of the suggestion. + * + * Generated from protobuf field string suggestion = 1; + */ + protected $suggestion = ''; + /** + * The system's confidence score that this suggestion is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + */ + protected $confidence_score = 0.0; + /** + * Map that contains metadata about the Smart Compose suggestion and the + * document from which it originates. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + */ + protected $query_record = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $suggestion + * The content of the suggestion. + * @type float $confidence_score + * The system's confidence score that this suggestion is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Map that contains metadata about the Smart Compose suggestion and the + * document from which it originates. + * @type string $query_record + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The content of the suggestion. + * + * Generated from protobuf field string suggestion = 1; + * @return string + */ + public function getSuggestion() + { + return $this->suggestion; + } + + /** + * The content of the suggestion. + * + * Generated from protobuf field string suggestion = 1; + * @param string $var + * @return $this + */ + public function setSuggestion($var) + { + GPBUtil::checkString($var, True); + $this->suggestion = $var; + + return $this; + } + + /** + * The system's confidence score that this suggestion is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * The system's confidence score that this suggestion is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkDouble($var); + $this->confidence_score = $var; + + return $this; + } + + /** + * Map that contains metadata about the Smart Compose suggestion and the + * document from which it originates. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Map that contains metadata about the Smart Compose suggestion and the + * document from which it originates. + * + * Generated from protobuf field map metadata = 3; + * @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; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + * @return string + */ + public function getQueryRecord() + { + return $this->query_record; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + * @param string $var + * @return $this + */ + public function setQueryRecord($var) + { + GPBUtil::checkString($var, True); + $this->query_record = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartReplyData.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartReplyData.php new file mode 100644 index 000000000000..2da4d03c9e50 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SmartReplyData.php @@ -0,0 +1,189 @@ +google.cloud.contactcenterinsights.v1.SmartReplyData + */ +class SmartReplyData extends \Google\Protobuf\Internal\Message +{ + /** + * The content of the reply. + * + * Generated from protobuf field string reply = 1; + */ + protected $reply = ''; + /** + * The system's confidence score that this reply is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + */ + protected $confidence_score = 0.0; + /** + * Map that contains metadata about the Smart Reply and the document from + * which it originates. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + */ + protected $query_record = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $reply + * The content of the reply. + * @type float $confidence_score + * The system's confidence score that this reply is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Map that contains metadata about the Smart Reply and the document from + * which it originates. + * @type string $query_record + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The content of the reply. + * + * Generated from protobuf field string reply = 1; + * @return string + */ + public function getReply() + { + return $this->reply; + } + + /** + * The content of the reply. + * + * Generated from protobuf field string reply = 1; + * @param string $var + * @return $this + */ + public function setReply($var) + { + GPBUtil::checkString($var, True); + $this->reply = $var; + + return $this; + } + + /** + * The system's confidence score that this reply is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + * @return float + */ + public function getConfidenceScore() + { + return $this->confidence_score; + } + + /** + * The system's confidence score that this reply is a good match for this + * conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely + * certain). + * + * Generated from protobuf field double confidence_score = 2; + * @param float $var + * @return $this + */ + public function setConfidenceScore($var) + { + GPBUtil::checkDouble($var); + $this->confidence_score = $var; + + return $this; + } + + /** + * Map that contains metadata about the Smart Reply and the document from + * which it originates. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Map that contains metadata about the Smart Reply and the document from + * which it originates. + * + * Generated from protobuf field map metadata = 3; + * @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; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + * @return string + */ + public function getQueryRecord() + { + return $this->query_record; + } + + /** + * The name of the answer record. + * Format: + * projects/{project}/locations/{location}/answerRecords/{answer_record} + * + * Generated from protobuf field string query_record = 4; + * @param string $var + * @return $this + */ + public function setQueryRecord($var) + { + GPBUtil::checkString($var, True); + $this->query_record = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SpeechConfig.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SpeechConfig.php new file mode 100644 index 000000000000..714218e8fcc2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/SpeechConfig.php @@ -0,0 +1,79 @@ +google.cloud.contactcenterinsights.v1.SpeechConfig + */ +class SpeechConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The fully-qualified Speech Recognizer resource name. + * Format: + * `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + * + * Generated from protobuf field string speech_recognizer = 1 [(.google.api.resource_reference) = { + */ + protected $speech_recognizer = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $speech_recognizer + * The fully-qualified Speech Recognizer resource name. + * Format: + * `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The fully-qualified Speech Recognizer resource name. + * Format: + * `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + * + * Generated from protobuf field string speech_recognizer = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getSpeechRecognizer() + { + return $this->speech_recognizer; + } + + /** + * The fully-qualified Speech Recognizer resource name. + * Format: + * `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + * + * Generated from protobuf field string speech_recognizer = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSpeechRecognizer($var) + { + GPBUtil::checkString($var, True); + $this->speech_recognizer = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelMetadata.php new file mode 100644 index 000000000000..e6995db42e6e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelMetadata.php @@ -0,0 +1,165 @@ +google.cloud.contactcenterinsights.v1.UndeployIssueModelMetadata + */ +class UndeployIssueModelMetadata 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; + /** + * The original request for undeployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest request = 3; + */ + protected $request = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelRequest $request + * The original request for undeployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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; + } + + /** + * The original request for undeployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest request = 3; + * @return \Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * The original request for undeployment. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest request = 3; + * @param \Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelRequest::class); + $this->request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelRequest.php new file mode 100644 index 000000000000..7db5b4fe3288 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelRequest.php @@ -0,0 +1,81 @@ +google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest + */ +class UndeployIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The issue 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. The issue model to undeploy. Please see + * {@see ContactCenterInsightsClient::issueModelName()} for help formatting this field. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelRequest + * + * @experimental + */ + public static function 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 issue model to undeploy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The issue 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. The issue 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelResponse.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelResponse.php new file mode 100644 index 000000000000..0478db7e5e18 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UndeployIssueModelResponse.php @@ -0,0 +1,33 @@ +google.cloud.contactcenterinsights.v1.UndeployIssueModelResponse + */ +class UndeployIssueModelResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateConversationRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateConversationRequest.php new file mode 100644 index 000000000000..94c6827f7a67 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateConversationRequest.php @@ -0,0 +1,197 @@ +google.cloud.contactcenterinsights.v1.UpdateConversationRequest + */ +class UpdateConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new values for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversation = null; + /** + * The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be + * provided: + * * `agent_id` + * * `language_code` + * * `labels` + * * `metadata` + * * `quality_metadata` + * * `call_metadata` + * * `start_time` + * * `expire_time` or `ttl` + * * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation Required. The new values for the conversation. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be + * provided: + * + * * `agent_id` + * * `language_code` + * * `labels` + * * `metadata` + * * `quality_metadata` + * * `call_metadata` + * * `start_time` + * * `expire_time` or `ttl` + * * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdateConversationRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\Conversation $conversation, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setConversation($conversation) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation + * Required. The new values for the conversation. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be + * provided: + * * `agent_id` + * * `language_code` + * * `labels` + * * `metadata` + * * `quality_metadata` + * * `call_metadata` + * * `start_time` + * * `expire_time` or `ttl` + * * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new values for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation|null + */ + public function getConversation() + { + return $this->conversation; + } + + public function hasConversation() + { + return isset($this->conversation); + } + + public function clearConversation() + { + unset($this->conversation); + } + + /** + * Required. The new values for the conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation::class); + $this->conversation = $var; + + return $this; + } + + /** + * The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be + * provided: + * * `agent_id` + * * `language_code` + * * `labels` + * * `metadata` + * * `quality_metadata` + * * `call_metadata` + * * `start_time` + * * `expire_time` or `ttl` + * * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + * + * 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. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be + * provided: + * * `agent_id` + * * `language_code` + * * `labels` + * * `metadata` + * * `quality_metadata` + * * `call_metadata` + * * `start_time` + * * `expire_time` or `ttl` + * * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueModelRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueModelRequest.php new file mode 100644 index 000000000000..2cc1f7c36565 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueModelRequest.php @@ -0,0 +1,136 @@ +google.cloud.contactcenterinsights.v1.UpdateIssueModelRequest + */ +class UpdateIssueModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new values for the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $issue_model = null; + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel $issueModel Required. The new values for the issue model. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdateIssueModelRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\IssueModel $issueModel, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setIssueModel($issueModel) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\IssueModel $issue_model + * Required. The new values for the issue model. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to be updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new values for the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\IssueModel|null + */ + public function getIssueModel() + { + return $this->issue_model; + } + + public function hasIssueModel() + { + return isset($this->issue_model); + } + + public function clearIssueModel() + { + unset($this->issue_model); + } + + /** + * Required. The new values for the issue model. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.IssueModel issue_model = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel $var + * @return $this + */ + public function setIssueModel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModel::class); + $this->issue_model = $var; + + return $this; + } + + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to be updated. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueRequest.php new file mode 100644 index 000000000000..0be9746fae85 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateIssueRequest.php @@ -0,0 +1,136 @@ +google.cloud.contactcenterinsights.v1.UpdateIssueRequest + */ +class UpdateIssueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new values for the issue. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Issue issue = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $issue = null; + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\Issue $issue Required. The new values for the issue. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdateIssueRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\Issue $issue, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setIssue($issue) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\Issue $issue + * Required. The new values for the issue. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to be updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new values for the issue. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Issue issue = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Issue|null + */ + public function getIssue() + { + return $this->issue; + } + + public function hasIssue() + { + return isset($this->issue); + } + + public function clearIssue() + { + unset($this->issue); + } + + /** + * Required. The new values for the issue. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Issue issue = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Issue $var + * @return $this + */ + public function setIssue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Issue::class); + $this->issue = $var; + + return $this; + } + + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to be updated. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdatePhraseMatcherRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdatePhraseMatcherRequest.php new file mode 100644 index 000000000000..f161bd6098d5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdatePhraseMatcherRequest.php @@ -0,0 +1,136 @@ +google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest + */ +class UpdatePhraseMatcherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new values for the phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phrase_matcher = null; + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phraseMatcher Required. The new values for the phrase matcher. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdatePhraseMatcherRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phraseMatcher, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setPhraseMatcher($phraseMatcher) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $phrase_matcher + * Required. The new values for the phrase matcher. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to be updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new values for the phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher|null + */ + public function getPhraseMatcher() + { + return $this->phrase_matcher; + } + + public function hasPhraseMatcher() + { + return isset($this->phrase_matcher); + } + + public function clearPhraseMatcher() + { + unset($this->phrase_matcher); + } + + /** + * Required. The new values for the phrase matcher. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher $var + * @return $this + */ + public function setPhraseMatcher($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher::class); + $this->phrase_matcher = $var; + + return $this; + } + + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to be updated. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateSettingsRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateSettingsRequest.php new file mode 100644 index 000000000000..83a51d0c3938 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateSettingsRequest.php @@ -0,0 +1,136 @@ +google.cloud.contactcenterinsights.v1.UpdateSettingsRequest + */ +class UpdateSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new settings values. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $settings = 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\ContactCenterInsights\V1\Settings $settings Required. The new settings values. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdateSettingsRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\Settings $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\ContactCenterInsights\V1\Settings $settings + * Required. The new settings values. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new settings values. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Settings|null + */ + public function getSettings() + { + return $this->settings; + } + + public function hasSettings() + { + return isset($this->settings); + } + + public function clearSettings() + { + unset($this->settings); + } + + /** + * Required. The new settings values. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Settings $var + * @return $this + */ + public function setSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Settings::class); + $this->settings = $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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateViewRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateViewRequest.php new file mode 100644 index 000000000000..c1adc1132a5f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UpdateViewRequest.php @@ -0,0 +1,136 @@ +google.cloud.contactcenterinsights.v1.UpdateViewRequest + */ +class UpdateViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The new view. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $view = null; + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\ContactCenterInsights\V1\View $view Required. The new view. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. + * + * @return \Google\Cloud\ContactCenterInsights\V1\UpdateViewRequest + * + * @experimental + */ + public static function build(\Google\Cloud\ContactCenterInsights\V1\View $view, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setView($view) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\ContactCenterInsights\V1\View $view + * Required. The new view. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to be updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The new view. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\View|null + */ + public function getView() + { + return $this->view; + } + + public function hasView() + { + return isset($this->view); + } + + public function clearView() + { + unset($this->view); + } + + /** + * Required. The new view. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.View view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\View $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\View::class); + $this->view = $var; + + return $this; + } + + /** + * The list of fields to be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to be updated. + * + * 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/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationMetadata.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationMetadata.php new file mode 100644 index 000000000000..b893a1d41d46 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationMetadata.php @@ -0,0 +1,247 @@ +google.cloud.contactcenterinsights.v1.UploadConversationMetadata + */ +class UploadConversationMetadata 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. The original request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $request = null; + /** + * Output only. The operation name for a successfully created analysis + * operation, if any. + * + * Generated from protobuf field string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $analysis_operation = ''; + /** + * Output only. The redaction config applied to the uploaded conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $applied_redaction_config = 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. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Cloud\ContactCenterInsights\V1\UploadConversationRequest $request + * Output only. The original request. + * @type string $analysis_operation + * Output only. The operation name for a successfully created analysis + * operation, if any. + * @type \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $applied_redaction_config + * Output only. The redaction config applied to the uploaded conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::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. The original request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\UploadConversationRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * Output only. The original request. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\UploadConversationRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\UploadConversationRequest::class); + $this->request = $var; + + return $this; + } + + /** + * Output only. The operation name for a successfully created analysis + * operation, if any. + * + * Generated from protobuf field string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAnalysisOperation() + { + return $this->analysis_operation; + } + + /** + * Output only. The operation name for a successfully created analysis + * operation, if any. + * + * Generated from protobuf field string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAnalysisOperation($var) + { + GPBUtil::checkString($var, True); + $this->analysis_operation = $var; + + return $this; + } + + /** + * Output only. The redaction config applied to the uploaded conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\ContactCenterInsights\V1\RedactionConfig|null + */ + public function getAppliedRedactionConfig() + { + return $this->applied_redaction_config; + } + + public function hasAppliedRedactionConfig() + { + return isset($this->applied_redaction_config); + } + + public function clearAppliedRedactionConfig() + { + unset($this->applied_redaction_config); + } + + /** + * Output only. The redaction config applied to the uploaded conversation. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $var + * @return $this + */ + public function setAppliedRedactionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\RedactionConfig::class); + $this->applied_redaction_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationRequest.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationRequest.php new file mode 100644 index 000000000000..443a3b1398eb --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/UploadConversationRequest.php @@ -0,0 +1,257 @@ +google.cloud.contactcenterinsights.v1.UploadConversationRequest + */ +class UploadConversationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversation = null; + /** + * Optional. A unique ID for the new conversation. This ID will become the + * final component of the conversation's resource name. If no ID is specified, + * a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conversation_id = ''; + /** + * Optional. DLP settings for transcript redaction. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $redaction_config = null; + /** + * Optional. Speech-to-Text configuration. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $speech_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the conversation. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation $conversation + * Required. The conversation resource to create. + * @type string $conversation_id + * Optional. A unique ID for the new conversation. This ID will become the + * final component of the conversation's resource name. If no ID is specified, + * a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * @type \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $redaction_config + * Optional. DLP settings for transcript redaction. Will default to the config + * specified in Settings. + * @type \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $speech_config + * Optional. Speech-to-Text configuration. Will default to the config + * specified in Settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the conversation. + * + * Generated 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 of the conversation. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation|null + */ + public function getConversation() + { + return $this->conversation; + } + + public function hasConversation() + { + return isset($this->conversation); + } + + public function clearConversation() + { + unset($this->conversation); + } + + /** + * Required. The conversation resource to create. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation::class); + $this->conversation = $var; + + return $this; + } + + /** + * Optional. A unique ID for the new conversation. This ID will become the + * final component of the conversation's resource name. If no ID is specified, + * a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConversationId() + { + return $this->conversation_id; + } + + /** + * Optional. A unique ID for the new conversation. This ID will become the + * final component of the conversation's resource name. If no ID is specified, + * a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular + * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + * + * Generated from protobuf field string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConversationId($var) + { + GPBUtil::checkString($var, True); + $this->conversation_id = $var; + + return $this; + } + + /** + * Optional. DLP settings for transcript redaction. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ContactCenterInsights\V1\RedactionConfig|null + */ + public function getRedactionConfig() + { + return $this->redaction_config; + } + + public function hasRedactionConfig() + { + return isset($this->redaction_config); + } + + public function clearRedactionConfig() + { + unset($this->redaction_config); + } + + /** + * Optional. DLP settings for transcript redaction. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ContactCenterInsights\V1\RedactionConfig $var + * @return $this + */ + public function setRedactionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\RedactionConfig::class); + $this->redaction_config = $var; + + return $this; + } + + /** + * Optional. Speech-to-Text configuration. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\ContactCenterInsights\V1\SpeechConfig|null + */ + public function getSpeechConfig() + { + return $this->speech_config; + } + + public function hasSpeechConfig() + { + return isset($this->speech_config); + } + + public function clearSpeechConfig() + { + unset($this->speech_config); + } + + /** + * Optional. Speech-to-Text configuration. Will default to the config + * specified in Settings. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\ContactCenterInsights\V1\SpeechConfig $var + * @return $this + */ + public function setSpeechConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\SpeechConfig::class); + $this->speech_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/View.php b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/View.php new file mode 100644 index 000000000000..286533d5ad37 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/proto/src/Google/Cloud/ContactCenterInsights/V1/View.php @@ -0,0 +1,231 @@ +google.cloud.contactcenterinsights.v1.View + */ +class View extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the view. + * Format: + * projects/{project}/locations/{location}/views/{view} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The human-readable display name of the view. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Output only. The time at which this view was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The most recent time at which the view was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * String with specific view properties, must be non-empty. + * + * Generated from protobuf field string value = 5; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the view. + * Format: + * projects/{project}/locations/{location}/views/{view} + * @type string $display_name + * The human-readable display name of the view. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this view was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The most recent time at which the view was updated. + * @type string $value + * String with specific view properties, must be non-empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the view. + * Format: + * projects/{project}/locations/{location}/views/{view} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the view. + * Format: + * projects/{project}/locations/{location}/views/{view} + * + * 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; + } + + /** + * The human-readable display name of the view. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable display name of the view. + * + * 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 time at which this view 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 this view 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; + } + + /** + * Output only. The most recent time at which the view 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 most recent time at which the view 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; + } + + /** + * String with specific view properties, must be non-empty. + * + * Generated from protobuf field string value = 5; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * String with specific view properties, must be non-empty. + * + * Generated from protobuf field string value = 5; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_analyze_conversations.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_analyze_conversations.php new file mode 100644 index 000000000000..6690b28c662a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_analyze_conversations.php @@ -0,0 +1,93 @@ +setParent($formattedParent) + ->setFilter($filter) + ->setAnalysisPercentage($analysisPercentage); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->bulkAnalyzeConversations($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var BulkAnalyzeConversationsResponse $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + $filter = '[FILTER]'; + $analysisPercentage = 0.0; + + bulk_analyze_conversations_sample($formattedParent, $filter, $analysisPercentage); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_delete_conversations.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_delete_conversations.php new file mode 100644 index 000000000000..6e906a6f7abf --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/bulk_delete_conversations.php @@ -0,0 +1,85 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->bulkDeleteConversations($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var BulkDeleteConversationsResponse $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + bulk_delete_conversations_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_issue_model_stats.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_issue_model_stats.php new file mode 100644 index 000000000000..bb94021bdbba --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_issue_model_stats.php @@ -0,0 +1,75 @@ +setIssueModel($formattedIssueModel); + + // Call the API and handle any network failures. + try { + /** @var CalculateIssueModelStatsResponse $response */ + $response = $contactCenterInsightsClient->calculateIssueModelStats($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedIssueModel = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + calculate_issue_model_stats_sample($formattedIssueModel); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_stats.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_stats.php new file mode 100644 index 000000000000..f995fedb1279 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/calculate_stats.php @@ -0,0 +1,71 @@ +setLocation($formattedLocation); + + // Call the API and handle any network failures. + try { + /** @var CalculateStatsResponse $response */ + $response = $contactCenterInsightsClient->calculateStats($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + calculate_stats_sample($formattedLocation); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_analysis.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_analysis.php new file mode 100644 index 000000000000..b60e85cac938 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_analysis.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setAnalysis($analysis); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->createAnalysis($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Analysis $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 = ContactCenterInsightsClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + create_analysis_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_conversation.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_conversation.php new file mode 100644 index 000000000000..9809b23a449a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_conversation.php @@ -0,0 +1,75 @@ +setParent($formattedParent) + ->setConversation($conversation); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $contactCenterInsightsClient->createConversation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + create_conversation_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_issue_model.php new file mode 100644 index 000000000000..52df0b52274a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_issue_model.php @@ -0,0 +1,85 @@ +setParent($formattedParent) + ->setIssueModel($issueModel); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->createIssueModel($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var IssueModel $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + create_issue_model_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_phrase_matcher.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_phrase_matcher.php new file mode 100644 index 000000000000..832ef0278454 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_phrase_matcher.php @@ -0,0 +1,80 @@ +/locations/` or `projects//locations/` + * Please see {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + * @param int $phraseMatcherType The type of this phrase matcher. + */ +function create_phrase_matcher_sample(string $formattedParent, int $phraseMatcherType): void +{ + // Create a client. + $contactCenterInsightsClient = new ContactCenterInsightsClient(); + + // Prepare the request message. + $phraseMatcher = (new PhraseMatcher()) + ->setType($phraseMatcherType); + $request = (new CreatePhraseMatcherRequest()) + ->setParent($formattedParent) + ->setPhraseMatcher($phraseMatcher); + + // Call the API and handle any network failures. + try { + /** @var PhraseMatcher $response */ + $response = $contactCenterInsightsClient->createPhraseMatcher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + + create_phrase_matcher_sample($formattedParent, $phraseMatcherType); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_view.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_view.php new file mode 100644 index 000000000000..63fb46395bc7 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/create_view.php @@ -0,0 +1,76 @@ +/locations/` or + * `projects//locations/` + * Please see {@see ContactCenterInsightsClient::locationName()} for help formatting this field. + */ +function create_view_sample(string $formattedParent): void +{ + // Create a client. + $contactCenterInsightsClient = new ContactCenterInsightsClient(); + + // Prepare the request message. + $view = new View(); + $request = (new CreateViewRequest()) + ->setParent($formattedParent) + ->setView($view); + + // Call the API and handle any network failures. + try { + /** @var View $response */ + $response = $contactCenterInsightsClient->createView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + create_view_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_analysis.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_analysis.php new file mode 100644 index 000000000000..e8351966a415 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_analysis.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $contactCenterInsightsClient->deleteAnalysis($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 = ContactCenterInsightsClient::analysisName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]', + '[ANALYSIS]' + ); + + delete_analysis_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_conversation.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_conversation.php new file mode 100644 index 000000000000..6cc0b0567122 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_conversation.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $contactCenterInsightsClient->deleteConversation($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 = ContactCenterInsightsClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + delete_conversation_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue.php new file mode 100644 index 000000000000..9d99a2fd60dd --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $contactCenterInsightsClient->deleteIssue($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 = ContactCenterInsightsClient::issueName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]', + '[ISSUE]' + ); + + delete_issue_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue_model.php new file mode 100644 index 000000000000..9ad6d1ce3309 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_issue_model.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->deleteIssueModel($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 = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + delete_issue_model_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_phrase_matcher.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_phrase_matcher.php new file mode 100644 index 000000000000..5cd2536f00a8 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_phrase_matcher.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $contactCenterInsightsClient->deletePhraseMatcher($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 = ContactCenterInsightsClient::phraseMatcherName( + '[PROJECT]', + '[LOCATION]', + '[PHRASE_MATCHER]' + ); + + delete_phrase_matcher_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_view.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_view.php new file mode 100644 index 000000000000..274ddeabf34f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/delete_view.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $contactCenterInsightsClient->deleteView($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 = ContactCenterInsightsClient::viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + + delete_view_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/deploy_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/deploy_issue_model.php new file mode 100644 index 000000000000..d1ea724d467f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/deploy_issue_model.php @@ -0,0 +1,88 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->deployIssueModel($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DeployIssueModelResponse $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 = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + deploy_issue_model_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_insights_data.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_insights_data.php new file mode 100644 index 000000000000..2522e777dff7 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_insights_data.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->exportInsightsData($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ExportInsightsDataResponse $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + export_insights_data_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_issue_model.php new file mode 100644 index 000000000000..5f3b0fbb3c28 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/export_issue_model.php @@ -0,0 +1,87 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->exportIssueModel($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ExportIssueModelResponse $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 = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + export_issue_model_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_analysis.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_analysis.php new file mode 100644 index 000000000000..b78f24b6bd1b --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_analysis.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Analysis $response */ + $response = $contactCenterInsightsClient->getAnalysis($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::analysisName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]', + '[ANALYSIS]' + ); + + get_analysis_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_conversation.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_conversation.php new file mode 100644 index 000000000000..917c5b106dc5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_conversation.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $contactCenterInsightsClient->getConversation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + get_conversation_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_encryption_spec.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_encryption_spec.php new file mode 100644 index 000000000000..82178006a7dc --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_encryption_spec.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EncryptionSpec $response */ + $response = $contactCenterInsightsClient->getEncryptionSpec($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::encryptionSpecName('[PROJECT]', '[LOCATION]'); + + get_encryption_spec_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetEncryptionSpec_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue.php new file mode 100644 index 000000000000..827a0427389a --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Issue $response */ + $response = $contactCenterInsightsClient->getIssue($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::issueName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]', + '[ISSUE]' + ); + + get_issue_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue_model.php new file mode 100644 index 000000000000..cf58a527197e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_issue_model.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IssueModel $response */ + $response = $contactCenterInsightsClient->getIssueModel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + get_issue_model_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_phrase_matcher.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_phrase_matcher.php new file mode 100644 index 000000000000..990c38002eae --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_phrase_matcher.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PhraseMatcher $response */ + $response = $contactCenterInsightsClient->getPhraseMatcher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::phraseMatcherName( + '[PROJECT]', + '[LOCATION]', + '[PHRASE_MATCHER]' + ); + + get_phrase_matcher_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_settings.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_settings.php new file mode 100644 index 000000000000..a142011799b0 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_settings.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Settings $response */ + $response = $contactCenterInsightsClient->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 = ContactCenterInsightsClient::settingsName('[PROJECT]', '[LOCATION]'); + + get_settings_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_view.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_view.php new file mode 100644 index 000000000000..ae60b0ad8f63 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/get_view.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var View $response */ + $response = $contactCenterInsightsClient->getView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ContactCenterInsightsClient::viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + + get_view_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_GetView_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/import_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/import_issue_model.php new file mode 100644 index 000000000000..5b023a1d1f7f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/import_issue_model.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->importIssueModel($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ImportIssueModelResponse $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + import_issue_model_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ImportIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/ingest_conversations.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/ingest_conversations.php new file mode 100644 index 000000000000..9d71a25dfc94 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/ingest_conversations.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->ingestConversations($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var IngestConversationsResponse $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + ingest_conversations_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/initialize_encryption_spec.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/initialize_encryption_spec.php new file mode 100644 index 000000000000..044a638387ec --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/initialize_encryption_spec.php @@ -0,0 +1,93 @@ +setKmsKey($encryptionSpecKmsKey); + $request = (new InitializeEncryptionSpecRequest()) + ->setEncryptionSpec($encryptionSpec); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->initializeEncryptionSpec($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var InitializeEncryptionSpecResponse $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 +{ + $encryptionSpecKmsKey = '[KMS_KEY]'; + + initialize_encryption_spec_sample($encryptionSpecKmsKey); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_InitializeEncryptionSpec_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_analyses.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_analyses.php new file mode 100644 index 000000000000..cdb1e6f2d644 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_analyses.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contactCenterInsightsClient->listAnalyses($request); + + /** @var Analysis $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 = ContactCenterInsightsClient::conversationName( + '[PROJECT]', + '[LOCATION]', + '[CONVERSATION]' + ); + + list_analyses_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_conversations.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_conversations.php new file mode 100644 index 000000000000..5665534facf9 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_conversations.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contactCenterInsightsClient->listConversations($request); + + /** @var Conversation $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + list_conversations_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issue_models.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issue_models.php new file mode 100644 index 000000000000..12084d5b56ed --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issue_models.php @@ -0,0 +1,71 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ListIssueModelsResponse $response */ + $response = $contactCenterInsightsClient->listIssueModels($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + list_issue_models_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issues.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issues.php new file mode 100644 index 000000000000..de159edab9c2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_issues.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ListIssuesResponse $response */ + $response = $contactCenterInsightsClient->listIssues($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + list_issues_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_phrase_matchers.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_phrase_matchers.php new file mode 100644 index 000000000000..2b7b25cb5d51 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_phrase_matchers.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contactCenterInsightsClient->listPhraseMatchers($request); + + /** @var PhraseMatcher $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + list_phrase_matchers_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_views.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_views.php new file mode 100644 index 000000000000..d521e8bfdc96 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/list_views.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $contactCenterInsightsClient->listViews($request); + + /** @var View $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + list_views_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/undeploy_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/undeploy_issue_model.php new file mode 100644 index 000000000000..6cc320d110b2 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/undeploy_issue_model.php @@ -0,0 +1,88 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->undeployIssueModel($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var UndeployIssueModelResponse $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 = ContactCenterInsightsClient::issueModelName( + '[PROJECT]', + '[LOCATION]', + '[ISSUE_MODEL]' + ); + + undeploy_issue_model_sample($formattedName); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_conversation.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_conversation.php new file mode 100644 index 000000000000..c77275e00e38 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_conversation.php @@ -0,0 +1,59 @@ +setConversation($conversation); + + // Call the API and handle any network failures. + try { + /** @var Conversation $response */ + $response = $contactCenterInsightsClient->updateConversation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue.php new file mode 100644 index 000000000000..aa18755dcf5e --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue.php @@ -0,0 +1,59 @@ +setIssue($issue); + + // Call the API and handle any network failures. + try { + /** @var Issue $response */ + $response = $contactCenterInsightsClient->updateIssue($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue_model.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue_model.php new file mode 100644 index 000000000000..89ea454ea827 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_issue_model.php @@ -0,0 +1,59 @@ +setIssueModel($issueModel); + + // Call the API and handle any network failures. + try { + /** @var IssueModel $response */ + $response = $contactCenterInsightsClient->updateIssueModel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_phrase_matcher.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_phrase_matcher.php new file mode 100644 index 000000000000..543ffbc2a74d --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_phrase_matcher.php @@ -0,0 +1,73 @@ +setType($phraseMatcherType); + $request = (new UpdatePhraseMatcherRequest()) + ->setPhraseMatcher($phraseMatcher); + + // Call the API and handle any network failures. + try { + /** @var PhraseMatcher $response */ + $response = $contactCenterInsightsClient->updatePhraseMatcher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + + update_phrase_matcher_sample($phraseMatcherType); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_settings.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_settings.php new file mode 100644 index 000000000000..aaafe4bb653c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_settings.php @@ -0,0 +1,62 @@ +setSettings($settings) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Settings $response */ + $response = $contactCenterInsightsClient->updateSettings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_view.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_view.php new file mode 100644 index 000000000000..a4cbd719634c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/update_view.php @@ -0,0 +1,59 @@ +setView($view); + + // Call the API and handle any network failures. + try { + /** @var View $response */ + $response = $contactCenterInsightsClient->updateView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/upload_conversation.php b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/upload_conversation.php new file mode 100644 index 000000000000..eb9b9beb038c --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/samples/V1/ContactCenterInsightsClient/upload_conversation.php @@ -0,0 +1,87 @@ +setParent($formattedParent) + ->setConversation($conversation); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $contactCenterInsightsClient->uploadConversation($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Conversation $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 = ContactCenterInsightsClient::locationName('[PROJECT]', '[LOCATION]'); + + upload_conversation_sample($formattedParent); +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UploadConversation_sync] diff --git a/owl-bot-staging/ContactCenterInsights/v1/src/V1/Client/ContactCenterInsightsClient.php b/owl-bot-staging/ContactCenterInsights/v1/src/V1/Client/ContactCenterInsightsClient.php new file mode 100644 index 000000000000..16f056c74223 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/src/V1/Client/ContactCenterInsightsClient.php @@ -0,0 +1,1769 @@ + bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkDeleteConversationsAsync(BulkDeleteConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface calculateIssueModelStatsAsync(CalculateIssueModelStatsRequest $request, array $optionalArgs = []) + * @method PromiseInterface calculateStatsAsync(CalculateStatsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAnalysisAsync(CreateAnalysisRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createIssueModelAsync(CreateIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPhraseMatcherAsync(CreatePhraseMatcherRequest $request, array $optionalArgs = []) + * @method PromiseInterface createViewAsync(CreateViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAnalysisAsync(DeleteAnalysisRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteIssueAsync(DeleteIssueRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteIssueModelAsync(DeleteIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePhraseMatcherAsync(DeletePhraseMatcherRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteViewAsync(DeleteViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deployIssueModelAsync(DeployIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportInsightsDataAsync(ExportInsightsDataRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportIssueModelAsync(ExportIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAnalysisAsync(GetAnalysisRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEncryptionSpecAsync(GetEncryptionSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIssueAsync(GetIssueRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIssueModelAsync(GetIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPhraseMatcherAsync(GetPhraseMatcherRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSettingsAsync(GetSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getViewAsync(GetViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface importIssueModelAsync(ImportIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface ingestConversationsAsync(IngestConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface initializeEncryptionSpecAsync(InitializeEncryptionSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAnalysesAsync(ListAnalysesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIssueModelsAsync(ListIssueModelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIssuesAsync(ListIssuesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPhraseMatchersAsync(ListPhraseMatchersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listViewsAsync(ListViewsRequest $request, array $optionalArgs = []) + * @method PromiseInterface undeployIssueModelAsync(UndeployIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConversationAsync(UpdateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateIssueAsync(UpdateIssueRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateIssueModelAsync(UpdateIssueModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePhraseMatcherAsync(UpdatePhraseMatcherRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSettingsAsync(UpdateSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateViewAsync(UpdateViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface uploadConversationAsync(UploadConversationRequest $request, array $optionalArgs = []) + */ +final class ContactCenterInsightsClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.contactcenterinsights.v1.ContactCenterInsights'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'contactcenterinsights.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'contactcenterinsights.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/contact_center_insights_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/contact_center_insights_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/contact_center_insights_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/contact_center_insights_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 analysis + * resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * @param string $analysis + * + * @return string The formatted analysis resource. + */ + public static function analysisName(string $project, string $location, string $conversation, string $analysis): string + { + return self::getPathTemplate('analysis')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + 'analysis' => $analysis, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a conversation + * resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * + * @return string The formatted conversation resource. + */ + public static function conversationName(string $project, string $location, string $conversation): string + { + return self::getPathTemplate('conversation')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * conversation_profile resource. + * + * @param string $project + * @param string $location + * @param string $conversationProfile + * + * @return string The formatted conversation_profile resource. + */ + public static function conversationProfileName(string $project, string $location, string $conversationProfile): string + { + return self::getPathTemplate('conversationProfile')->render([ + 'project' => $project, + 'location' => $location, + 'conversation_profile' => $conversationProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * encryption_spec resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted encryption_spec resource. + */ + public static function encryptionSpecName(string $project, string $location): string + { + return self::getPathTemplate('encryptionSpec')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a issue + * resource. + * + * @param string $project + * @param string $location + * @param string $issueModel + * @param string $issue + * + * @return string The formatted issue resource. + */ + public static function issueName(string $project, string $location, string $issueModel, string $issue): string + { + return self::getPathTemplate('issue')->render([ + 'project' => $project, + 'location' => $location, + 'issue_model' => $issueModel, + 'issue' => $issue, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a issue_model + * resource. + * + * @param string $project + * @param string $location + * @param string $issueModel + * + * @return string The formatted issue_model resource. + */ + public static function issueModelName(string $project, string $location, string $issueModel): string + { + return self::getPathTemplate('issueModel')->render([ + 'project' => $project, + 'location' => $location, + 'issue_model' => $issueModel, + ]); + } + + /** + * 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 participant + * resource. + * + * @param string $project + * @param string $conversation + * @param string $participant + * + * @return string The formatted participant resource. + */ + public static function participantName(string $project, string $conversation, string $participant): string + { + return self::getPathTemplate('participant')->render([ + 'project' => $project, + 'conversation' => $conversation, + 'participant' => $participant, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * phrase_matcher resource. + * + * @param string $project + * @param string $location + * @param string $phraseMatcher + * + * @return string The formatted phrase_matcher resource. + */ + public static function phraseMatcherName(string $project, string $location, string $phraseMatcher): string + { + return self::getPathTemplate('phraseMatcher')->render([ + 'project' => $project, + 'location' => $location, + 'phrase_matcher' => $phraseMatcher, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_conversation_participant resource. + * + * @param string $project + * @param string $conversation + * @param string $participant + * + * @return string The formatted project_conversation_participant resource. + */ + public static function projectConversationParticipantName(string $project, string $conversation, string $participant): string + { + return self::getPathTemplate('projectConversationParticipant')->render([ + 'project' => $project, + 'conversation' => $conversation, + 'participant' => $participant, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_conversation_participant resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * @param string $participant + * + * @return string The formatted project_location_conversation_participant resource. + */ + public static function projectLocationConversationParticipantName(string $project, string $location, string $conversation, string $participant): string + { + return self::getPathTemplate('projectLocationConversationParticipant')->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + 'participant' => $participant, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a recognizer + * resource. + * + * @param string $project + * @param string $location + * @param string $recognizer + * + * @return string The formatted recognizer resource. + */ + public static function recognizerName(string $project, string $location, string $recognizer): string + { + return self::getPathTemplate('recognizer')->render([ + 'project' => $project, + 'location' => $location, + 'recognizer' => $recognizer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a settings + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted settings resource. + */ + public static function settingsName(string $project, string $location): string + { + return self::getPathTemplate('settings')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a view + * resource. + * + * @param string $project + * @param string $location + * @param string $view + * + * @return string The formatted view resource. + */ + public static function viewName(string $project, string $location, string $view): string + { + return self::getPathTemplate('view')->render([ + 'project' => $project, + 'location' => $location, + 'view' => $view, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - analysis: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * - conversation: projects/{project}/locations/{location}/conversations/{conversation} + * - conversationProfile: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * - encryptionSpec: projects/{project}/locations/{location}/encryptionSpec + * - issue: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * - issueModel: projects/{project}/locations/{location}/issueModels/{issue_model} + * - location: projects/{project}/locations/{location} + * - participant: projects/{project}/conversations/{conversation}/participants/{participant} + * - phraseMatcher: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * - projectConversationParticipant: projects/{project}/conversations/{conversation}/participants/{participant} + * - projectLocationConversationParticipant: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * - recognizer: projects/{project}/locations/{location}/recognizers/{recognizer} + * - settings: projects/{project}/locations/{location}/settings + * - view: projects/{project}/locations/{location}/views/{view} + * + * 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 'contactcenterinsights.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 multiple conversations in a single request. + * + * The async variant is + * {@see ContactCenterInsightsClient::bulkAnalyzeConversationsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/bulk_analyze_conversations.php + * + * @param BulkAnalyzeConversationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 bulkAnalyzeConversations(BulkAnalyzeConversationsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('BulkAnalyzeConversations', $request, $callOptions)->wait(); + } + + /** + * Deletes multiple conversations in a single request. + * + * The async variant is + * {@see ContactCenterInsightsClient::bulkDeleteConversationsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/bulk_delete_conversations.php + * + * @param BulkDeleteConversationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 bulkDeleteConversations(BulkDeleteConversationsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('BulkDeleteConversations', $request, $callOptions)->wait(); + } + + /** + * Gets an issue model's statistics. + * + * The async variant is + * {@see ContactCenterInsightsClient::calculateIssueModelStatsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/calculate_issue_model_stats.php + * + * @param CalculateIssueModelStatsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CalculateIssueModelStatsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function calculateIssueModelStats(CalculateIssueModelStatsRequest $request, array $callOptions = []): CalculateIssueModelStatsResponse + { + return $this->startApiCall('CalculateIssueModelStats', $request, $callOptions)->wait(); + } + + /** + * Gets conversation statistics. + * + * The async variant is {@see ContactCenterInsightsClient::calculateStatsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/calculate_stats.php + * + * @param CalculateStatsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CalculateStatsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function calculateStats(CalculateStatsRequest $request, array $callOptions = []): CalculateStatsResponse + { + return $this->startApiCall('CalculateStats', $request, $callOptions)->wait(); + } + + /** + * Creates an analysis. The long running operation is done when the analysis + * has completed. + * + * The async variant is {@see ContactCenterInsightsClient::createAnalysisAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/create_analysis.php + * + * @param CreateAnalysisRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 createAnalysis(CreateAnalysisRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAnalysis', $request, $callOptions)->wait(); + } + + /** + * Creates a conversation. + * Note that this method does not support audio transcription or redaction. + * Use `conversations.upload` instead. + * + * The async variant is + * {@see ContactCenterInsightsClient::createConversationAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/create_conversation.php + * + * @param CreateConversationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Conversation + * + * @throws ApiException Thrown if the API call fails. + */ + public function createConversation(CreateConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('CreateConversation', $request, $callOptions)->wait(); + } + + /** + * Creates an issue model. + * + * The async variant is {@see ContactCenterInsightsClient::createIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/create_issue_model.php + * + * @param CreateIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 createIssueModel(CreateIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateIssueModel', $request, $callOptions)->wait(); + } + + /** + * Creates a phrase matcher. + * + * The async variant is + * {@see ContactCenterInsightsClient::createPhraseMatcherAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/create_phrase_matcher.php + * + * @param CreatePhraseMatcherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PhraseMatcher + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPhraseMatcher(CreatePhraseMatcherRequest $request, array $callOptions = []): PhraseMatcher + { + return $this->startApiCall('CreatePhraseMatcher', $request, $callOptions)->wait(); + } + + /** + * Creates a view. + * + * The async variant is {@see ContactCenterInsightsClient::createViewAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/create_view.php + * + * @param CreateViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return View + * + * @throws ApiException Thrown if the API call fails. + */ + public function createView(CreateViewRequest $request, array $callOptions = []): View + { + return $this->startApiCall('CreateView', $request, $callOptions)->wait(); + } + + /** + * Deletes an analysis. + * + * The async variant is {@see ContactCenterInsightsClient::deleteAnalysisAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/delete_analysis.php + * + * @param DeleteAnalysisRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteAnalysis(DeleteAnalysisRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteAnalysis', $request, $callOptions)->wait(); + } + + /** + * Deletes a conversation. + * + * The async variant is + * {@see ContactCenterInsightsClient::deleteConversationAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/delete_conversation.php + * + * @param DeleteConversationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteConversation(DeleteConversationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteConversation', $request, $callOptions)->wait(); + } + + /** + * Deletes an issue. + * + * The async variant is {@see ContactCenterInsightsClient::deleteIssueAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/delete_issue.php + * + * @param DeleteIssueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteIssue(DeleteIssueRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteIssue', $request, $callOptions)->wait(); + } + + /** + * Deletes an issue model. + * + * The async variant is {@see ContactCenterInsightsClient::deleteIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/delete_issue_model.php + * + * @param DeleteIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 deleteIssueModel(DeleteIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteIssueModel', $request, $callOptions)->wait(); + } + + /** + * Deletes a phrase matcher. + * + * The async variant is + * {@see ContactCenterInsightsClient::deletePhraseMatcherAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/delete_phrase_matcher.php + * + * @param DeletePhraseMatcherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deletePhraseMatcher(DeletePhraseMatcherRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeletePhraseMatcher', $request, $callOptions)->wait(); + } + + /** + * Deletes a view. + * + * The async variant is {@see ContactCenterInsightsClient::deleteViewAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/delete_view.php + * + * @param DeleteViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteView(DeleteViewRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteView', $request, $callOptions)->wait(); + } + + /** + * Deploys an issue model. Returns an error if a model is already deployed. + * An issue model can only be used in analysis after it has been deployed. + * + * The async variant is {@see ContactCenterInsightsClient::deployIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/deploy_issue_model.php + * + * @param DeployIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 deployIssueModel(DeployIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeployIssueModel', $request, $callOptions)->wait(); + } + + /** + * Export insights data to a destination defined in the request body. + * + * The async variant is + * {@see ContactCenterInsightsClient::exportInsightsDataAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/export_insights_data.php + * + * @param ExportInsightsDataRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 exportInsightsData(ExportInsightsDataRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ExportInsightsData', $request, $callOptions)->wait(); + } + + /** + * Exports an issue model to the provided destination. + * + * The async variant is {@see ContactCenterInsightsClient::exportIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/export_issue_model.php + * + * @param ExportIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 exportIssueModel(ExportIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ExportIssueModel', $request, $callOptions)->wait(); + } + + /** + * Gets an analysis. + * + * The async variant is {@see ContactCenterInsightsClient::getAnalysisAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/get_analysis.php + * + * @param GetAnalysisRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Analysis + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAnalysis(GetAnalysisRequest $request, array $callOptions = []): Analysis + { + return $this->startApiCall('GetAnalysis', $request, $callOptions)->wait(); + } + + /** + * Gets a conversation. + * + * The async variant is {@see ContactCenterInsightsClient::getConversationAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/get_conversation.php + * + * @param GetConversationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Conversation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConversation(GetConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('GetConversation', $request, $callOptions)->wait(); + } + + /** + * Gets location-level encryption key specification. + * + * The async variant is + * {@see ContactCenterInsightsClient::getEncryptionSpecAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/get_encryption_spec.php + * + * @param GetEncryptionSpecRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EncryptionSpec + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEncryptionSpec(GetEncryptionSpecRequest $request, array $callOptions = []): EncryptionSpec + { + return $this->startApiCall('GetEncryptionSpec', $request, $callOptions)->wait(); + } + + /** + * Gets an issue. + * + * The async variant is {@see ContactCenterInsightsClient::getIssueAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/get_issue.php + * + * @param GetIssueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Issue + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIssue(GetIssueRequest $request, array $callOptions = []): Issue + { + return $this->startApiCall('GetIssue', $request, $callOptions)->wait(); + } + + /** + * Gets an issue model. + * + * The async variant is {@see ContactCenterInsightsClient::getIssueModelAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/get_issue_model.php + * + * @param GetIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IssueModel + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIssueModel(GetIssueModelRequest $request, array $callOptions = []): IssueModel + { + return $this->startApiCall('GetIssueModel', $request, $callOptions)->wait(); + } + + /** + * Gets a phrase matcher. + * + * The async variant is {@see ContactCenterInsightsClient::getPhraseMatcherAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/get_phrase_matcher.php + * + * @param GetPhraseMatcherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PhraseMatcher + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPhraseMatcher(GetPhraseMatcherRequest $request, array $callOptions = []): PhraseMatcher + { + return $this->startApiCall('GetPhraseMatcher', $request, $callOptions)->wait(); + } + + /** + * Gets project-level settings. + * + * The async variant is {@see ContactCenterInsightsClient::getSettingsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/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(); + } + + /** + * Gets a view. + * + * The async variant is {@see ContactCenterInsightsClient::getViewAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/get_view.php + * + * @param GetViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return View + * + * @throws ApiException Thrown if the API call fails. + */ + public function getView(GetViewRequest $request, array $callOptions = []): View + { + return $this->startApiCall('GetView', $request, $callOptions)->wait(); + } + + /** + * Imports an issue model from a Cloud Storage bucket. + * + * The async variant is {@see ContactCenterInsightsClient::importIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/import_issue_model.php + * + * @param ImportIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 importIssueModel(ImportIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ImportIssueModel', $request, $callOptions)->wait(); + } + + /** + * Imports conversations and processes them according to the user's + * configuration. + * + * The async variant is + * {@see ContactCenterInsightsClient::ingestConversationsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/ingest_conversations.php + * + * @param IngestConversationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 ingestConversations(IngestConversationsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('IngestConversations', $request, $callOptions)->wait(); + } + + /** + * Initializes a location-level encryption key specification. An error will + * be thrown if the location has resources already created before the + * initialization. Once the encryption specification is initialized at a + * location, it is immutable and all newly created resources under the + * location will be encrypted with the existing specification. + * + * The async variant is + * {@see ContactCenterInsightsClient::initializeEncryptionSpecAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/initialize_encryption_spec.php + * + * @param InitializeEncryptionSpecRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 initializeEncryptionSpec(InitializeEncryptionSpecRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('InitializeEncryptionSpec', $request, $callOptions)->wait(); + } + + /** + * Lists analyses. + * + * The async variant is {@see ContactCenterInsightsClient::listAnalysesAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/list_analyses.php + * + * @param ListAnalysesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listAnalyses(ListAnalysesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAnalyses', $request, $callOptions); + } + + /** + * Lists conversations. + * + * The async variant is + * {@see ContactCenterInsightsClient::listConversationsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/list_conversations.php + * + * @param ListConversationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listConversations(ListConversationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConversations', $request, $callOptions); + } + + /** + * Lists issue models. + * + * The async variant is {@see ContactCenterInsightsClient::listIssueModelsAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/list_issue_models.php + * + * @param ListIssueModelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListIssueModelsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listIssueModels(ListIssueModelsRequest $request, array $callOptions = []): ListIssueModelsResponse + { + return $this->startApiCall('ListIssueModels', $request, $callOptions)->wait(); + } + + /** + * Lists issues. + * + * The async variant is {@see ContactCenterInsightsClient::listIssuesAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/list_issues.php + * + * @param ListIssuesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListIssuesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listIssues(ListIssuesRequest $request, array $callOptions = []): ListIssuesResponse + { + return $this->startApiCall('ListIssues', $request, $callOptions)->wait(); + } + + /** + * Lists phrase matchers. + * + * The async variant is + * {@see ContactCenterInsightsClient::listPhraseMatchersAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/list_phrase_matchers.php + * + * @param ListPhraseMatchersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listPhraseMatchers(ListPhraseMatchersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPhraseMatchers', $request, $callOptions); + } + + /** + * Lists views. + * + * The async variant is {@see ContactCenterInsightsClient::listViewsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/list_views.php + * + * @param ListViewsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listViews(ListViewsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListViews', $request, $callOptions); + } + + /** + * Undeploys an issue model. + * An issue model can not be used in analysis after it has been undeployed. + * + * The async variant is + * {@see ContactCenterInsightsClient::undeployIssueModelAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/undeploy_issue_model.php + * + * @param UndeployIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 undeployIssueModel(UndeployIssueModelRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UndeployIssueModel', $request, $callOptions)->wait(); + } + + /** + * Updates a conversation. + * + * The async variant is + * {@see ContactCenterInsightsClient::updateConversationAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/update_conversation.php + * + * @param UpdateConversationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Conversation + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateConversation(UpdateConversationRequest $request, array $callOptions = []): Conversation + { + return $this->startApiCall('UpdateConversation', $request, $callOptions)->wait(); + } + + /** + * Updates an issue. + * + * The async variant is {@see ContactCenterInsightsClient::updateIssueAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/update_issue.php + * + * @param UpdateIssueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Issue + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateIssue(UpdateIssueRequest $request, array $callOptions = []): Issue + { + return $this->startApiCall('UpdateIssue', $request, $callOptions)->wait(); + } + + /** + * Updates an issue model. + * + * The async variant is {@see ContactCenterInsightsClient::updateIssueModelAsync()} + * . + * + * @example samples/V1/ContactCenterInsightsClient/update_issue_model.php + * + * @param UpdateIssueModelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IssueModel + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateIssueModel(UpdateIssueModelRequest $request, array $callOptions = []): IssueModel + { + return $this->startApiCall('UpdateIssueModel', $request, $callOptions)->wait(); + } + + /** + * Updates a phrase matcher. + * + * The async variant is + * {@see ContactCenterInsightsClient::updatePhraseMatcherAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/update_phrase_matcher.php + * + * @param UpdatePhraseMatcherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PhraseMatcher + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePhraseMatcher(UpdatePhraseMatcherRequest $request, array $callOptions = []): PhraseMatcher + { + return $this->startApiCall('UpdatePhraseMatcher', $request, $callOptions)->wait(); + } + + /** + * Updates project-level settings. + * + * The async variant is {@see ContactCenterInsightsClient::updateSettingsAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/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(); + } + + /** + * Updates a view. + * + * The async variant is {@see ContactCenterInsightsClient::updateViewAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/update_view.php + * + * @param UpdateViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return View + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateView(UpdateViewRequest $request, array $callOptions = []): View + { + return $this->startApiCall('UpdateView', $request, $callOptions)->wait(); + } + + /** + * Create a long-running conversation upload operation. This method differs + * from `CreateConversation` by allowing audio transcription and optional DLP + * redaction. + * + * The async variant is + * {@see ContactCenterInsightsClient::uploadConversationAsync()} . + * + * @example samples/V1/ContactCenterInsightsClient/upload_conversation.php + * + * @param UploadConversationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 uploadConversation(UploadConversationRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UploadConversation', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/ContactCenterInsights/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ContactCenterInsights/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..a1bab090cfad --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/src/V1/gapic_metadata.json @@ -0,0 +1,233 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.contactcenterinsights.v1", + "libraryPackage": "Google\\Cloud\\ContactCenterInsights\\V1", + "services": { + "ContactCenterInsights": { + "clients": { + "grpc": { + "libraryClient": "ContactCenterInsightsGapicClient", + "rpcs": { + "BulkAnalyzeConversations": { + "methods": [ + "bulkAnalyzeConversations" + ] + }, + "BulkDeleteConversations": { + "methods": [ + "bulkDeleteConversations" + ] + }, + "CalculateIssueModelStats": { + "methods": [ + "calculateIssueModelStats" + ] + }, + "CalculateStats": { + "methods": [ + "calculateStats" + ] + }, + "CreateAnalysis": { + "methods": [ + "createAnalysis" + ] + }, + "CreateConversation": { + "methods": [ + "createConversation" + ] + }, + "CreateIssueModel": { + "methods": [ + "createIssueModel" + ] + }, + "CreatePhraseMatcher": { + "methods": [ + "createPhraseMatcher" + ] + }, + "CreateView": { + "methods": [ + "createView" + ] + }, + "DeleteAnalysis": { + "methods": [ + "deleteAnalysis" + ] + }, + "DeleteConversation": { + "methods": [ + "deleteConversation" + ] + }, + "DeleteIssue": { + "methods": [ + "deleteIssue" + ] + }, + "DeleteIssueModel": { + "methods": [ + "deleteIssueModel" + ] + }, + "DeletePhraseMatcher": { + "methods": [ + "deletePhraseMatcher" + ] + }, + "DeleteView": { + "methods": [ + "deleteView" + ] + }, + "DeployIssueModel": { + "methods": [ + "deployIssueModel" + ] + }, + "ExportInsightsData": { + "methods": [ + "exportInsightsData" + ] + }, + "ExportIssueModel": { + "methods": [ + "exportIssueModel" + ] + }, + "GetAnalysis": { + "methods": [ + "getAnalysis" + ] + }, + "GetConversation": { + "methods": [ + "getConversation" + ] + }, + "GetEncryptionSpec": { + "methods": [ + "getEncryptionSpec" + ] + }, + "GetIssue": { + "methods": [ + "getIssue" + ] + }, + "GetIssueModel": { + "methods": [ + "getIssueModel" + ] + }, + "GetPhraseMatcher": { + "methods": [ + "getPhraseMatcher" + ] + }, + "GetSettings": { + "methods": [ + "getSettings" + ] + }, + "GetView": { + "methods": [ + "getView" + ] + }, + "ImportIssueModel": { + "methods": [ + "importIssueModel" + ] + }, + "IngestConversations": { + "methods": [ + "ingestConversations" + ] + }, + "InitializeEncryptionSpec": { + "methods": [ + "initializeEncryptionSpec" + ] + }, + "ListAnalyses": { + "methods": [ + "listAnalyses" + ] + }, + "ListConversations": { + "methods": [ + "listConversations" + ] + }, + "ListIssueModels": { + "methods": [ + "listIssueModels" + ] + }, + "ListIssues": { + "methods": [ + "listIssues" + ] + }, + "ListPhraseMatchers": { + "methods": [ + "listPhraseMatchers" + ] + }, + "ListViews": { + "methods": [ + "listViews" + ] + }, + "UndeployIssueModel": { + "methods": [ + "undeployIssueModel" + ] + }, + "UpdateConversation": { + "methods": [ + "updateConversation" + ] + }, + "UpdateIssue": { + "methods": [ + "updateIssue" + ] + }, + "UpdateIssueModel": { + "methods": [ + "updateIssueModel" + ] + }, + "UpdatePhraseMatcher": { + "methods": [ + "updatePhraseMatcher" + ] + }, + "UpdateSettings": { + "methods": [ + "updateSettings" + ] + }, + "UpdateView": { + "methods": [ + "updateView" + ] + }, + "UploadConversation": { + "methods": [ + "uploadConversation" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_client_config.json b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_client_config.json new file mode 100644 index 000000000000..4f2e84193db6 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_client_config.json @@ -0,0 +1,249 @@ +{ + "interfaces": { + "google.cloud.contactcenterinsights.v1.ContactCenterInsights": { + "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": { + "BulkAnalyzeConversations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "BulkDeleteConversations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CalculateIssueModelStats": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CalculateStats": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateAnalysis": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateConversation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreatePhraseMatcher": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateView": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteAnalysis": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConversation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteIssue": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeletePhraseMatcher": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteView": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeployIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ExportInsightsData": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ExportIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAnalysis": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConversation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEncryptionSpec": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIssue": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetPhraseMatcher": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetView": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "IngestConversations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "InitializeEncryptionSpec": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAnalyses": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConversations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListIssueModels": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListIssues": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListPhraseMatchers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListViews": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UndeployIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateConversation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateIssue": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateIssueModel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdatePhraseMatcher": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateView": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UploadConversation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_descriptor_config.php b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_descriptor_config.php new file mode 100644 index 000000000000..b529d00be28f --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_descriptor_config.php @@ -0,0 +1,690 @@ + [ + 'google.cloud.contactcenterinsights.v1.ContactCenterInsights' => [ + 'BulkAnalyzeConversations' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\BulkAnalyzeConversationsMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkDeleteConversations' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\BulkDeleteConversationsMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateAnalysis' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\Analysis', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\CreateAnalysisOperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\IssueModel', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\CreateIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\DeleteIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeployIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\DeployIssueModelResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\DeployIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ExportInsightsData' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ExportIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ExportIssueModelResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ExportIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ImportIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ImportIssueModelResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\ImportIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'IngestConversations' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\IngestConversationsResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\IngestConversationsMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'InitializeEncryptionSpec' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\InitializeEncryptionSpecMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'encryption_spec.name', + 'fieldAccessors' => [ + 'getEncryptionSpec', + 'getName', + ], + ], + ], + ], + 'UndeployIssueModel' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelResponse', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\UndeployIssueModelMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UploadConversation' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\ContactCenterInsights\V1\Conversation', + 'metadataReturnType' => '\Google\Cloud\ContactCenterInsights\V1\UploadConversationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CalculateIssueModelStats' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\CalculateIssueModelStatsResponse', + 'headerParams' => [ + [ + 'keyName' => 'issue_model', + 'fieldAccessors' => [ + 'getIssueModel', + ], + ], + ], + ], + 'CalculateStats' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'CreateConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePhraseMatcher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\PhraseMatcher', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\View', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAnalysis' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteIssue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeletePhraseMatcher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAnalysis' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Analysis', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEncryptionSpec' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\EncryptionSpec', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIssue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Issue', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIssueModel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\IssueModel', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPhraseMatcher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\PhraseMatcher', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSettings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Settings', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\View', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAnalyses' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAnalyses', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListAnalysesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListConversations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConversations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListConversationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListIssueModels' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListIssueModelsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListIssues' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListIssuesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListPhraseMatchers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPhraseMatchers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListPhraseMatchersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListViews' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getViews', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\ListViewsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateConversation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Conversation', + 'headerParams' => [ + [ + 'keyName' => 'conversation.name', + 'fieldAccessors' => [ + 'getConversation', + 'getName', + ], + ], + ], + ], + 'UpdateIssue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Issue', + 'headerParams' => [ + [ + 'keyName' => 'issue.name', + 'fieldAccessors' => [ + 'getIssue', + 'getName', + ], + ], + ], + ], + 'UpdateIssueModel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\IssueModel', + 'headerParams' => [ + [ + 'keyName' => 'issue_model.name', + 'fieldAccessors' => [ + 'getIssueModel', + 'getName', + ], + ], + ], + ], + 'UpdatePhraseMatcher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\PhraseMatcher', + 'headerParams' => [ + [ + 'keyName' => 'phrase_matcher.name', + 'fieldAccessors' => [ + 'getPhraseMatcher', + 'getName', + ], + ], + ], + ], + 'UpdateSettings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\Settings', + 'headerParams' => [ + [ + 'keyName' => 'settings.name', + 'fieldAccessors' => [ + 'getSettings', + 'getName', + ], + ], + ], + ], + 'UpdateView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\ContactCenterInsights\V1\View', + 'headerParams' => [ + [ + 'keyName' => 'view.name', + 'fieldAccessors' => [ + 'getView', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'analysis' => 'projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}', + 'conversation' => 'projects/{project}/locations/{location}/conversations/{conversation}', + 'conversationProfile' => 'projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}', + 'encryptionSpec' => 'projects/{project}/locations/{location}/encryptionSpec', + 'issue' => 'projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}', + 'issueModel' => 'projects/{project}/locations/{location}/issueModels/{issue_model}', + 'location' => 'projects/{project}/locations/{location}', + 'participant' => 'projects/{project}/conversations/{conversation}/participants/{participant}', + 'phraseMatcher' => 'projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}', + 'projectConversationParticipant' => 'projects/{project}/conversations/{conversation}/participants/{participant}', + 'projectLocationConversationParticipant' => 'projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}', + 'recognizer' => 'projects/{project}/locations/{location}/recognizers/{recognizer}', + 'settings' => 'projects/{project}/locations/{location}/settings', + 'view' => 'projects/{project}/locations/{location}/views/{view}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_rest_client_config.php b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_rest_client_config.php new file mode 100644 index 000000000000..a3735d966ff5 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/src/V1/resources/contact_center_insights_rest_client_config.php @@ -0,0 +1,568 @@ + [ + 'google.cloud.contactcenterinsights.v1.ContactCenterInsights' => [ + 'BulkAnalyzeConversations' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations:bulkAnalyze', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkDeleteConversations' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations:bulkDelete', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CalculateIssueModelStats' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{issue_model=projects/*/locations/*/issueModels/*}:calculateIssueModelStats', + 'placeholders' => [ + 'issue_model' => [ + 'getters' => [ + 'getIssueModel', + ], + ], + ], + ], + 'CalculateStats' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*}/conversations:calculateStats', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'CreateAnalysis' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/conversations/*}/analyses', + 'body' => 'analysis', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConversation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', + 'body' => 'conversation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateIssueModel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/issueModels', + 'body' => 'issue_model', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePhraseMatcher' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/phraseMatchers', + 'body' => 'phrase_matcher', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateView' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/views', + 'body' => 'view', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAnalysis' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*/analyses/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteConversation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteIssue' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*/issues/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteIssueModel' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeletePhraseMatcher' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/phraseMatchers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteView' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/views/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeployIssueModel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*}:deploy', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ExportInsightsData' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/insightsdata:export', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ExportIssueModel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*}:export', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAnalysis' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*/analyses/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConversation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/conversations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEncryptionSpec' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/encryptionSpec}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIssue' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*/issues/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIssueModel' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPhraseMatcher' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/phraseMatchers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/settings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetView' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/views/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportIssueModel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/issueModels:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'IngestConversations' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations:ingest', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'InitializeEncryptionSpec' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{encryption_spec.name=projects/*/locations/*/encryptionSpec}:initialize', + 'body' => '*', + 'placeholders' => [ + 'encryption_spec.name' => [ + 'getters' => [ + 'getEncryptionSpec', + 'getName', + ], + ], + ], + ], + 'ListAnalyses' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/conversations/*}/analyses', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListConversations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListIssueModels' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/issueModels', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListIssues' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/issueModels/*}/issues', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListPhraseMatchers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/phraseMatchers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListViews' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/views', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UndeployIssueModel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/issueModels/*}:undeploy', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateConversation' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{conversation.name=projects/*/locations/*/conversations/*}', + 'body' => 'conversation', + 'placeholders' => [ + 'conversation.name' => [ + 'getters' => [ + 'getConversation', + 'getName', + ], + ], + ], + ], + 'UpdateIssue' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{issue.name=projects/*/locations/*/issueModels/*/issues/*}', + 'body' => 'issue', + 'placeholders' => [ + 'issue.name' => [ + 'getters' => [ + 'getIssue', + 'getName', + ], + ], + ], + ], + 'UpdateIssueModel' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{issue_model.name=projects/*/locations/*/issueModels/*}', + 'body' => 'issue_model', + 'placeholders' => [ + 'issue_model.name' => [ + 'getters' => [ + 'getIssueModel', + 'getName', + ], + ], + ], + ], + 'UpdatePhraseMatcher' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{phrase_matcher.name=projects/*/locations/*/phraseMatchers/*}', + 'body' => 'phrase_matcher', + 'placeholders' => [ + 'phrase_matcher.name' => [ + 'getters' => [ + 'getPhraseMatcher', + 'getName', + ], + ], + ], + ], + 'UpdateSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{settings.name=projects/*/locations/*/settings}', + 'body' => 'settings', + 'placeholders' => [ + 'settings.name' => [ + 'getters' => [ + 'getSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateView' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{view.name=projects/*/locations/*/views/*}', + 'body' => 'view', + 'placeholders' => [ + 'view.name' => [ + 'getters' => [ + 'getView', + 'getName', + ], + ], + ], + ], + 'UploadConversation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/conversations:upload', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + '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/ContactCenterInsights/v1/tests/Unit/V1/Client/ContactCenterInsightsClientTest.php b/owl-bot-staging/ContactCenterInsights/v1/tests/Unit/V1/Client/ContactCenterInsightsClientTest.php new file mode 100644 index 000000000000..cb8f13ee9909 --- /dev/null +++ b/owl-bot-staging/ContactCenterInsights/v1/tests/Unit/V1/Client/ContactCenterInsightsClientTest.php @@ -0,0 +1,3901 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContactCenterInsightsClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContactCenterInsightsClient($options); + } + + /** @test */ + public function bulkAnalyzeConversationsTest() + { + $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/bulkAnalyzeConversationsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $successfulAnalysisCount = 1153322545; + $failedAnalysisCount = 1044285998; + $expectedResponse = new BulkAnalyzeConversationsResponse(); + $expectedResponse->setSuccessfulAnalysisCount($successfulAnalysisCount); + $expectedResponse->setFailedAnalysisCount($failedAnalysisCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/bulkAnalyzeConversationsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $filter = 'filter-1274492040'; + $analysisPercentage = 9980822; + $request = (new BulkAnalyzeConversationsRequest()) + ->setParent($formattedParent) + ->setFilter($filter) + ->setAnalysisPercentage($analysisPercentage); + $response = $gapicClient->bulkAnalyzeConversations($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.contactcenterinsights.v1.ContactCenterInsights/BulkAnalyzeConversations', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $actualValue = $actualApiRequestObject->getAnalysisPercentage(); + $this->assertProtobufEquals($analysisPercentage, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/bulkAnalyzeConversationsTest'); + $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 bulkAnalyzeConversationsExceptionTest() + { + $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/bulkAnalyzeConversationsTest'); + $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]'); + $filter = 'filter-1274492040'; + $analysisPercentage = 9980822; + $request = (new BulkAnalyzeConversationsRequest()) + ->setParent($formattedParent) + ->setFilter($filter) + ->setAnalysisPercentage($analysisPercentage); + $response = $gapicClient->bulkAnalyzeConversations($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/bulkAnalyzeConversationsTest'); + 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 bulkDeleteConversationsTest() + { + $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/bulkDeleteConversationsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new BulkDeleteConversationsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/bulkDeleteConversationsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new BulkDeleteConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->bulkDeleteConversations($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.contactcenterinsights.v1.ContactCenterInsights/BulkDeleteConversations', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/bulkDeleteConversationsTest'); + $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 bulkDeleteConversationsExceptionTest() + { + $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/bulkDeleteConversationsTest'); + $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]'); + $request = (new BulkDeleteConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->bulkDeleteConversations($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/bulkDeleteConversationsTest'); + 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 calculateIssueModelStatsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CalculateIssueModelStatsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedIssueModel = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new CalculateIssueModelStatsRequest()) + ->setIssueModel($formattedIssueModel); + $response = $gapicClient->calculateIssueModelStats($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.contactcenterinsights.v1.ContactCenterInsights/CalculateIssueModelStats', $actualFuncCall); + $actualValue = $actualRequestObject->getIssueModel(); + $this->assertProtobufEquals($formattedIssueModel, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function calculateIssueModelStatsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedIssueModel = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new CalculateIssueModelStatsRequest()) + ->setIssueModel($formattedIssueModel); + try { + $gapicClient->calculateIssueModelStats($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function calculateStatsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $averageTurnCount = 1693477329; + $conversationCount = 1994187347; + $expectedResponse = new CalculateStatsResponse(); + $expectedResponse->setAverageTurnCount($averageTurnCount); + $expectedResponse->setConversationCount($conversationCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new CalculateStatsRequest()) + ->setLocation($formattedLocation); + $response = $gapicClient->calculateStats($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.contactcenterinsights.v1.ContactCenterInsights/CalculateStats', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function calculateStatsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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]'); + $request = (new CalculateStatsRequest()) + ->setLocation($formattedLocation); + try { + $gapicClient->calculateStats($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAnalysisTest() + { + $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/createAnalysisTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $expectedResponse = new Analysis(); + $expectedResponse->setName($name); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAnalysisTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $analysis = new Analysis(); + $request = (new CreateAnalysisRequest()) + ->setParent($formattedParent) + ->setAnalysis($analysis); + $response = $gapicClient->createAnalysis($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.contactcenterinsights.v1.ContactCenterInsights/CreateAnalysis', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAnalysis(); + $this->assertProtobufEquals($analysis, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAnalysisTest'); + $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 createAnalysisExceptionTest() + { + $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/createAnalysisTest'); + $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->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $analysis = new Analysis(); + $request = (new CreateAnalysisRequest()) + ->setParent($formattedParent) + ->setAnalysis($analysis); + $response = $gapicClient->createAnalysis($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAnalysisTest'); + 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 createConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $languageCode = 'languageCode-412800396'; + $agentId = 'agentId1469158549'; + $metadataJson = 'metadataJson-2002268168'; + $turnCount = 428155597; + $obfuscatedUserId = 'obfuscatedUserId-227848300'; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setAgentId($agentId); + $expectedResponse->setMetadataJson($metadataJson); + $expectedResponse->setTurnCount($turnCount); + $expectedResponse->setObfuscatedUserId($obfuscatedUserId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->createConversation($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.contactcenterinsights.v1.ContactCenterInsights/CreateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $conversation = new Conversation(); + $request = (new CreateConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + try { + $gapicClient->createConversation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createIssueModelTest() + { + $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/createIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $issueCount = 1779144233; + $languageCode = 'languageCode-412800396'; + $expectedResponse = new IssueModel(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIssueCount($issueCount); + $expectedResponse->setLanguageCode($languageCode); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $issueModel = new IssueModel(); + $request = (new CreateIssueModelRequest()) + ->setParent($formattedParent) + ->setIssueModel($issueModel); + $response = $gapicClient->createIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/CreateIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getIssueModel(); + $this->assertProtobufEquals($issueModel, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createIssueModelTest'); + $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 createIssueModelExceptionTest() + { + $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/createIssueModelTest'); + $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]'); + $issueModel = new IssueModel(); + $request = (new CreateIssueModelRequest()) + ->setParent($formattedParent) + ->setIssueModel($issueModel); + $response = $gapicClient->createIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createIssueModelTest'); + 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 createPhraseMatcherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $versionTag = 'versionTag689430451'; + $displayName = 'displayName1615086568'; + $active = true; + $expectedResponse = new PhraseMatcher(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setVersionTag($versionTag); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setActive($active); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $phraseMatcher = new PhraseMatcher(); + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + $phraseMatcher->setType($phraseMatcherType); + $request = (new CreatePhraseMatcherRequest()) + ->setParent($formattedParent) + ->setPhraseMatcher($phraseMatcher); + $response = $gapicClient->createPhraseMatcher($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.contactcenterinsights.v1.ContactCenterInsights/CreatePhraseMatcher', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPhraseMatcher(); + $this->assertProtobufEquals($phraseMatcher, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPhraseMatcherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $phraseMatcher = new PhraseMatcher(); + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + $phraseMatcher->setType($phraseMatcherType); + $request = (new CreatePhraseMatcherRequest()) + ->setParent($formattedParent) + ->setPhraseMatcher($phraseMatcher); + try { + $gapicClient->createPhraseMatcher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $value = 'value111972721'; + $expectedResponse = new View(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setValue($value); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $view = new View(); + $request = (new CreateViewRequest()) + ->setParent($formattedParent) + ->setView($view); + $response = $gapicClient->createView($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.contactcenterinsights.v1.ContactCenterInsights/CreateView', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getView(); + $this->assertProtobufEquals($view, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $view = new View(); + $request = (new CreateViewRequest()) + ->setParent($formattedParent) + ->setView($view); + try { + $gapicClient->createView($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAnalysisTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $request = (new DeleteAnalysisRequest()) + ->setName($formattedName); + $gapicClient->deleteAnalysis($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteAnalysis', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAnalysisExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $request = (new DeleteAnalysisRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteAnalysis($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + $gapicClient->deleteConversation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new DeleteConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteConversation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteIssueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $request = (new DeleteIssueRequest()) + ->setName($formattedName); + $gapicClient->deleteIssue($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteIssue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteIssueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $request = (new DeleteIssueRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteIssue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteIssueModelTest() + { + $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/deleteIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new DeleteIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/DeleteIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteIssueModelTest'); + $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 deleteIssueModelExceptionTest() + { + $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/deleteIssueModelTest'); + $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->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new DeleteIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteIssueModelTest'); + 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 deletePhraseMatcherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $request = (new DeletePhraseMatcherRequest()) + ->setName($formattedName); + $gapicClient->deletePhraseMatcher($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeletePhraseMatcher', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePhraseMatcherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $request = (new DeletePhraseMatcherRequest()) + ->setName($formattedName); + try { + $gapicClient->deletePhraseMatcher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $request = (new DeleteViewRequest()) + ->setName($formattedName); + $gapicClient->deleteView($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $request = (new DeleteViewRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteView($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deployIssueModelTest() + { + $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/deployIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new DeployIssueModelResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deployIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new DeployIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->deployIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/DeployIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deployIssueModelTest'); + $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 deployIssueModelExceptionTest() + { + $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/deployIssueModelTest'); + $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->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new DeployIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->deployIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deployIssueModelTest'); + 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 exportInsightsDataTest() + { + $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/exportInsightsDataTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new ExportInsightsDataResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/exportInsightsDataTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ExportInsightsDataRequest()) + ->setParent($formattedParent); + $response = $gapicClient->exportInsightsData($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.contactcenterinsights.v1.ContactCenterInsights/ExportInsightsData', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/exportInsightsDataTest'); + $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 exportInsightsDataExceptionTest() + { + $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/exportInsightsDataTest'); + $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]'); + $request = (new ExportInsightsDataRequest()) + ->setParent($formattedParent); + $response = $gapicClient->exportInsightsData($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/exportInsightsDataTest'); + 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 exportIssueModelTest() + { + $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/exportIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new ExportIssueModelResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/exportIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new ExportIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->exportIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/ExportIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/exportIssueModelTest'); + $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 exportIssueModelExceptionTest() + { + $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/exportIssueModelTest'); + $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->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new ExportIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->exportIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/exportIssueModelTest'); + 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 getAnalysisTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Analysis(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $request = (new GetAnalysisRequest()) + ->setName($formattedName); + $response = $gapicClient->getAnalysis($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.contactcenterinsights.v1.ContactCenterInsights/GetAnalysis', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAnalysisExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $request = (new GetAnalysisRequest()) + ->setName($formattedName); + try { + $gapicClient->getAnalysis($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $languageCode = 'languageCode-412800396'; + $agentId = 'agentId1469158549'; + $metadataJson = 'metadataJson-2002268168'; + $turnCount = 428155597; + $obfuscatedUserId = 'obfuscatedUserId-227848300'; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name2); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setAgentId($agentId); + $expectedResponse->setMetadataJson($metadataJson); + $expectedResponse->setTurnCount($turnCount); + $expectedResponse->setObfuscatedUserId($obfuscatedUserId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + $response = $gapicClient->getConversation($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.contactcenterinsights.v1.ContactCenterInsights/GetConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new GetConversationRequest()) + ->setName($formattedName); + try { + $gapicClient->getConversation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEncryptionSpecTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $kmsKey = 'kmsKey-591635343'; + $expectedResponse = new EncryptionSpec(); + $expectedResponse->setName($name2); + $expectedResponse->setKmsKey($kmsKey); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->encryptionSpecName('[PROJECT]', '[LOCATION]'); + $request = (new GetEncryptionSpecRequest()) + ->setName($formattedName); + $response = $gapicClient->getEncryptionSpec($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.contactcenterinsights.v1.ContactCenterInsights/GetEncryptionSpec', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEncryptionSpecExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->encryptionSpecName('[PROJECT]', '[LOCATION]'); + $request = (new GetEncryptionSpecRequest()) + ->setName($formattedName); + try { + $gapicClient->getEncryptionSpec($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIssueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $displayDescription = 'displayDescription-1876039681'; + $expectedResponse = new Issue(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDisplayDescription($displayDescription); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $request = (new GetIssueRequest()) + ->setName($formattedName); + $response = $gapicClient->getIssue($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.contactcenterinsights.v1.ContactCenterInsights/GetIssue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIssueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $request = (new GetIssueRequest()) + ->setName($formattedName); + try { + $gapicClient->getIssue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIssueModelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $issueCount = 1779144233; + $languageCode = 'languageCode-412800396'; + $expectedResponse = new IssueModel(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIssueCount($issueCount); + $expectedResponse->setLanguageCode($languageCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new GetIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->getIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/GetIssueModel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIssueModelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new GetIssueModelRequest()) + ->setName($formattedName); + try { + $gapicClient->getIssueModel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPhraseMatcherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $revisionId = 'revisionId513861631'; + $versionTag = 'versionTag689430451'; + $displayName = 'displayName1615086568'; + $active = true; + $expectedResponse = new PhraseMatcher(); + $expectedResponse->setName($name2); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setVersionTag($versionTag); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setActive($active); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $request = (new GetPhraseMatcherRequest()) + ->setName($formattedName); + $response = $gapicClient->getPhraseMatcher($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.contactcenterinsights.v1.ContactCenterInsights/GetPhraseMatcher', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPhraseMatcherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $request = (new GetPhraseMatcherRequest()) + ->setName($formattedName); + try { + $gapicClient->getPhraseMatcher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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'; + $languageCode = 'languageCode-412800396'; + $expectedResponse = new Settings(); + $expectedResponse->setName($name2); + $expectedResponse->setLanguageCode($languageCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->settingsName('[PROJECT]', '[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.contactcenterinsights.v1.ContactCenterInsights/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('[PROJECT]', '[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 getViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $value = 'value111972721'; + $expectedResponse = new View(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setValue($value); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $request = (new GetViewRequest()) + ->setName($formattedName); + $response = $gapicClient->getView($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.contactcenterinsights.v1.ContactCenterInsights/GetView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $request = (new GetViewRequest()) + ->setName($formattedName); + try { + $gapicClient->getView($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importIssueModelTest() + { + $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/importIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new ImportIssueModelResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/importIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ImportIssueModelRequest()) + ->setParent($formattedParent); + $response = $gapicClient->importIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/ImportIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importIssueModelTest'); + $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 importIssueModelExceptionTest() + { + $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/importIssueModelTest'); + $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]'); + $request = (new ImportIssueModelRequest()) + ->setParent($formattedParent); + $response = $gapicClient->importIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importIssueModelTest'); + 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 ingestConversationsTest() + { + $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/ingestConversationsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new IngestConversationsResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/ingestConversationsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new IngestConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->ingestConversations($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.contactcenterinsights.v1.ContactCenterInsights/IngestConversations', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/ingestConversationsTest'); + $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 ingestConversationsExceptionTest() + { + $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/ingestConversationsTest'); + $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]'); + $request = (new IngestConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->ingestConversations($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/ingestConversationsTest'); + 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 initializeEncryptionSpecTest() + { + $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/initializeEncryptionSpecTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new InitializeEncryptionSpecResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/initializeEncryptionSpecTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $encryptionSpec = new EncryptionSpec(); + $encryptionSpecKmsKey = 'encryptionSpecKmsKey627607756'; + $encryptionSpec->setKmsKey($encryptionSpecKmsKey); + $request = (new InitializeEncryptionSpecRequest()) + ->setEncryptionSpec($encryptionSpec); + $response = $gapicClient->initializeEncryptionSpec($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.contactcenterinsights.v1.ContactCenterInsights/InitializeEncryptionSpec', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getEncryptionSpec(); + $this->assertProtobufEquals($encryptionSpec, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/initializeEncryptionSpecTest'); + $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 initializeEncryptionSpecExceptionTest() + { + $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/initializeEncryptionSpecTest'); + $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 + $encryptionSpec = new EncryptionSpec(); + $encryptionSpecKmsKey = 'encryptionSpecKmsKey627607756'; + $encryptionSpec->setKmsKey($encryptionSpecKmsKey); + $request = (new InitializeEncryptionSpecRequest()) + ->setEncryptionSpec($encryptionSpec); + $response = $gapicClient->initializeEncryptionSpec($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/initializeEncryptionSpecTest'); + 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 listAnalysesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $analysesElement = new Analysis(); + $analyses = [ + $analysesElement, + ]; + $expectedResponse = new ListAnalysesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAnalyses($analyses); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListAnalysesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAnalyses($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAnalyses()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/ListAnalyses', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAnalysesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $request = (new ListAnalysesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAnalyses($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversationsElement = new Conversation(); + $conversations = [ + $conversationsElement, + ]; + $expectedResponse = new ListConversationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversations($conversations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListConversationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConversations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/ListConversations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListConversationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConversations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIssueModelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListIssueModelsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListIssueModelsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listIssueModels($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.contactcenterinsights.v1.ContactCenterInsights/ListIssueModels', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIssueModelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListIssueModelsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listIssueModels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIssuesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListIssuesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new ListIssuesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listIssues($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.contactcenterinsights.v1.ContactCenterInsights/ListIssues', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIssuesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new ListIssuesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listIssues($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPhraseMatchersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $phraseMatchersElement = new PhraseMatcher(); + $phraseMatchers = [ + $phraseMatchersElement, + ]; + $expectedResponse = new ListPhraseMatchersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPhraseMatchers($phraseMatchers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListPhraseMatchersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPhraseMatchers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPhraseMatchers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/ListPhraseMatchers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPhraseMatchersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListPhraseMatchersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPhraseMatchers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViewsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $viewsElement = new View(); + $views = [ + $viewsElement, + ]; + $expectedResponse = new ListViewsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setViews($views); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListViewsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listViews($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getViews()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.contactcenterinsights.v1.ContactCenterInsights/ListViews', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViewsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListViewsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listViews($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function undeployIssueModelTest() + { + $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/undeployIssueModelTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new UndeployIssueModelResponse(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/undeployIssueModelTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new UndeployIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->undeployIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/UndeployIssueModel', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/undeployIssueModelTest'); + $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 undeployIssueModelExceptionTest() + { + $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/undeployIssueModelTest'); + $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->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $request = (new UndeployIssueModelRequest()) + ->setName($formattedName); + $response = $gapicClient->undeployIssueModel($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/undeployIssueModelTest'); + 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 updateConversationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $languageCode = 'languageCode-412800396'; + $agentId = 'agentId1469158549'; + $metadataJson = 'metadataJson-2002268168'; + $turnCount = 428155597; + $obfuscatedUserId = 'obfuscatedUserId-227848300'; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setAgentId($agentId); + $expectedResponse->setMetadataJson($metadataJson); + $expectedResponse->setTurnCount($turnCount); + $expectedResponse->setObfuscatedUserId($obfuscatedUserId); + $transport->addResponse($expectedResponse); + // Mock request + $conversation = new Conversation(); + $request = (new UpdateConversationRequest()) + ->setConversation($conversation); + $response = $gapicClient->updateConversation($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.contactcenterinsights.v1.ContactCenterInsights/UpdateConversation', $actualFuncCall); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversation = new Conversation(); + $request = (new UpdateConversationRequest()) + ->setConversation($conversation); + try { + $gapicClient->updateConversation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateIssueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $displayDescription = 'displayDescription-1876039681'; + $expectedResponse = new Issue(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDisplayDescription($displayDescription); + $transport->addResponse($expectedResponse); + // Mock request + $issue = new Issue(); + $request = (new UpdateIssueRequest()) + ->setIssue($issue); + $response = $gapicClient->updateIssue($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.contactcenterinsights.v1.ContactCenterInsights/UpdateIssue', $actualFuncCall); + $actualValue = $actualRequestObject->getIssue(); + $this->assertProtobufEquals($issue, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateIssueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $issue = new Issue(); + $request = (new UpdateIssueRequest()) + ->setIssue($issue); + try { + $gapicClient->updateIssue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateIssueModelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $issueCount = 1779144233; + $languageCode = 'languageCode-412800396'; + $expectedResponse = new IssueModel(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIssueCount($issueCount); + $expectedResponse->setLanguageCode($languageCode); + $transport->addResponse($expectedResponse); + // Mock request + $issueModel = new IssueModel(); + $request = (new UpdateIssueModelRequest()) + ->setIssueModel($issueModel); + $response = $gapicClient->updateIssueModel($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.contactcenterinsights.v1.ContactCenterInsights/UpdateIssueModel', $actualFuncCall); + $actualValue = $actualRequestObject->getIssueModel(); + $this->assertProtobufEquals($issueModel, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateIssueModelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $issueModel = new IssueModel(); + $request = (new UpdateIssueModelRequest()) + ->setIssueModel($issueModel); + try { + $gapicClient->updateIssueModel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePhraseMatcherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $versionTag = 'versionTag689430451'; + $displayName = 'displayName1615086568'; + $active = true; + $expectedResponse = new PhraseMatcher(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setVersionTag($versionTag); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setActive($active); + $transport->addResponse($expectedResponse); + // Mock request + $phraseMatcher = new PhraseMatcher(); + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + $phraseMatcher->setType($phraseMatcherType); + $request = (new UpdatePhraseMatcherRequest()) + ->setPhraseMatcher($phraseMatcher); + $response = $gapicClient->updatePhraseMatcher($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.contactcenterinsights.v1.ContactCenterInsights/UpdatePhraseMatcher', $actualFuncCall); + $actualValue = $actualRequestObject->getPhraseMatcher(); + $this->assertProtobufEquals($phraseMatcher, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePhraseMatcherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $phraseMatcher = new PhraseMatcher(); + $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; + $phraseMatcher->setType($phraseMatcherType); + $request = (new UpdatePhraseMatcherRequest()) + ->setPhraseMatcher($phraseMatcher); + try { + $gapicClient->updatePhraseMatcher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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'; + $languageCode = 'languageCode-412800396'; + $expectedResponse = new Settings(); + $expectedResponse->setName($name); + $expectedResponse->setLanguageCode($languageCode); + $transport->addResponse($expectedResponse); + // Mock request + $settings = new Settings(); + $updateMask = new FieldMask(); + $request = (new UpdateSettingsRequest()) + ->setSettings($settings) + ->setUpdateMask($updateMask); + $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.contactcenterinsights.v1.ContactCenterInsights/UpdateSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getSettings(); + $this->assertProtobufEquals($settings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $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(); + $updateMask = new FieldMask(); + $request = (new UpdateSettingsRequest()) + ->setSettings($settings) + ->setUpdateMask($updateMask); + 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 updateViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $value = 'value111972721'; + $expectedResponse = new View(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setValue($value); + $transport->addResponse($expectedResponse); + // Mock request + $view = new View(); + $request = (new UpdateViewRequest()) + ->setView($view); + $response = $gapicClient->updateView($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.contactcenterinsights.v1.ContactCenterInsights/UpdateView', $actualFuncCall); + $actualValue = $actualRequestObject->getView(); + $this->assertProtobufEquals($view, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $view = new View(); + $request = (new UpdateViewRequest()) + ->setView($view); + try { + $gapicClient->updateView($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function uploadConversationTest() + { + $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/uploadConversationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $languageCode = 'languageCode-412800396'; + $agentId = 'agentId1469158549'; + $metadataJson = 'metadataJson-2002268168'; + $turnCount = 428155597; + $obfuscatedUserId = 'obfuscatedUserId-227848300'; + $expectedResponse = new Conversation(); + $expectedResponse->setName($name); + $expectedResponse->setLanguageCode($languageCode); + $expectedResponse->setAgentId($agentId); + $expectedResponse->setMetadataJson($metadataJson); + $expectedResponse->setTurnCount($turnCount); + $expectedResponse->setObfuscatedUserId($obfuscatedUserId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/uploadConversationTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $conversation = new Conversation(); + $request = (new UploadConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->uploadConversation($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.contactcenterinsights.v1.ContactCenterInsights/UploadConversation', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getConversation(); + $this->assertProtobufEquals($conversation, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/uploadConversationTest'); + $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 uploadConversationExceptionTest() + { + $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/uploadConversationTest'); + $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]'); + $conversation = new Conversation(); + $request = (new UploadConversationRequest()) + ->setParent($formattedParent) + ->setConversation($conversation); + $response = $gapicClient->uploadConversation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/uploadConversationTest'); + 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 bulkAnalyzeConversationsAsyncTest() + { + $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/bulkAnalyzeConversationsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $successfulAnalysisCount = 1153322545; + $failedAnalysisCount = 1044285998; + $expectedResponse = new BulkAnalyzeConversationsResponse(); + $expectedResponse->setSuccessfulAnalysisCount($successfulAnalysisCount); + $expectedResponse->setFailedAnalysisCount($failedAnalysisCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/bulkAnalyzeConversationsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $filter = 'filter-1274492040'; + $analysisPercentage = 9980822; + $request = (new BulkAnalyzeConversationsRequest()) + ->setParent($formattedParent) + ->setFilter($filter) + ->setAnalysisPercentage($analysisPercentage); + $response = $gapicClient->bulkAnalyzeConversationsAsync($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.contactcenterinsights.v1.ContactCenterInsights/BulkAnalyzeConversations', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $actualValue = $actualApiRequestObject->getAnalysisPercentage(); + $this->assertProtobufEquals($analysisPercentage, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/bulkAnalyzeConversationsTest'); + $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/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php new file mode 100644 index 0000000000000000000000000000000000000000..c4d9bb53f8ba8e2df6499da58180a937aa77fef5 GIT binary patch literal 2501 zcmb_eQE%H+6vjzgt#@MtL%Xa)aFky4rJ`qM=CU#<@wYxxU7} zDeJ2I1AYmwz+d2jSKfHq^CW%%NJw1!-lS3LvQ3Z&+qw6g@0|19bIv_q+>Z}qa0|9^ zgcC&Z0QOHHJ;X3h2qiuVVShXv;spBSC=NoLC=j+RxNo`8XqoO!rkav*;$sbt2pNS~ z^+Pfq@TX5AnvgJ!Q9>EKdVH^sDN>Q|<23b9%xoN^&`a>QW1P}d$!!79z=tVCl)Y{T zsTV{64Nw?7V;tpw7z<$B|D162VNtihNwZ136|UdpjnKvmH2f*Uo5U6!y%B z;v_<0uZ2@T31UhTn~7@L2-6w)*-HJ6Fq^>zLs;iNYT7v`cOXs1c-}gM38v#D+RpvX z04B4qUICeU9Q1Yr91a@z5FH03(X_Lu&Ok0wb+9=5SJs-*;RfuCDLRUaE#@?S{AD0W z(+7hYN4qQw>$9k`7&pOBZ-Vy!lzwuZ11WhP^XEdMDLjuit_zbW4%9?Y!E<=y1F@B7 zG&_EkPUGbQwLi*WtuR65x4}|Y096S}_0>lCxqeCh1Y8j{;$=A165G1GwV?=4r$&?+ zsj>|!LIV$2eW8>@)pD-&*;MPL@hRLtC)bvD!1Xgk{4@?&w_sJk9a?&sL)zcc3;jX4GO{zL!WcLQ(K6x0|Y`^M5C5Nc`!>^mC&6=S2OE zBu_$u25fQqIT1Z+v0136sJK^6K3wNJiyB*Nh3mE7Bye*tNNHhgsc25}Be24HC61^# zef_y!`b*!I{{wC7U^PY~?4_)+<%zSL<&-2}10Y|gTKioBOZmpTpyEEZ4X?Z3v5ls=YZ|S}8}j>LquK4a)aXl%9*PBz;s%ktvl{xucf=X=NON= zM#rrz$-PZ*OXxaA$F}x6hUZ$I?O3gD(>1MqPv0|`3(N8bSa0rG-PW83db4SCI+c~i zk0o%I)$A)1*0@nz0r|yXOJ9G(+mh&PSvMGw;$ecd3o%a=^^~~3UA+85sou^f38k4$ z68zZ|gNn@u6@^a{zfMJaV(Q?p1>qi>JF>CnMd>3BtZ6y2cr8e48kg>`xBgBB%O8#(oC341eHF8 zZy`R3kK$7}KW$i21;JdL87AL+=bLlB^Y*H^EznCClALfX$O4kjAZ`g1oC%h)43cWO zBpgz|!Jefh@hqD**YRM{|5*JpCtuoS1Ggd83Oj#~C%gO?CA?e$nE)pVe zTTx|1P?pb2A#*x97eYB+6Nya;45R+FL@uzv@leyoo}x9eK^won=u2=1p)|u~30_S< zRqW_10{InHlF<}YLb;sKa!zw9D9-2?`RFbzaaIz^v5#F=d8)*Mx-iL8VxNKGRM?Y( z$s%=Or!!J@lQoOOTo9h)EcQv6a#{$+BMEig6%lo{)roz!O{?hW5^STxKo=Ahvdr>qBy#h9T#-xcxB#3C5oh@nf8vqx9p+zyrVsDqPHET$c&O>JpXeCjkoh*mIgSM u6QTz1SL?MQc3sW9T^eZDHR$9>kLBfQ?UQq3zdLUIt5Y@7m~w+Q2>k|&lY5T< literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php new file mode 100644 index 000000000000..51ec0af87bb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php @@ -0,0 +1,57 @@ +internalAddGeneratedFile( + ' +¸ +3google/cloud/cloudcontrolspartner/v1beta/core.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protoGgoogle/cloud/cloudcontrolspartner/v1beta/access_approval_requests.protoAgoogle/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto8google/cloud/cloudcontrolspartner/v1beta/customers.proto>google/cloud/cloudcontrolspartner/v1beta/ekm_connections.protoBgoogle/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto7google/cloud/cloudcontrolspartner/v1beta/partners.protogoogle/protobuf/timestamp.proto"€ +OperationMetadata4 + create_time ( 2.google.protobuf.TimestampBàA1 +end_time ( 2.google.protobuf.TimestampBàA +target ( BàA +verb ( BàA +status_message ( BàA# +requested_cancellation (BàA + api_version ( BàA2¾ +CloudControlsPartnerCoreÒ + GetWorkload<.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest2.google.cloud.cloudcontrolspartner.v1beta.Workload"QÚAname‚Óä“DB/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}å + ListWorkloads>.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest?.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse"SÚAparent‚Óä“DB/v1beta/{parent=organizations/*/locations/*/customers/*}/workloadsÆ + GetCustomer<.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest2.google.cloud.cloudcontrolspartner.v1beta.Customer"EÚAname‚Óä“86/v1beta/{name=organizations/*/locations/*/customers/*}Ù + ListCustomers>.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest?.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse"GÚAparent‚Óä“86/v1beta/{parent=organizations/*/locations/*}/customersó +GetEkmConnectionsB.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest8.google.cloud.cloudcontrolspartner.v1beta.EkmConnections"`ÚAname‚Óä“SQ/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}ƒ +GetPartnerPermissionsF.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest<.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions"dÚAname‚Óä“WU/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}¨ +ListAccessApprovalRequestsK.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequestL.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse"oˆÚAparent‚Óä“][/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests¿ + +GetPartner;.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest1.google.cloud.cloudcontrolspartner.v1beta.Partner"AÚAname‚Óä“42/v1beta/{name=organizations/*/locations/*/partner}WÊA#cloudcontrolspartner.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB‘ +,com.google.cloud.cloudcontrolspartner.v1betaB CoreProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpbª(Google.Cloud.CloudControlsPartner.V1BetaÊ(Google\\Cloud\\CloudControlsPartner\\V1betaê+Google::Cloud::CloudControlsPartner::V1betaêAm +8cloudcontrolspartner.googleapis.com/OrganizationLocation1organizations/{organization}/locations/{location}bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php new file mode 100644 index 0000000000000000000000000000000000000000..9e4b88c8dd9f247aa509baadadf62f47dd4f6107 GIT binary patch literal 3181 zcmbtWTXWh*6fWS{uk)>yUBs?w6y z$?)2j_D6I&edBJFJLj9n{+^F+C^h1dz+$AY z^bQoZM-)GxjM~&ydZXQ45-2tu`i@HiRZ%KUrP1st)k?i{9gc={6xc*l29yq5QnXz< z>dU81Jr+>&@0@5~7YOT^X$o4H} zb!!5+Tjs#>IR)I^xnBa|4TNmh3PYtFUGOZ%M{ke7K|XY}O`?F$eCnft>y{z8T*4h}Ky1kD3QauSaUgS; zHS|wEDv1k^af)j0+M%6%`?$Q;Dm}inz8KU1s@C zF^K#tYvS7D+4Yz>(d5}fB7iR=08wI)ltmW1N($uP&ZBf(Dfkka<3*TDD2YO*lzOM9 z@fDQWrEVYU)#>Mwu%F`lDf|#E+5v%!OpcgK!I#DLYieY4e4RRpj6AiB<|SHgF1{j# z`)D=h0+V_@Y6X4A8%Q&97X+{#1Ao+;YHUn%f+VsEub|JNmH8ed1N`{ckJ zTAno^L*g+LRR59KjGMc_b;MbecBu`dLA_jB>^wmW5vk=eu(7nRonJk*C22ALXA&($ zYkUIu5Z?>mF#CYkG_aMY&FaJmRW8#I_>6`VU}K)#)F2DP2fAI zyA}%>&7EqyTCX*Z33g25h0&>Q8`&hjhi;uMY}9pgyWTMLdMBI0U!m(~i?@tMb`E#f z(2cX@%8kzRPIexv==KbPW}|6VpKNCrw7(MX^*<8mu1J9CLXuer^%JVlsfuw5;O}WL zusr9r2wqrxbM)`H7)KR8#LMxdJ;7$&sm8@PJz+Cmj&En;Ww@S>m-&AaXl2U@*|WI$ zw8>8+;3ix_^N=%;U{P^Be5WV>(^Y&vgD#B=tp)`~ro= z6_;9a9^qOpjy&KHd(Y~*oI+BCO#V5-H8OEu?7h-4Vv2lszGTRc(A799)7dgj_V}f&&0aRD5n0mQfH4Ia4aRJGaoAuh$Hi#ul|0E${=x}EJN>@%yl49U!C0_m@ z+fdZ(0JJ!urw_frN%7pv2iPg%@_QSn@tNQIJ6WiSxmPXoWAa&!2I{C=sB-Ro8;f?M z8Ckxjgu5^$^YQzA@{R=7G=Utwrld7ZO84ePBY&_qnUL^5s7{+#*u{V&WBBf3)ET%JcX_2Qc2T%ybU-7skw#RlmosMQ)NnSfU$XcX2sq3t)zS!GR0^gA+fY=N>sRoLKE@9oIF~0Usn;`+n{7KKtnX@K`7_8~I;2c2l3nSOZ9%S6%;&v0WAr3Idj*nl6eICNG<1-|@-?SY^ zfyXfkVC>KdJXE|5Rm|A-W=I4shfr78jiC}S*{y&h8aTdPN6e!*9?{@H)*T0!&7bTQ_*Ft|A7SK=s_4{tjtRA_ zi(Op=`6t&NO8UFD*IOHA*94b*6a(BBy+P|2G)H=X1!K4~4Ojch4t@F+PWn+9jppzl z2@)6QfW`3L0)M;*KL4-mHHym9l)P8hC7zm!_xpQE4kyGVn!u`#!2W~v)6cOR#-u?> zfDe-Z@Pi- zF$@6YD^9*efrLJ1ybm_V*cZYh!IIrf8P`FU&=I0T_bh)!cQRG@F$JzKRm?&G3^E$v zVvC~cjOc0k@;xl=T6zsf4VidAu!(U&1!;8UDSokvyK3J6(g+?E2FpfgWi0yLY|E4ng zBA8(UAVh%jVSL&pN4CoQI<%Gob1s&~eQ-7Yjw|g|PU`&ro6{4pv*08}M^bIO{Dn^S zR_!yFBwrrs!b7kjx3LR$`h!My_^93QHfpV-R-?Z2jv)K?HDm=lw{@eK{Hkb7KTixDUusa~b; usKAybBPX{dYs*sB?xv*1{af?T;9WIkEDR-ao3XcIAd!}8Y?y%=0Dl83NPn3C literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php new file mode 100644 index 0000000000000000000000000000000000000000..db2ac065e3923aea807ade21e8b264dcdc9a2650 GIT binary patch literal 1970 zcmb_dPjAyO6sIj9Y8cxBh=DkmfkY4^5d#S+V?$}1l}gZ7ZQ+0-6*qA^vosEl0|L}< z!hr)P;FItvICJ672|G^zQX~ZQ;JEgCzxT(#_ujqx(Ln^Rz$y+gLmd0C_Zsp83?oK4 z^=JTlNxzR7^yn}m0cHk-l?JRgI?$=qI+ulNOcUl|3l1n91laTfn)qtnbZ6aXO_Vj=2bSZ$Ub2|*umpn$v)A@9OI3SulEewFPfVd^H7 z3XRai`gN!#+iWKd_v71eqHIXs57IMr&6u1=}dyGV!vZfHVtO4eeT+0*vdS+I_ zkv`OwkCyd|le>_!1kYNBkYS#%a3}R!0*od*cS#cMh`9R%2Yv}3pqGR)%bG?t1^Jz7 z3ujNgR4Yxz%{`I@Zu|Zu&V4}~ed3w)^BVYG1bhF+7)@9DM#?y~E^xz8jJtRtvxFjI zvMdTkyUllbaC)9H+B!HYxww&oIlWjae6>$#O|ZJa+KoIc=qI=D8h`49F=xg4ko#u8 z&w=gK`9-%Crtmg4MBSNlnz8nrvH=Ro8^L8!KIYrmzaulC-uPm?9hqJdb2`LKNRPK8 z^A%->0Y$zz9B)UmIA_Xd(+3+>%;z0w;TH*xx%OZ#Pu5pE|HHoXHxX@qE`XIe8`^oW zDw2}5i0+PmfuI<;H%Gwca1r+TkcI}~Edg!d>1lLzYFYiu|@>&rbb6TxNYpoy*uQ#36 zqguNy;VMpDVjL}f%7ZPz%RkO{>CD{Y#%Y&q=AJ%Nl{>B=!Sn%LJ~>1wWW!@wy+pm8 z<;NfMdNrLNMp@1ewThglQ>m$@lA-3um$9gu%^LMt5O&41ku&UD{)Pg!tQ0x>EJ$0H glI|T(N8IgelODLGdihN2|83h(B~^1Cfe`>d0R%^)1poj5 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php new file mode 100644 index 000000000000..7204776e3f35 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +Ä +9google/cloud/cloudcontrolspartner/v1beta/monitoring.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.proto9google/cloud/cloudcontrolspartner/v1beta/violations.proto2Ö +CloudControlsPartnerMonitoringõ +ListViolations?.google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest@.google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse"`ÚAparent‚Óä“QO/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violationsâ + GetViolation=.google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest3.google.cloud.cloudcontrolspartner.v1beta.Violation"^ÚAname‚Óä“QO/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}WÊA#cloudcontrolspartner.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB§ +,com.google.cloud.cloudcontrolspartner.v1betaBMonitoringProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpbª(Google.Cloud.CloudControlsPartner.V1BetaÊ(Google\\Cloud\\CloudControlsPartner\\V1betaê+Google::Cloud::CloudControlsPartner::V1betabproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php new file mode 100644 index 0000000000000000000000000000000000000000..0e9caaf8f375e0eb125a5cb6cb576163d26c8b4e GIT binary patch literal 1849 zcmbtV(Tw2rb1*;cA5wwnrL7NM+x0^TSQ62W-v9hGJ1 zFr;cC|4&s_>T`dgUyJ_pW zSCGT=qaF`F1|Uh}qJXYQ=q?k0*8uV>FGnd(V8LR>Z})K#;S4hzr}z~w{RB?pv_KqY zJ$6!N3FA~@wZX{})O`R2W)*usC%jcBa8A{&y2m>gS{Xw$i_@@=iiF~v5$f_#Rh=TX z=y~;|`=Ci%!Qlz)3XZC}M)CwQTB57jA*6_vG&`<&R{*ocEZopYEyv+0M(MbRF5;J% zP*q)4wFLRtRu45tzHwLGio?gaDO?+m7j>R;0d*J5DxUk`znh@<`O1;H0ziICskKifcBmyUD`Y*)J6X~9PMGrwzBdUw&)K zpGrnv&n7QLyZ5dIz;Y?w19x1*8(6+?Id(L(eb>;fQ_JXgu1QDWP}6n8_oKkm_#4eL zZ2eiJ+5N~E7@jFsBI3+3{Z31QU{~|~p=b1?r;hjJ%+dOOG;nMya6HR4J8fwf>@=X7 z>w3<)b{2WY&qKox{LYs25QO{d0LGI+q&v24=t0HO542$DcebTR;9wKMic91VUDxq~ zNY{KLI=76chS#~S{?&S`{m}y7*GIZ~n4-h{3=5e%ld|4NDI;_mXZRKW(z(GXudgm= zN=lOXi}`e>BxS+KC89ifKAkDQ5&BC?;xT_XpU&nMwmh6-F9o|MV(Uaa^lOO0E#g@3ZrdUw~E)h6Y(p1%+u&0Ms+ol~;ezH=c*(-T|DA`1jopjeN^r;xzxtKDZ9f#is#+sAx0PsB715&` c^{6t3-*ka4KY3Lz6!bebZ?2(lJ|3U$*ItrOd|8e+>o0ihMkdUxzhv))-| zXORH;ak$|Og5c@D;9^;Q&IB{`=8TLZ_hG%&IM_!m9?)<6kD2;rENd$#M zJMvNGHdL6x_Etru z1S={=%lah91ITEK=1+%^B9_u#Q=%O60f${@wr&zffRCMLC*MnQC2- zlBtxrbweNF#kfj!>Pn?s-|4@kW_h`*EXz+BZ2wUJ>so@wRj?*RUCzN=WusQOurC|? zU@bXMlX3wTD#g8BbJdv4-g#;qgDdEK;wB_ag)o!ynnd|=b(H$~B^qrG*V^7bjX+C)qvcG1g}tJtvrRnYqvcK$DW_kYEdZOuQOf`c3%uF3UuGC|}*x>_9%)bx$ rI||scB(i=iSX-8|9$u17b$@4eA>LI(VQz+ec78}pb<0n|6o7vK`8lYJ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php new file mode 100644 index 0000000000000000000000000000000000000000..4cd9be1697c0589a474a8ecd05d9acad17531b93 GIT binary patch literal 3506 zcmb_fPjlN;5XW|t#_P06)uuHW288KMT}Z8|(+(NvLy zBnQ%rk6gI$F__^Sz=7e+iI31L{Rlm=@9B?K$AzTD2l?q~|NeI0?!M0-I{OZM#5agV zT-7H!-#_C0eZo7g?c17d^8L|ZKwMt44;;fJZi(kNBz{|xd2ypDe~7G}J#sZt;fJ<8 zG>M>@_DBz&nr->6ZF-LC`Y2vFyxk|hDjXWNsrrU(c_pR=z)}wgQfY*5v};>PqpQB! zYcPSmIu#f^rv&zPZ`Y9cK7eMbp2zRTg5el={5hk(X=uFXqdJYhZg`4e8NQ*K#xwNv z0Y6Ypk0AR=+QG=usEIsfkSvW9Z}NdmN_*Y05t#>kWMZ3wg+TS1mQP$uHG3Px(_F*x zZMTi2mCBI#F~oGIcr#Q>#Tf&>7}!{;oG|hM@4F+C)XwuR@kg$8pV>_XjN?^r27pz^ z=xrLr)N5p4MeyB9W#ZLD$m>`;B#iK>xnekE1LNwe2hQm=%0~_fU_4Y2w^@cV^lyD( zgjiQ~J%)A@Q?wX^L7}+;KdivLH_lD27_gRDS_jXmEGz|Sz4~sbM0E_o4KWK6eD#Cy z6H9l@6Ty#w2?m}BUD@U8Ic1<1yk&0T_X^t9wte5#nOWu8|TxIE>Y#qzz#=KqXBDMqT)r2+z%ijcQ#OQAK)G*ru1 zY#G=kb z46|$Xuk(;gY;r?bG%OF#JF7h&3v#a9dP`lUW ztI&jGiF2_my{#DuPw6QSAowu@i%I)92QCj;n6Xx$fTH`hHY8P*8cYx8!WBHyn7iav zmGmIx%JToJvK}Z}eFXEN_G_>d`il`cP%WK?okrpUJp;sv0)rt_bsf8xjr~P24eP0g zfkDF6FX4PBmb(Irkt-wDIIE<>A8A;ciW0}edmV8Ln|)PoO52LO*A|tX?QUDFH#eK& z#_~Jd8WfWhHA!lT)on%UG?cc~YS#CZ-KNxH?8_yx7ykf zyR$jd+^4X9f^$RMMkD@}F~e;_Ey>ssyK<*lmzDaK_*kiT_S&+fJQnwqc1L<7*5%h2 zaE>d$`%`kHolad$xHngL40EjTa4T@BD_7-duohtf^-HZ?gf7Kh1lZY*-_scLtoU_Z zY*VP0GnL;{FRH(#;1m{i8f>T;cW_EJVGSHK$y8B`OBAE@E9pIaocJ z%EC`6xH|2t=OEC8Yd``YcD!@t^+?nidK$X5WRdTECE*)u_vlt`WVuAu_SL>gD>fE} z!V|dMAQS8(=20! v0>PCElN|m{QCBJfb$_1CTI)CB$#g9k>JxVWI_?google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest + */ +class AccessApprovalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The time at which approval was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The justification for which approval is being requested. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + */ + protected $requested_reason = 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_time = 4; + */ + protected $requested_expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * @type \Google\Protobuf\Timestamp $request_time + * The time at which approval was requested. + * @type \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $requested_reason + * The justification for which approval is being requested. + * @type \Google\Protobuf\Timestamp $requested_expiration_time + * The requested expiration for the approval. If the request is approved, + * access will be granted from the time of approval until the expiration time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * 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; + } + + /** + * The time at which approval was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @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 = 2; + * @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 justification for which approval is being requested. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + * @return \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + * @param \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $var + * @return $this + */ + public function setRequestedReason($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason::class); + $this->requested_reason = $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_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestedExpirationTime() + { + return $this->requested_expiration_time; + } + + public function hasRequestedExpirationTime() + { + return isset($this->requested_expiration_time); + } + + public function clearRequestedExpirationTime() + { + unset($this->requested_expiration_time); + } + + /** + * 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_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestedExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->requested_expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php new file mode 100644 index 000000000000..749bbd5e9e97 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php @@ -0,0 +1,101 @@ +google.cloud.cloudcontrolspartner.v1beta.AccessReason + */ +class AccessReason extends \Google\Protobuf\Internal\Message +{ + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.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\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php new file mode 100644 index 000000000000..02d25f921413 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php @@ -0,0 +1,109 @@ +google.cloud.cloudcontrolspartner.v1beta.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; + /** + * Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but + * with universe agnostic naming. The principal accessed customer data in + * order to diagnose or resolve a suspected issue in services or a known + * outage, or for security, fraud, abuse, or compliance review purposes. + * + * Generated from protobuf enum CLOUD_INITIATED_ACCESS = 6; + */ + const CLOUD_INITIATED_ACCESS = 6; + + 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', + self::CLOUD_INITIATED_ACCESS => 'CLOUD_INITIATED_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(Type::class, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason_Type::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php new file mode 100644 index 000000000000..fd149c354a3e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php @@ -0,0 +1,75 @@ +google.cloud.cloudcontrolspartner.v1beta.CompletionState + */ +class CompletionState +{ + /** + * Unspecified completion state. + * + * Generated from protobuf enum COMPLETION_STATE_UNSPECIFIED = 0; + */ + const COMPLETION_STATE_UNSPECIFIED = 0; + /** + * Task started (has start date) but not yet completed. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * Succeeded state. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * Failed state. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Not applicable state. + * + * Generated from protobuf enum NOT_APPLICABLE = 4; + */ + const NOT_APPLICABLE = 4; + + private static $valueToName = [ + self::COMPLETION_STATE_UNSPECIFIED => 'COMPLETION_STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::NOT_APPLICABLE => 'NOT_APPLICABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php new file mode 100644 index 000000000000..30e58e7966ae --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php @@ -0,0 +1,183 @@ +google.cloud.cloudcontrolspartner.v1beta.Customer + */ +class Customer extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Display name for the customer + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_onboarding_state = null; + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_onboarded = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * @type string $display_name + * Required. Display name for the customer + * @type \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $customer_onboarding_state + * Output only. Container for customer onboarding steps + * @type bool $is_onboarded + * Output only. Indicates whether a customer is fully onboarded + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * 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 for the customer + * + * 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 for the customer + * + * 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. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState|null + */ + public function getCustomerOnboardingState() + { + return $this->customer_onboarding_state; + } + + public function hasCustomerOnboardingState() + { + return isset($this->customer_onboarding_state); + } + + public function clearCustomerOnboardingState() + { + unset($this->customer_onboarding_state); + } + + /** + * Output only. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $var + * @return $this + */ + public function setCustomerOnboardingState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState::class); + $this->customer_onboarding_state = $var; + + return $this; + } + + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsOnboarded() + { + return $this->is_onboarded; + } + + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsOnboarded($var) + { + GPBUtil::checkBool($var); + $this->is_onboarded = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php new file mode 100644 index 000000000000..d71f9c029eb1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php @@ -0,0 +1,67 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState + */ +class CustomerOnboardingState extends \Google\Protobuf\Internal\Message +{ + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + */ + private $onboarding_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps + * List of customer onboarding steps + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOnboardingSteps() + { + return $this->onboarding_steps; + } + + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOnboardingSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep::class); + $this->onboarding_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php new file mode 100644 index 000000000000..bccf8c9fd75e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php @@ -0,0 +1,189 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep + */ +class CustomerOnboardingStep extends \Google\Protobuf\Internal\Message +{ + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + */ + protected $step = 0; + /** + * The starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + */ + protected $completion_time = null; + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The onboarding step + * @type \Google\Protobuf\Timestamp $start_time + * The starting time of the onboarding step + * @type \Google\Protobuf\Timestamp $completion_time + * The completion time of the onboarding step + * @type int $completion_state + * Output only. Current state of the step + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep\Step::class); + $this->step = $var; + + return $this; + } + + /** + * The starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCompletionTime() + { + return $this->completion_time; + } + + public function hasCompletionTime() + { + return isset($this->completion_time); + } + + public function clearCompletionTime() + { + unset($this->completion_time); + } + + /** + * The completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCompletionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->completion_time = $var; + + return $this; + } + + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompletionState() + { + return $this->completion_state; + } + + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompletionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); + $this->completion_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php new file mode 100644 index 000000000000..bdfd00ad05df --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php @@ -0,0 +1,64 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step + */ +class Step +{ + /** + * Unspecified step + * + * Generated from protobuf enum STEP_UNSPECIFIED = 0; + */ + const STEP_UNSPECIFIED = 0; + /** + * KAJ Enrollment + * + * Generated from protobuf enum KAJ_ENROLLMENT = 1; + */ + const KAJ_ENROLLMENT = 1; + /** + * Customer Environment + * + * Generated from protobuf enum CUSTOMER_ENVIRONMENT = 2; + */ + const CUSTOMER_ENVIRONMENT = 2; + + private static $valueToName = [ + self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', + self::KAJ_ENROLLMENT => 'KAJ_ENROLLMENT', + self::CUSTOMER_ENVIRONMENT => 'CUSTOMER_ENVIRONMENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep_Step::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php new file mode 100644 index 000000000000..c6499a11c4c7 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php @@ -0,0 +1,149 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection + */ +class EkmConnection extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + */ + protected $connection_name = ''; + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $connection_state = 0; + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + */ + protected $connection_error = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $connection_name + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * @type int $connection_state + * Output only. The connection state + * @type \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $connection_error + * The connection error that occurred if any + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + * @return string + */ + public function getConnectionName() + { + return $this->connection_name; + } + + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + * @param string $var + * @return $this + */ + public function setConnectionName($var) + { + GPBUtil::checkString($var, True); + $this->connection_name = $var; + + return $this; + } + + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getConnectionState() + { + return $this->connection_state; + } + + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setConnectionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionState::class); + $this->connection_state = $var; + + return $this; + } + + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + * @return \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError|null + */ + public function getConnectionError() + { + return $this->connection_error; + } + + public function hasConnectionError() + { + return isset($this->connection_error); + } + + public function clearConnectionError() + { + unset($this->connection_error); + } + + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + * @param \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $var + * @return $this + */ + public function setConnectionError($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError::class); + $this->connection_error = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php new file mode 100644 index 000000000000..9aca53df2b73 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError + */ +class ConnectionError extends \Google\Protobuf\Internal\Message +{ + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + */ + protected $error_domain = ''; + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_domain + * The error domain for the error + * @type string $error_message + * The error message for the error + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + * @return string + */ + public function getErrorDomain() + { + return $this->error_domain; + } + + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + * @param string $var + * @return $this + */ + public function setErrorDomain($var) + { + GPBUtil::checkString($var, True); + $this->error_domain = $var; + + return $this; + } + + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConnectionError::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionError::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php new file mode 100644 index 000000000000..cb82ba238616 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php @@ -0,0 +1,78 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState + */ +class ConnectionState +{ + /** + * Unspecified EKM connection state + * + * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; + */ + const CONNECTION_STATE_UNSPECIFIED = 0; + /** + * Available EKM connection state + * + * Generated from protobuf enum AVAILABLE = 1; + */ + const AVAILABLE = 1; + /** + * Not available EKM connection state + * + * Generated from protobuf enum NOT_AVAILABLE = 2; + */ + const NOT_AVAILABLE = 2; + /** + * Error EKM connection state + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + /** + * Permission denied EKM connection state + * + * Generated from protobuf enum PERMISSION_DENIED = 4; + */ + const PERMISSION_DENIED = 4; + + private static $valueToName = [ + self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', + self::AVAILABLE => 'AVAILABLE', + self::NOT_AVAILABLE => 'NOT_AVAILABLE', + self::ERROR => 'ERROR', + 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(ConnectionState::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionState::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php new file mode 100644 index 000000000000..7394d8a0c25d --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnections + */ +class EkmConnections extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + */ + private $ekm_connections; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $ekm_connections + * The EKM connections associated with the workload + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * 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; + } + + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEkmConnections() + { + return $this->ekm_connections; + } + + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEkmConnections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection::class); + $this->ekm_connections = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php new file mode 100644 index 000000000000..0f9d50a25cb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmMetadata + */ +class EkmMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + */ + protected $ekm_solution = 0; + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + */ + protected $ekm_endpoint_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $ekm_solution + * The Cloud EKM partner. + * @type string $ekm_endpoint_uri + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + * @return int + */ + public function getEkmSolution() + { + return $this->ekm_solution; + } + + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + * @param int $var + * @return $this + */ + public function setEkmSolution($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata\EkmSolution::class); + $this->ekm_solution = $var; + + return $this; + } + + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + * @return string + */ + public function getEkmEndpointUri() + { + return $this->ekm_endpoint_uri; + } + + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + * @param string $var + * @return $this + */ + public function setEkmEndpointUri($var) + { + GPBUtil::checkString($var, True); + $this->ekm_endpoint_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php new file mode 100644 index 000000000000..38cd6012fc5c --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php @@ -0,0 +1,80 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution + */ +class EkmSolution +{ + /** + * Unspecified EKM solution + * + * Generated from protobuf enum EKM_SOLUTION_UNSPECIFIED = 0; + */ + const EKM_SOLUTION_UNSPECIFIED = 0; + /** + * EKM Partner Fortanix + * + * Generated from protobuf enum FORTANIX = 1; + */ + const FORTANIX = 1; + /** + * EKM Partner FutureX + * + * Generated from protobuf enum FUTUREX = 2; + */ + const FUTUREX = 2; + /** + * EKM Partner Thales + * + * Generated from protobuf enum THALES = 3; + */ + const THALES = 3; + /** + * EKM Partner Virtu + * + * Generated from protobuf enum VIRTRU = 4; + */ + const VIRTRU = 4; + + private static $valueToName = [ + self::EKM_SOLUTION_UNSPECIFIED => 'EKM_SOLUTION_UNSPECIFIED', + self::FORTANIX => 'FORTANIX', + self::FUTUREX => 'FUTUREX', + self::THALES => 'THALES', + self::VIRTRU => 'VIRTRU', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EkmSolution::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata_EkmSolution::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php new file mode 100644 index 000000000000..d1ae3b4b2209 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest + */ +class GetCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetCustomerRequest + * + * @experimental + */ + public static function 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: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated 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: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php new file mode 100644 index 000000000000..6381546761ca --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest + */ +class GetEkmConnectionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * Please see {@see CloudControlsPartnerCoreClient::ekmConnectionsName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetEkmConnectionsRequest + * + * @experimental + */ + public static function 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: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated 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: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php new file mode 100644 index 000000000000..158f69da500b --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest + */ +class GetPartnerPermissionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * 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 to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * Please see {@see CloudControlsPartnerCoreClient::partnerPermissionsName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerPermissionsRequest + * + * @experimental + */ + public static function 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 to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated 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 to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php new file mode 100644 index 000000000000..603cedb4779e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest + */ +class GetPartnerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * Please see {@see CloudControlsPartnerCoreClient::partnerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerRequest + * + * @experimental + */ + public static function 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: + * `organizations/{organization}/locations/{location}/partner` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated 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: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php new file mode 100644 index 000000000000..129ad52806bf --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest + */ +class GetViolationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * Please see {@see CloudControlsPartnerMonitoringClient::violationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\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. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php new file mode 100644 index 000000000000..bf359b185d58 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest + */ +class GetWorkloadRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\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. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php new file mode 100644 index 000000000000..a288ad168456 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php @@ -0,0 +1,243 @@ +google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest + */ +class ListAccessApprovalRequestsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * 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 + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * + * 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 resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsRequest + * + * @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 + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int $page_size + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * @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\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/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. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * 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 access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * 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 + * `ListAccessApprovalRequests` 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 + * `ListAccessApprovalRequests` 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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php new file mode 100644 index 000000000000..4e257b26bee2 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse + */ +class ListAccessApprovalRequestsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + */ + private $access_approval_requests; + /** + * 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 = ''; + /** + * 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\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $access_approval_requests + * List of access approval requests + * @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. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessApprovalRequests() + { + return $this->access_approval_requests; + } + + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessApprovalRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest::class); + $this->access_approval_requests = $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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php new file mode 100644 index 000000000000..e5bec2eab2cd --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php @@ -0,0 +1,230 @@ +google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest + */ +class ListCustomersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * + * 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. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * Please see {@see CloudControlsPartnerCoreClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListCustomersRequest + * + * @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 + * Format: `organizations/{organization}/locations/{location}` + * @type int $page_size + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * @type string $page_token + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * @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\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: `organizations/{organization}/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 + * Format: `organizations/{organization}/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 Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * 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 `ListCustomers` 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; + } + + /** + * A page token, received from a previous `ListCustomers` 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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php new file mode 100644 index 000000000000..fd4717f8acc4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse + */ +class ListCustomersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + */ + private $customers; + /** + * 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 = ''; + /** + * 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\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $customers + * List of customers + * @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. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomers() + { + return $this->customers; + } + + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Customer::class); + $this->customers = $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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php new file mode 100644 index 000000000000..02890b69ad17 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php @@ -0,0 +1,287 @@ +google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest + */ +class ListViolationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * 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 `ListViolations` call. + * Provide this to retrieve the subsequent page. + * + * 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. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $interval = null; + + /** + * @param string $parent Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerMonitoringClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\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. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int $page_size + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * @type string $page_token + * Optional. A page token, received from a previous `ListViolations` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. Filtering results + * @type string $order_by + * Optional. Hint for how to order the results + * @type \Google\Type\Interval $interval + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/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. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/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. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * 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 customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * 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 `ListViolations` 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 `ListViolations` 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; + } + + /** + * 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. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Interval|null + */ + public function getInterval() + { + return $this->interval; + } + + public function hasInterval() + { + return isset($this->interval); + } + + public function clearInterval() + { + unset($this->interval); + } + + /** + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->interval = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php new file mode 100644 index 000000000000..d6d5892a6aa9 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php @@ -0,0 +1,143 @@ +google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse + */ +class ListViolationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + */ + private $violations; + /** + * 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 = ''; + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * 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\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $violations + * List of violation + * @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. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getViolations() + { + return $this->violations; + } + + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Violation::class); + $this->violations = $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; + } + + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php new file mode 100644 index 000000000000..5f150ef9c1ef --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php @@ -0,0 +1,235 @@ +google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest + */ +class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * + * 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. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\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 + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * @type int $page_size + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * @type string $page_token + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * @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\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated 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 + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * 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 `ListWorkloads` 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; + } + + /** + * A page token, received from a previous `ListWorkloads` 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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php new file mode 100644 index 000000000000..56683381ab44 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse + */ +class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + */ + private $workloads; + /** + * 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 = ''; + /** + * 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\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads + * List of customer workloads + * @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. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWorkloads() + { + return $this->workloads; + } + + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWorkloads($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Workload::class); + $this->workloads = $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; + } + + /** + * 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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php new file mode 100644 index 000000000000..31d052f949a4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.cloudcontrolspartner.v1beta.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\Cloudcontrolspartner\V1Beta\Core::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/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php new file mode 100644 index 000000000000..73c989a106bf --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php @@ -0,0 +1,311 @@ +google.cloud.cloudcontrolspartner.v1beta.Partner + */ +class Partner extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + */ + private $skus; + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + */ + private $ekm_solutions; + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + */ + private $operated_cloud_regions; + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + */ + protected $partner_project_id = ''; + /** + * Output only. Time the resource 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 last time the resource was updated + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.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 partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $skus + * List of SKUs the partner is offering + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $ekm_solutions + * List of Google Cloud supported EKM partners supported by the partner + * @type array|\Google\Protobuf\Internal\RepeatedField $operated_cloud_regions + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * @type string $partner_project_id + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the resource was created + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last time the resource was updated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * 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 partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * 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; + } + + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkus() + { + return $this->skus; + } + + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Sku::class); + $this->skus = $arr; + + return $this; + } + + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEkmSolutions() + { + return $this->ekm_solutions; + } + + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEkmSolutions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata::class); + $this->ekm_solutions = $arr; + + return $this; + } + + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperatedCloudRegions() + { + return $this->operated_cloud_regions; + } + + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperatedCloudRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->operated_cloud_regions = $arr; + + return $this; + } + + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + * @return string + */ + public function getPartnerProjectId() + { + return $this->partner_project_id; + } + + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + * @param string $var + * @return $this + */ + public function setPartnerProjectId($var) + { + GPBUtil::checkString($var, True); + $this->partner_project_id = $var; + + return $this; + } + + /** + * Output only. Time the resource 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 the resource 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 last time the resource was 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 last time the resource was 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; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php new file mode 100644 index 000000000000..d20811b7aaba --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions + */ +class PartnerPermissions extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + */ + private $partner_permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * @type array|\Google\Protobuf\Internal\RepeatedField $partner_permissions + * The partner permissions granted for the workload + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * 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; + } + + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartnerPermissions() + { + return $this->partner_permissions; + } + + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartnerPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions\Permission::class); + $this->partner_permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php new file mode 100644 index 000000000000..f3df3144b646 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php @@ -0,0 +1,83 @@ +google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission + */ +class Permission +{ + /** + * Unspecified partner permission + * + * Generated from protobuf enum PERMISSION_UNSPECIFIED = 0; + */ + const PERMISSION_UNSPECIFIED = 0; + /** + * Permission for Access Transparency and emergency logs + * + * Generated from protobuf enum ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; + */ + const ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; + /** + * Permission for Assured Workloads monitoring violations + * + * Generated from protobuf enum ASSURED_WORKLOADS_MONITORING = 2; + */ + const ASSURED_WORKLOADS_MONITORING = 2; + /** + * Permission for Access Approval requests + * + * Generated from protobuf enum ACCESS_APPROVAL_REQUESTS = 3; + */ + const ACCESS_APPROVAL_REQUESTS = 3; + /** + * Permission for External Key Manager connection status + * + * Generated from protobuf enum ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; + */ + const ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; + /** + * Permission for support case details for Access Transparency log entries + * + * Generated from protobuf enum ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; + */ + const ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; + + private static $valueToName = [ + self::PERMISSION_UNSPECIFIED => 'PERMISSION_UNSPECIFIED', + self::ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS => 'ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS', + self::ASSURED_WORKLOADS_MONITORING => 'ASSURED_WORKLOADS_MONITORING', + self::ACCESS_APPROVAL_REQUESTS => 'ACCESS_APPROVAL_REQUESTS', + self::ASSURED_WORKLOADS_EKM_CONNECTION_STATUS => 'ASSURED_WORKLOADS_EKM_CONNECTION_STATUS', + self::ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER => 'ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Permission::class, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions_Permission::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php new file mode 100644 index 000000000000..9fb94628a7cb --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php @@ -0,0 +1,117 @@ +google.cloud.cloudcontrolspartner.v1beta.Sku + */ +class Sku extends \Google\Protobuf\Internal\Message +{ + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * @type string $display_name + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * 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; + } + + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php new file mode 100644 index 000000000000..125282910530 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php @@ -0,0 +1,445 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + 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.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * 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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $non_compliant_org_policy = ''; + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + */ + protected $folder_id = 0; + /** + * Output only. Compliance violation remediation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remediation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * @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 $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 int|string $folder_id + * The folder_id of the violation + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $remediation + * Output only. Compliance violation remediation + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * 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. 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.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\State::class); + $this->state = $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 = 8 [(.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 = 8 [(.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; + } + + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + * @return int|string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->folder_id = $var; + + return $this; + } + + /** + * Output only. Compliance violation remediation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $var + * @return $this + */ + public function setRemediation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation::class); + $this->remediation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php new file mode 100644 index 000000000000..54d44de4c703 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php @@ -0,0 +1,161 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation + */ +class Remediation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Remediation instructions to resolve violations + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.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. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.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\CloudControlsPartner\V1beta\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. Remediation type based on the type of org policy values + * violated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Remediation instructions to resolve violations + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions $var + * @return $this + */ + public function setInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\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. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRemediationType() + { + return $this->remediation_type; + } + + /** + * Output only. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.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\CloudControlsPartner\V1beta\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\CloudControlsPartner\V1beta\Violation_Remediation::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php new file mode 100644 index 000000000000..d2dc4c3979ba --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php @@ -0,0 +1,124 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions + */ +class Instructions extends \Google\Protobuf\Internal\Message +{ + /** + * Remediation instructions to resolve violation via gcloud cli + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.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.cloudcontrolspartner.v1beta.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\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $gcloud_instructions + * Remediation instructions to resolve violation via gcloud cli + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $console_instructions + * Remediation instructions to resolve violation via cloud console + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Remediation instructions to resolve violation via gcloud cli + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; + * @return \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $var + * @return $this + */ + public function setGcloudInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; + * @return \Google\Cloud\CloudControlsPartner\V1beta\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.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $var + * @return $this + */ + public function setConsoleInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\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\CloudControlsPartner\V1beta\Violation_Remediation_Instructions::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php new file mode 100644 index 000000000000..c746d8a4efb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php @@ -0,0 +1,138 @@ +google.cloud.cloudcontrolspartner.v1beta.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\Cloudcontrolspartner\V1Beta\Violations::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\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Console::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php new file mode 100644 index 000000000000..e990db571e51 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php @@ -0,0 +1,138 @@ +google.cloud.cloudcontrolspartner.v1beta.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\Cloudcontrolspartner\V1Beta\Violations::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\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Gcloud::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php new file mode 100644 index 000000000000..01ab1e0f7e75 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php @@ -0,0 +1,90 @@ +google.cloud.cloudcontrolspartner.v1beta.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; + /** + * Remediation type for resource violation. + * + * Generated from protobuf enum REMEDIATION_RESOURCE_VIOLATION = 5; + */ + const REMEDIATION_RESOURCE_VIOLATION = 5; + + 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', + self::REMEDIATION_RESOURCE_VIOLATION => 'REMEDIATION_RESOURCE_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\CloudControlsPartner\V1beta\Violation_Remediation_RemediationType::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php new file mode 100644 index 000000000000..0f0aa1953b19 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php @@ -0,0 +1,71 @@ +google.cloud.cloudcontrolspartner.v1beta.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 = 1; + */ + const RESOLVED = 1; + /** + * Violation is Unresolved + * + * Generated from protobuf enum UNRESOLVED = 2; + */ + const UNRESOLVED = 2; + /** + * Violation is Exception + * + * Generated from protobuf enum EXCEPTION = 3; + */ + const EXCEPTION = 3; + + 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\CloudControlsPartner\V1beta\Violation_State::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php new file mode 100644 index 000000000000..4427d1c428c1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php @@ -0,0 +1,365 @@ +google.cloud.cloudcontrolspartner.v1beta.Workload + */ +class Workload extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $folder_id = 0; + /** + * Output only. Time the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $folder = ''; + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + */ + protected $workload_onboarding_state = null; + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + */ + protected $is_onboarded = false; + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + */ + protected $key_management_project_id = ''; + /** + * The Google Cloud location of the workload + * + * Generated from protobuf field string location = 8; + */ + protected $location = ''; + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + */ + protected $partner = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int|string $folder_id + * Output only. Folder id this workload is associated with + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the resource was created. + * @type string $folder + * Output only. The name of container folder of the assured workload + * @type \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $workload_onboarding_state + * Container for workload onboarding steps. + * @type bool $is_onboarded + * Indicates whether a workload is fully onboarded. + * @type string $key_management_project_id + * The project id of the key management project for the workload + * @type string $location + * The Google Cloud location of the workload + * @type int $partner + * Partner associated with this workload. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * 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. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * Output only. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->folder_id = $var; + + return $this; + } + + /** + * Output only. Time the resource 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 the resource 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; + } + + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFolder() + { + return $this->folder; + } + + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkString($var, True); + $this->folder = $var; + + return $this; + } + + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + * @return \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState|null + */ + public function getWorkloadOnboardingState() + { + return $this->workload_onboarding_state; + } + + public function hasWorkloadOnboardingState() + { + return isset($this->workload_onboarding_state); + } + + public function clearWorkloadOnboardingState() + { + unset($this->workload_onboarding_state); + } + + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + * @param \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $var + * @return $this + */ + public function setWorkloadOnboardingState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState::class); + $this->workload_onboarding_state = $var; + + return $this; + } + + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + * @return bool + */ + public function getIsOnboarded() + { + return $this->is_onboarded; + } + + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + * @param bool $var + * @return $this + */ + public function setIsOnboarded($var) + { + GPBUtil::checkBool($var); + $this->is_onboarded = $var; + + return $this; + } + + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + * @return string + */ + public function getKeyManagementProjectId() + { + return $this->key_management_project_id; + } + + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + * @param string $var + * @return $this + */ + public function setKeyManagementProjectId($var) + { + GPBUtil::checkString($var, True); + $this->key_management_project_id = $var; + + return $this; + } + + /** + * The Google Cloud location of the workload + * + * Generated from protobuf field string location = 8; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * The Google Cloud location of the workload + * + * 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; + } + + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + * @return int + */ + public function getPartner() + { + return $this->partner; + } + + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + * @param int $var + * @return $this + */ + public function setPartner($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Workload\Partner::class); + $this->partner = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php new file mode 100644 index 000000000000..200d42c02ac4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php @@ -0,0 +1,93 @@ +google.cloud.cloudcontrolspartner.v1beta.Workload.Partner + */ +class Partner +{ + /** + * Unknown Partner. + * + * Generated from protobuf enum PARTNER_UNSPECIFIED = 0; + */ + const PARTNER_UNSPECIFIED = 0; + /** + * Enum representing S3NS (Thales) partner. + * + * Generated from protobuf enum PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; + */ + const PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; + /** + * Enum representing T_SYSTEM (TSI) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; + /** + * Enum representing SIA_MINSAIT (Indra) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; + /** + * Enum representing PSN (TIM) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; + /** + * Enum representing CNTXT (Kingdom of Saudi Arabia) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; + /** + * Enum representing CNXT (Kingdom of Saudi Arabia) partner offering without + * EKM provisioning. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; + + private static $valueToName = [ + self::PARTNER_UNSPECIFIED => 'PARTNER_UNSPECIFIED', + self::PARTNER_LOCAL_CONTROLS_BY_S3NS => 'PARTNER_LOCAL_CONTROLS_BY_S3NS', + self::PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS => 'PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS', + self::PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT => 'PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT', + self::PARTNER_SOVEREIGN_CONTROLS_BY_PSN => 'PARTNER_SOVEREIGN_CONTROLS_BY_PSN', + self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT', + self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\CloudControlsPartner\V1beta\Workload_Partner::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php new file mode 100644 index 000000000000..27796c879a36 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php @@ -0,0 +1,67 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState + */ +class WorkloadOnboardingState extends \Google\Protobuf\Internal\Message +{ + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + */ + private $onboarding_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps + * List of workload onboarding steps. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOnboardingSteps() + { + return $this->onboarding_steps; + } + + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOnboardingSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep::class); + $this->onboarding_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php new file mode 100644 index 000000000000..42e6bfd84712 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php @@ -0,0 +1,189 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep + */ +class WorkloadOnboardingStep extends \Google\Protobuf\Internal\Message +{ + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + */ + protected $step = 0; + /** + * The starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + */ + protected $completion_time = null; + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The onboarding step. + * @type \Google\Protobuf\Timestamp $start_time + * The starting time of the onboarding step. + * @type \Google\Protobuf\Timestamp $completion_time + * The completion time of the onboarding step. + * @type int $completion_state + * Output only. The completion state of the onboarding step. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep\Step::class); + $this->step = $var; + + return $this; + } + + /** + * The starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCompletionTime() + { + return $this->completion_time; + } + + public function hasCompletionTime() + { + return isset($this->completion_time); + } + + public function clearCompletionTime() + { + unset($this->completion_time); + } + + /** + * The completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCompletionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->completion_time = $var; + + return $this; + } + + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompletionState() + { + return $this->completion_state; + } + + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompletionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); + $this->completion_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php new file mode 100644 index 000000000000..250843304815 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php @@ -0,0 +1,64 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step + */ +class Step +{ + /** + * Unspecified step. + * + * Generated from protobuf enum STEP_UNSPECIFIED = 0; + */ + const STEP_UNSPECIFIED = 0; + /** + * EKM Provisioned step. + * + * Generated from protobuf enum EKM_PROVISIONED = 1; + */ + const EKM_PROVISIONED = 1; + /** + * Signed Access Approval step. + * + * Generated from protobuf enum SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; + */ + const SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; + + private static $valueToName = [ + self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', + self::EKM_PROVISIONED => 'EKM_PROVISIONED', + self::SIGNED_ACCESS_APPROVAL_CONFIGURED => 'SIGNED_ACCESS_APPROVAL_CONFIGURED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep_Step::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php new file mode 100644 index 000000000000..09c19aa62278 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudControlsPartnerCoreClient->getCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::customerName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]' + ); + + get_customer_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetCustomer_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php new file mode 100644 index 000000000000..f49e5fad3624 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EkmConnections $response */ + $response = $cloudControlsPartnerCoreClient->getEkmConnections($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::ekmConnectionsName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_ekm_connections_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetEkmConnections_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php new file mode 100644 index 000000000000..6e8039934d34 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Partner $response */ + $response = $cloudControlsPartnerCoreClient->getPartner($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::partnerName('[ORGANIZATION]', '[LOCATION]'); + + get_partner_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartner_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php new file mode 100644 index 000000000000..4d1290326cb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PartnerPermissions $response */ + $response = $cloudControlsPartnerCoreClient->getPartnerPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::partnerPermissionsName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_partner_permissions_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartnerPermissions_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php new file mode 100644 index 000000000000..517db77037e5 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Workload $response */ + $response = $cloudControlsPartnerCoreClient->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 = CloudControlsPartnerCoreClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_workload_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetWorkload_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php new file mode 100644 index 000000000000..07dbcd899359 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->listAccessApprovalRequests($request); + + /** @var AccessApprovalRequest $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 = CloudControlsPartnerCoreClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + list_access_approval_requests_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListAccessApprovalRequests_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php new file mode 100644 index 000000000000..83e1cbb8dd86 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->listCustomers($request); + + /** @var Customer $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 = CloudControlsPartnerCoreClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + + list_customers_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListCustomers_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php new file mode 100644 index 000000000000..b6f060e4a8ab --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->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 = CloudControlsPartnerCoreClient::customerName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]' + ); + + list_workloads_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListWorkloads_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php new file mode 100644 index 000000000000..76e77b0a7d2e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Violation $response */ + $response = $cloudControlsPartnerMonitoringClient->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 = CloudControlsPartnerMonitoringClient::violationName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]', + '[VIOLATION]' + ); + + get_violation_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_GetViolation_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php new file mode 100644 index 000000000000..456fadac7de1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php @@ -0,0 +1,89 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerMonitoringClient->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 = CloudControlsPartnerMonitoringClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + list_violations_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_ListViolations_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php new file mode 100644 index 000000000000..826c91fb3e3d --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php @@ -0,0 +1,586 @@ + getCustomerAsync(GetCustomerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEkmConnectionsAsync(GetEkmConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPartnerAsync(GetPartnerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPartnerPermissionsAsync(GetPartnerPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessApprovalRequestsAsync(ListAccessApprovalRequestsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomersAsync(ListCustomersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) + */ +final class CloudControlsPartnerCoreClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudcontrolspartner.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudcontrolspartner.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/cloud_controls_partner_core_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a customer + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * + * @return string The formatted customer resource. + * + * @experimental + */ + public static function customerName(string $organization, string $location, string $customer): string + { + return self::getPathTemplate('customer')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * ekm_connections resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted ekm_connections resource. + * + * @experimental + */ + public static function ekmConnectionsName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('ekmConnections')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * 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. + * + * @experimental + */ + 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 partner + * resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted partner resource. + * + * @experimental + */ + public static function partnerName(string $organization, string $location): string + { + return self::getPathTemplate('partner')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * partner_permissions resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted partner_permissions resource. + * + * @experimental + */ + public static function partnerPermissionsName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('partnerPermissions')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a workload + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted workload resource. + * + * @experimental + */ + public static function workloadName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('workload')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + '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 + * - customer: organizations/{organization}/locations/{location}/customers/{customer} + * - ekmConnections: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + * - organizationLocation: organizations/{organization}/locations/{location} + * - partner: organizations/{organization}/locations/{location}/partner + * - partnerPermissions: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + * - workload: organizations/{organization}/locations/{location}/customers/{customer}/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 'cloudcontrolspartner.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); + } + + /** + * Gets details of a single customer + * + * The async variant is {@see CloudControlsPartnerCoreClient::getCustomerAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php + * + * @param GetCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getCustomer(GetCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('GetCustomer', $request, $callOptions)->wait(); + } + + /** + * Gets the EKM connections associated with a workload + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::getEkmConnectionsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php + * + * @param GetEkmConnectionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EkmConnections + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getEkmConnections(GetEkmConnectionsRequest $request, array $callOptions = []): EkmConnections + { + return $this->startApiCall('GetEkmConnections', $request, $callOptions)->wait(); + } + + /** + * Get details of a Partner. + * + * The async variant is {@see CloudControlsPartnerCoreClient::getPartnerAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php + * + * @param GetPartnerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Partner + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getPartner(GetPartnerRequest $request, array $callOptions = []): Partner + { + return $this->startApiCall('GetPartner', $request, $callOptions)->wait(); + } + + /** + * Gets the partner permissions granted for a workload + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::getPartnerPermissionsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php + * + * @param GetPartnerPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PartnerPermissions + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getPartnerPermissions(GetPartnerPermissionsRequest $request, array $callOptions = []): PartnerPermissions + { + return $this->startApiCall('GetPartnerPermissions', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single workload + * + * The async variant is {@see CloudControlsPartnerCoreClient::getWorkloadAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/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(); + } + + /** + * Deprecated: Only returns access approval requests directly associated with + * an assured workload folder. + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::listAccessApprovalRequestsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php + * + * @param ListAccessApprovalRequestsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listAccessApprovalRequests(ListAccessApprovalRequestsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccessApprovalRequests', $request, $callOptions); + } + + /** + * Lists customers of a partner identified by its Google Cloud organization ID + * + * The async variant is {@see CloudControlsPartnerCoreClient::listCustomersAsync()} + * . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php + * + * @param ListCustomersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listCustomers(ListCustomersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomers', $request, $callOptions); + } + + /** + * Lists customer workloads for a given customer org id + * + * The async variant is {@see CloudControlsPartnerCoreClient::listWorkloadsAsync()} + * . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/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); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php new file mode 100644 index 000000000000..8d542282dbf0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php @@ -0,0 +1,318 @@ + getViolationAsync(GetViolationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listViolationsAsync(ListViolationsRequest $request, array $optionalArgs = []) + */ +final class CloudControlsPartnerMonitoringClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudcontrolspartner.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudcontrolspartner.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/cloud_controls_partner_monitoring_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a violation + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * @param string $violation + * + * @return string The formatted violation resource. + * + * @experimental + */ + public static function violationName(string $organization, string $location, string $customer, string $workload, string $violation): string + { + return self::getPathTemplate('violation')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + '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 $customer + * @param string $workload + * + * @return string The formatted workload resource. + * + * @experimental + */ + public static function workloadName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('workload')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + '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 + * - violation: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + * - workload: organizations/{organization}/locations/{location}/customers/{customer}/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 'cloudcontrolspartner.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); + } + + /** + * Gets details of a single Violation. + * + * The async variant is + * {@see CloudControlsPartnerMonitoringClient::getViolationAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerMonitoringClient/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. + * + * @experimental + */ + public function getViolation(GetViolationRequest $request, array $callOptions = []): Violation + { + return $this->startApiCall('GetViolation', $request, $callOptions)->wait(); + } + + /** + * Lists Violations for a workload + * Callers may also choose to read across multiple Customers or for a single + * customer as per + * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash + * character) as a wildcard character instead of {customer} & {workload}. + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * The async variant is + * {@see CloudControlsPartnerMonitoringClient::listViolationsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerMonitoringClient/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. + * + * @experimental + */ + public function listViolations(ListViolationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListViolations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 000000000000..26122625ba86 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,77 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.cloudcontrolspartner.v1beta", + "libraryPackage": "Google\\Cloud\\CloudControlsPartner\\V1beta", + "services": { + "CloudControlsPartnerCore": { + "clients": { + "grpc": { + "libraryClient": "CloudControlsPartnerCoreGapicClient", + "rpcs": { + "GetCustomer": { + "methods": [ + "getCustomer" + ] + }, + "GetEkmConnections": { + "methods": [ + "getEkmConnections" + ] + }, + "GetPartner": { + "methods": [ + "getPartner" + ] + }, + "GetPartnerPermissions": { + "methods": [ + "getPartnerPermissions" + ] + }, + "GetWorkload": { + "methods": [ + "getWorkload" + ] + }, + "ListAccessApprovalRequests": { + "methods": [ + "listAccessApprovalRequests" + ] + }, + "ListCustomers": { + "methods": [ + "listCustomers" + ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads" + ] + } + } + } + } + }, + "CloudControlsPartnerMonitoring": { + "clients": { + "grpc": { + "libraryClient": "CloudControlsPartnerMonitoringGapicClient", + "rpcs": { + "GetViolation": { + "methods": [ + "getViolation" + ] + }, + "ListViolations": { + "methods": [ + "listViolations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json new file mode 100644 index 000000000000..84b4915423a3 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json @@ -0,0 +1,74 @@ +{ + "interfaces": { + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore": { + "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": { + "GetCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEkmConnections": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetPartner": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPartnerPermissions": { + "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" + }, + "ListAccessApprovalRequests": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomers": { + "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" + } + } + } + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php new file mode 100644 index 000000000000..f3f5186c4791 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php @@ -0,0 +1,156 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ + 'GetCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Customer', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEkmConnections' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\EkmConnections', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPartner' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Partner', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPartnerPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkload' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Workload', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAccessApprovalRequests' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccessApprovalRequests', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListCustomersResponse', + '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\CloudControlsPartner\V1beta\ListWorkloadsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'customer' => 'organizations/{organization}/locations/{location}/customers/{customer}', + 'ekmConnections' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'partner' => 'organizations/{organization}/locations/{location}/partner', + 'partnerPermissions' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions', + 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php new file mode 100644 index 000000000000..3dd6f9afb6b6 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php @@ -0,0 +1,117 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ + 'GetCustomer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEkmConnections' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPartner' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/partner}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPartnerPermissions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkload' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAccessApprovalRequests' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*}/customers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkloads' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json new file mode 100644 index 000000000000..d91bd4599987 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json @@ -0,0 +1,44 @@ +{ + "interfaces": { + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring": { + "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": { + "GetViolation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListViolations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php new file mode 100644 index 000000000000..df21bc1ae902 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ + 'GetViolation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Violation', + '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\CloudControlsPartner\V1beta\ListViolationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'violation' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}', + 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php new file mode 100644 index 000000000000..f3eb5ee07389 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php @@ -0,0 +1,51 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ + 'GetViolation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListViolations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php new file mode 100644 index 000000000000..8fc6af6a3c65 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php @@ -0,0 +1,662 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudControlsPartnerCoreClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudControlsPartnerCoreClient($options); + } + + /** @test */ + public function getCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isOnboarded = false; + $expectedResponse = new Customer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsOnboarded($isOnboarded); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomer($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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEkmConnectionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new EkmConnections(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetEkmConnectionsRequest()) + ->setName($formattedName); + $response = $gapicClient->getEkmConnections($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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetEkmConnections', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEkmConnectionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetEkmConnectionsRequest()) + ->setName($formattedName); + try { + $gapicClient->getEkmConnections($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $partnerProjectId = 'partnerProjectId438161368'; + $expectedResponse = new Partner(); + $expectedResponse->setName($name2); + $expectedResponse->setPartnerProjectId($partnerProjectId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); + $request = (new GetPartnerRequest()) + ->setName($formattedName); + $response = $gapicClient->getPartner($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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartner', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); + $request = (new GetPartnerRequest()) + ->setName($formattedName); + try { + $gapicClient->getPartner($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new PartnerPermissions(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetPartnerPermissionsRequest()) + ->setName($formattedName); + $response = $gapicClient->getPartnerPermissions($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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartnerPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetPartnerPermissionsRequest()) + ->setName($formattedName); + try { + $gapicClient->getPartnerPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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'; + $folderId = 527488652; + $folder = 'folder-1268966290'; + $isOnboarded = false; + $keyManagementProjectId = 'keyManagementProjectId1004472221'; + $location = 'location1901043637'; + $expectedResponse = new Workload(); + $expectedResponse->setName($name2); + $expectedResponse->setFolderId($folderId); + $expectedResponse->setFolder($folder); + $expectedResponse->setIsOnboarded($isOnboarded); + $expectedResponse->setKeyManagementProjectId($keyManagementProjectId); + $expectedResponse->setLocation($location); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/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]', '[CUSTOMER]', '[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 listAccessApprovalRequestsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accessApprovalRequestsElement = new AccessApprovalRequest(); + $accessApprovalRequests = [ + $accessApprovalRequestsElement, + ]; + $expectedResponse = new ListAccessApprovalRequestsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccessApprovalRequests($accessApprovalRequests); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListAccessApprovalRequestsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAccessApprovalRequests($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccessApprovalRequests()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListAccessApprovalRequests', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessApprovalRequestsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListAccessApprovalRequestsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAccessApprovalRequests($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customersElement = new Customer(); + $customers = [ + $customersElement, + ]; + $expectedResponse = new ListCustomersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomers($customers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCustomersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListCustomers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCustomersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/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->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $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 getCustomerAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isOnboarded = false; + $expectedResponse = new Customer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsOnboarded($isOnboarded); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomerAsync($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.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php new file mode 100644 index 000000000000..840872e3024d --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php @@ -0,0 +1,245 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudControlsPartnerMonitoringClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudControlsPartnerMonitoringClient($options); + } + + /** @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'; + $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; + $folderId = 527488652; + $expectedResponse = new Violation(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setCategory($category); + $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); + $expectedResponse->setFolderId($folderId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[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.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/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]', '[CUSTOMER]', '[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 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]', '[CUSTOMER]', '[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.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/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]', '[CUSTOMER]', '[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 getViolationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $category = 'category50511102'; + $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; + $folderId = 527488652; + $expectedResponse = new Violation(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setCategory($category); + $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); + $expectedResponse->setFolderId($folderId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); + $request = (new GetViolationRequest()) + ->setName($formattedName); + $response = $gapicClient->getViolationAsync($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.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Bigquery.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Bigquery.php new file mode 100644 index 0000000000000000000000000000000000000000..ee848a4826c8ee574ff897f7e962dddde95853f0 GIT binary patch literal 1507 zcmbtU+iuf95Uo?Fnr$0`D^-Pxb_tc5B5;)Q=1?H_MrsqcNh1|3S-xzNl^n0Twks9X zAL5y>;GJ(k;tO~|Vs~>b4G|KSBFFa3nVB&vf+?3T%q~kWh_ktL98MKpiBusxyq)##J~ny-6%OAi4d;G=-uYI&B zK`EU$C@6CfmDy;@1iZzNWDUecKSprrZpIkw%0X@}tPo%G(wz-|v>5kk>%Gc-%NI8O_t< zq*Qo#i->@6llm@!?fD(a>tF?YOj}IB26hB>aXAT=`2s96Kw|2++y?gqwY=HH!O?$k zpzxE)kvYMs3RsX-1iA(&SbdQq9(;CU_&mZa_4HGcKF7AI!mAXq9KlGDvBKO=X=lHVzUo6O6J9p_t}`?H5!)W5 qtE$LXRZihBKvmmWYf1RztG)4wd@=BdDNFgQoruW6p}zq)0Q?3z!0Chl literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Common.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Common.php new file mode 100644 index 0000000000000000000000000000000000000000..4c0cec007b61c457f1329b167b9ee21126431094 GIT binary patch literal 1289 zcma)6ZEurM7?rAfdE6Y5Xr@zlr%To?j;8vJISnnW65GOB+H8iTq4btvD3`$Pl4TGqXo*o3q^_nh;*-P5=4!;=tRq8bixWK%pq{WC;QFbX3=i9>wU z9}kB(LJk>)o{u9DAw@?`-9)OQnH!86lX2u=3Au#0J}x;v84pSWo7xV0eBzc)%O%Dh zkw8pE0Rnr3^g7M9p;om6 zO;z|?!V)Z0wAx`uZ5{KRz{66tu6LB4(W$gM6}})m0zr{Y*=Xt2UPCqIwyC#N{&vDk z<8}3jzau<=<&4)h!TESe(EP>->TMFjv?0j|{$;9Cg)} zsUG!Yjfb7jaKB*(w(AA%q?dJAYsgKxrZsCfck&cguLAN4IpHxpyn3peA6V)_x*B#I`18I#sYELF$9Yy+?FD78wrWq%t+ipbq@ePKv4vf!{V zSykOc6RC&W4h7~R3fv}+d`_64yemU(dxFJW$>gNGou*Cb$QYJ&jkbNI$O9;Nj2E** z$gzldxToq)2rlRU+`nj6W5hiqI2hIO8JZHxZ9D5KBT-H5yd-H0wb5u^@u3`Wd7dN5 zxCK7n1UvsVS#w>7TWS%kg+;KY)r~JX0J8a+ufcMJ`IPv$WI&^Qcei3)gSIlH)z>hy z2v#`On^nq5idFLwDClPohk{>}^2upE|D%>SkANA;S)mE`oIgyWx1J$NjF;XdkwnW^u_}19uunozte*Kk4*pEvIOh z1+Y?Yx89vPz4ygjy#PQ~%EmreyOPO#019I{8IK{6tesRUFWX!LtLju-FswVTe>cDr z>C@{Pso%>qRO{R|KGgK2X2R3+%7p%5V8lr3;ndP>xVJD@HvDB6Uvuj%q-NAh0<1-gD3UoO{llx$|muugWe(m&~$R%h%1F==MRhzGp_OwMxBGsFb4H zjfW4-TC`BvuNF&YEf$R~rlV`=Tr|0u%3Xw|R;5uZn2G3arLtQx=L)4tV`pwBU(Xld z|59al?(q%h&lo{wteoFBt!lntMwiy-SIv4JmuxK&kgWv-vbER*vbA~RHe-cS-m;>O z$Lu2(h5xFJ?NYH2wd(mg{PTR#GK%G5y_hc*e*q}E8-18BSthJ+pZl;;F4T*aaugS& z%LVi5i%|g+=RRMp00-_y6~!igvg05 zSj5Mf=NtnM(a##&($UHZXB`u2(woYmSvf>II%6+};%(_N<=m@Yb0O%1Uz9U@l5Gf= zE~n3V0Y)yMi!&_nadJW2Yr$^8G9C&~=3L{6y+!`Y51ke{B{}n&7an!=JWdQQd(Ymr zd_lFHh@8E3#S3f$U4@+atejZP@1u0#AEQbRL5|P3$6aHWmGs$zLRI&{MCA;n;I(RD4s)M|WQg{?L3T<6g9T6q$P+UrgmSCS-(bU5 z0nmtyL<3ht@h`^&mL2UU)(Ju^i_7N+|6U*9oDEZg5D5UVAU+H5NfxXE0}TtZ!^i+U zALeHmqeu11BeNVCY|ag{(MoN{tQp$}kzsty&$6-n&VI3M2&IWk!qZU#Jo6U;HcWd1 zyoqADP-^U$My0lE6n8AxXb@JPV^eAXc=n!IsMFve4PIjB)ZlKRYKW}XKwE(TZbeSu zPW&P}1?FC_6$_B98>I?l+31KPVFV!v1QdbQwHl09%B6z{w^8ITvGZyR3BI1+HR>SK z5@i2YWQwK^M*_eo?KcB#x`n}374|Z@&Q1UljS^rLfPF*pFZClOTnLh3bx2i9ZZS-h z%@6BFt1S2w3pL6$Ghf(4`vc7YTD3n8urmwrux=*H_1eKwtjVj>L0dL(68nw0$&_d_ufLR3IKs%J^%_!`YsmAPJs(m%UPA!@BCW?xSx7iRL z(^`1QeDd%*3xafZ{9^GQJF{q(%uZZ69v;$fVFe9>4Cn2Ud#2sw^!+#U5M^@aNcc%YG6l2J0Y9*klou z7^>Aa#DBRb;TPGu0+T}VxaZE<_e+a%vDg|9%*z9iU-1&?4$?{(36NI_qBkw5a%Rm1 z>;ao0BR1ezA#-B~&=(2lE1qaB;IRnmIJDXYdx?cx(|(x~zT^qfUG!KU&_fY_T@V9KeAgOJ}KH`t5~6GORS?d2g++!5TI@Ikl&4MH-rVlhfcZLrFw zY}q@Ij`%=YiQPted5CXqv2zGd9@30LrCf&W6H-Tk@i~I~GoH*qxT3t7#2nvfx+4aCWvTfWNT={fr`DGvh-d>vGYeSVO>O zuCtI6zYrUIWFClU&QG%8$N5r2#JFH$;8q~<;TL+NcM8Jal(F2J`$+zEIH#gHJX3!j z&YAXs3LeuBaS#$CMN>UJoF8LMjAOW*9|dg^VGgna@fTUbe24{cg7`7QhR{5;KObU~ z$VH5Awyy%s77-k?yYcufPkn4#9V0jx(?K5NC{rpk!5(mI#GD`$_tp)Bh)ZmIgmB+w z9Dz|Jeq1y^5cZAs8H&H!CyEN`O@M=jKl6(NEZq8#zsrKO5v3u57t6=oD26){Z%#2r zq%`@0NzN1tV#*;3CNe|R(rnaTc9uQH9J-Lv&pGq!gsKQwkk2>eZERO|R6*@c zHf=LdAwkho)c?FIONx6AJeHrC`F?6d8$j ziw)7!Q!KoiUTn3D5jK!o18qIQ2Gbk4@Bk08;nW)bIS9t3giL}t&mtKZNUe2L{V6t) zUC>wbjB$TsZ6TLRBh-^DxSmNbBo{X_$?yOk#vE=}d&EMhxH3oLkW)T3YY_KUQBk-t zKYnqO);WMJKhwGyq?pqk4;@(RL&sv4cOhYsQ7j_tQ+QMeftcD*Z36tp$zmA_n9z+k z_9|9gl-{(@0xaBm0^u`^i#i{4{N)lTJ)qqM`Sa|2>zFIM61#z3%2}uvCA-uIh1RpK z0oPig)2G?EoIC(*7^N&bpSSB;goJ zc!Qm9IgddV8V;-CV51(rwMf8q3S z-|_goC!;$8A_pS@lT!e`KtJPvjAK;WV-t>@X~IQz0o~4ukxg%87CO2Ph?@FFF1@+} z9s~Yf*vP^Ua7CkRX#P!jItX>0F#%)=B6xBwJf!_)fK50tMD>EjkA?H4sz)Cvd^r~)b(qacINC?ng!NX7<+)T|V?qipy zQ7a0o)IJ|zlVX{}jiI9LfQvMWP|<;tR71851|i}GX@FuFs_1x+UQ`?G81922(*79& zlKKH1r0GRHr+3P3AT&_s17gA`v8peDQ%5P~AkhIS!NbkeVlo{bLV+!$*EW-xETlsa z3WlLp7s{nplSUR&u4Fbmg89*6dSPQVxt0r`0NITr6eE{5AaP4BEQd#FNk(7Gt_T=d z-Wvne$Rr_$%OX?;6~Y-O##;KVmE_`5(pbvq>&xK~fk3bjg;v*d;W5o* zK_M1Ym=v3Iiy0ouG|c;)>Xa|6X}830fqJ$cX6Kpg+Eidubjfn7Sx+-e;$bH(SMV>h zQBt7-WI!nOQ2YhY)sVNrRkymOU1TTSkg#{?#3QIZW}|94G?7NCW(6`$z!CE-Z+56< zF>zX)xyDAsU$Q!Y$KX1KP+^mBM1-q4#gd4q+BXImBiyJ*hS^KAt<&b8g*R>~ItZi9 zvNL27@@AjmIQFA+?)TVFN2|pC7y5gCi^BS`53t$~0}!jIYY4Z0al%9+Q|e`I=~m$m~&LBmv@oO0iA$o8*Ccd2#&`J z_d8ChD$JQr%(Y(ywuoL!2hgpEi=f&c;{CT@N^t6;hF}MbjzuiE!q$%9fc6y@w$(zh z^k$1XTqbph@@Ku(fydckJ-;jE8})P_K%0>32P|y!U+pj92zL8}(?6S+q4=QKtTukd zrAt1^)_xpd7i=CX)1o%Bg4@Nu{AwxJ*fcQKzOMjRg79V(q$1?Bgq5u^-ad!U5WV~p z$ijuS5DcVz7i`J6#uZh%i(4;~l3Zsmc`Jzv67P((h(F#xhU1c^LhC8$MJG>HWfOQ`07PWpS$I-M)!`}> zr1-7ZZ?t#eV6gBbGUtyF(KzF!2LcaQMX#WukThn6nWYM zZLr^vNR4K^Hv-jsyq03@7cFSG?2;=P<%<3x%HDd?52cvt7Ahqpp@dPOd}If00=qfQ zGYE_|=qitE40Ui2OCJI;*BDy*p!S`?mfh3~7ErDn#%p+@3Ns$R?-`t22rCdV^|VMC zXBMG>{~9rCwMtE#{X+43PXISb04PtLfrgCZCwKKfE;{=kp*UAt!4<<8Vgpxwp(mpK zN`OsuLiKqT%_QOIw2)d!(Xq#X!ga2-Y6pk3mRWCZBsZYc9l#S&%TQ_!k3UP9WHt-O zwKK4*-9cqbq>cmK?QRz-h+iBe&^82}V8_CJ(3c3HcyBpG~hMb4jSI{Z@d@K#8RI@PHIw zl^%|10DP&f`XTbiKB^xg5RHZWScoxy9 z)k0NGQ5~bITQ-+T>Z?#o3$YXTQ!B}AG6&T(__448RncTd*3FK z17}gsF3+c-?ivo`g5=xlD^P+9PZGp*`i(G;|LC^pAITDz58^oxl)ib zJ?@XuOA&Iz47{s}H@~%)j`R>+&%Z`(;;;Vr^Y09t(Kx<)AnPLuaWOs-nB{*9EgNwl zB*}^DlXuUub-Kc}$7PHrd~NSYzbJ}0*G#PJ*;lxoKMC)9+8pBjk(hngt}V?vE=A0` zE<+@o7r*%rKnUter=ZPS2(G#P6P7;GDKZ}E;}{^X*_W${m>XOWgF{_Nab4?}J>>ra z;t?m?Ci}Rzcv`3TPsN9zKn}Sa>1Q0ju8C}yu8b2^ug7nbh#Yfb{wZ{e>w7@1II#I9 zw{^NA_q576L1*ZV;26Eqrrnbw5)zs1TOxk~MQxRJi5D6y?tOirWwt`lTZ(Oqq;bD? zq|5rJOQrnV2miAG3pq@f&nZR~I=uZBbIeqT`$#9XpFh&4T^3&45w=ZO&uc&1+p1ek zfqp{bmJs*UIrP3l4pr|#hGS+wWW0Bzi|vl|Nz(5&?O%?++SGpkdatONn>|znf$oPK z%G`q>$4o^~H;rF*YW(e4!Ft~o>cEuar48jFxpy~2O;gDEQ5rX*{1}LS1@7iGFW>iI zrDJA4*v^nDpW+l)Q8`dKOSCJ7oshC%c-#wtwgcyk_mvt4Xglh^?sg2fCHp)bLl+a{ ze*@?84%sjFe$lVP3dPSp@>}g~;%i1*CA)eOJx%PlXYQEm{FR$5l{EV&ORZ33`D{Br zU5XSENYOt8*rf2#P?b{!PVRk0yluXs#&@$wD;?>Vq<4pUShLm-PTu*O1o@iwrQW{& za1Pcf{H=tmG|2xbz{bIyI4Sf_i`|p^C+}6K!;Eu*zn3C9kq3{?{~g34B90SjZ?Uw^ z?;r2OBi+ThBRv9`+2U!7U90iCBpT-=&k)u^XN#Pmb~Y)(l7Fh(<}0eZ1+(OlPT!@u zM(+!fhQ(+5m(ZsJ>~xzUP#=sZeB?t80-epXng04f+Sda|`dlYNQcW|LIf+&pk(~CG zK(&Z#j-XnJ4!t-28^Dh?4fMm0&Wn^3`{c)Wfgfkk&^pi!E~m>#n_j2my;BD_ZzO9l z8|%cKe}z|3JNLPIXiMisPskncy3Y~|y7uNsHTA?m#L)8X0rp&H^qY;i z1y57yvHA(Q@X?VTwYkux1xS4GlRZjy$e-`{J)_o`2f^5NJm6A&8 zDp0*9BZv>Ei^K{&o_GRa$O{F6{{&RQR>~giu;(dubko;w028SGMWX+BwznhdLGFWF zvqI=-@xDrCic$PO;H--0q#RJ)YVn;U7{C@_Br#}s7 zOHZUh@YSUjJdv|+X!m_VbFt(w(HYo=w%$K5Cx1JF<$njkz}1fL5e!^&6{mXygO4c| zw5$}I=k99`u2`VVu#YHdzuKHA(p3(S!pz!d`b_srgnzBa_Ud)`@Z;Rv2OoSOHO9Uc zo^RCm#K&;2z%|Z4Yd}vB3SEruHdf-uO(7ZplyW(zkZy_!fLv@{56I#qvag-i}Hn z7U2fGoRCPs1pP;WC%j?#^?==J?eQAA%iDegzwC0;p*mE%p4#_;QJD523tnLFc$f2V ndxY9|FJG}g@_0>rgxB%SUWlgfP2mpT>!q3EySj($kg@*<@+%ba literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DataplexSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DataplexSpec.php new file mode 100644 index 000000000000..cd48190b90cb --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DataplexSpec.php @@ -0,0 +1,46 @@ +internalAddGeneratedFile( + ' +½ +/google/cloud/datacatalog/v1/dataplex_spec.protogoogle.cloud.datacatalog.v11google/cloud/datacatalog/v1/physical_schema.proto" + DataplexSpec +asset ( @ + data_format ( 2+.google.cloud.datacatalog.v1.PhysicalSchema +compression_format (  + +project_id ( "W +DataplexFilesetSpec@ + dataplex_spec ( 2).google.cloud.datacatalog.v1.DataplexSpec"¸ +DataplexTableSpecK +external_tables ( 22.google.cloud.datacatalog.v1.DataplexExternalTable@ + dataplex_spec ( 2).google.cloud.datacatalog.v1.DataplexSpec + user_managed ("¯ +DataplexExternalTable= +system (2-.google.cloud.datacatalog.v1.IntegratedSystem +fully_qualified_name (  +google_cloud_resource (  +data_catalog_entry ( BÙ +com.google.cloud.datacatalog.v1BDataplexSpecProtoPZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpbøªGoogle.Cloud.DataCatalog.V1ÊGoogle\\Cloud\\DataCatalog\\V1êGoogle::Cloud::DataCatalog::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DumpContent.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/DumpContent.php new file mode 100644 index 0000000000000000000000000000000000000000..93abced0982c92f02b61a28898d76109fa771dc6 GIT binary patch literal 1441 zcmbtUU279T6z#UQmPsEZPo)LD)?!nz8&biCiB+>no902AhtLOE2$S8(W?-{3%+3a? z^!Et<5y4;JqtE^VADx-aCykL}V96$X&zXD9-g{oZ6$62uL6as_5=BGk-GCZU5Rxk% z@ECeozfUCud?;8fY;EAG%axFDN2^rEwVvEPmav_>CEhe_g2}6vQM=p`qF8IT`wl zKz~Hmi&+4vB1(T9vb4(*rWlFYCoSm=`Xo-N#^0^&XGx$KPrv}Kl7N3Dpsp<{h0CYXQ0XdHTUKt_y9jAyE5B+H=7{GPY}KbbltN|#euhfm(H zv7fatoZ5Gx=dCmqY~&xIFPq4{-=G!u^Lp0~raL#7?x?bNvXX2ze)-VuJzrI>w8*^f z;G2UAT609h^F+y;;w!X0s&w`6%bQ&XoKoTRU@T*4TdqZ2t`)0jM@X7#VArtkuEU1L z!b+?@*W376bBY)hNN;iysXq=Oy9VRuzK)?^>yL9d#ukt990A7HmEM+3xR*!M*?p0( S_FNMDH3e*CzN@$B7NI|XG~D$7 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/GcsFilesetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/GcsFilesetSpec.php new file mode 100644 index 000000000000..2350c774ebd3 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/GcsFilesetSpec.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +Ù +2google/cloud/datacatalog/v1/gcs_fileset_spec.protogoogle.cloud.datacatalog.v1,google/cloud/datacatalog/v1/timestamps.proto"z +GcsFilesetSpec + file_patterns ( BàAL +sample_gcs_file_specs ( 2(.google.cloud.datacatalog.v1.GcsFileSpecBàA"Š + GcsFileSpec + file_path ( BàAJ +gcs_timestamps ( 2-.google.cloud.datacatalog.v1.SystemTimestampsBàA + +size_bytes (BàABÆ +com.google.cloud.datacatalog.v1PZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpbøªGoogle.Cloud.DataCatalog.V1ÊGoogle\\Cloud\\DataCatalog\\V1êGoogle::Cloud::DataCatalog::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/PhysicalSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/PhysicalSchema.php new file mode 100644 index 0000000000000000000000000000000000000000..a23ebb0ee67868f70ca71d05a93f144e8f4428de GIT binary patch literal 1486 zcmb7^-)_?|6vpXRy6tR$RBoyc4Fi+bNsy`_5Tq2;KdcPF8i}eGDAMG*ZfhxxgY8rd z)Ysr4cobd%@d7*nmpD$FrJI=4N>P*ed_SL@bNs!09gG8bfZEij0xLQ|{WGM-6a|7S zPPm8q;c!R=B771sj|vN+RtKGQy68>oxO-1aB@YFmHX3n0@@ScOJRFn4lVrYD?UC+QDG7{Z2k?CZDl4}szZ**|(^)Ik zS!-Ik|2qpemz$A4f-Ig2UdW(KY5Var>k7HGEVb%d7q|57wfsBCsj*-~Rai5m=c|yq zMwzfqVAIT;?pk5p(Ck%ci;gF}_plLQ@j0ZbkTtj$E8${kLTkY~7o>3Ake;qW>Ijmi z5IHU6R;M)ObU`T=0nWRS-+`>6UzF+PR`Cw(r0aTNbx%*i{A9$m3+uPwhLisA;x=q0 z`9}{)8jVfJNprFrzcO%Fd(TxhY203(B9nxZ`BaYwb}@c@QXcUoW5NN`-jo{XpkG~j z`kTr8SlewIKeCJ;S&<(#V`H;=m7j}McWzh4ujcEnHmpBud$HWMjo!9X0Nd_W`Z+U~ ZPY#l!`Y?8YlwthWEKFqV3p1Dj`~#T@jl((w=hese4%LX@MTwLjeN?a_A}h4=nbyZ@ws!mSw6=0|b&i zZ{Gagd%yRa@ywfdy*&@TqOKB$_-07z>P}k?_lWBGZs^urTit2x?h;?ExlPZqiJw!| zrA>8Xv#c&Jt(9Mfse#+_YeZKYuG_FlzGl0vdcJOkW)1$^ZX>@xm-k%Tsi z0bZDUgdDR;0?(`wb+xp3kAxbad-0-Dbem1r$-Z*)$R&oR#SmLDtx=$Gz#w5c z+s`tLXdo_p`_CzK zu55njI&QO#FQQXaQ708unI2gjerlYfTA&h>!*WEy ze?Vg#V-+O3T60@YIC%<&Pg9@6coSU;#gf%-E+$Wd#c1JHjtASbthw!W5RzuM&$z?; zXu<^X-KQIn$XqpSdnA}VqYh7>FWm0yQ-+`8om7U2)UASx=xjjzeXB+$&t||D`Pt@^ z7`CYg=&bk||1p-{^M%*@g1SdHI?HMBfbkeQXVrnkR@k0oCD7hRsEZe0L6=LL>ubgL zs^#}e%hmfE+ok2=+REDU(%1|58oIKwwy|7Y-7?@~scIC9%iG)4;^szqYjb@}(HqZ< zI(jAELA(agJV6e4otL5E1z^$#q!tGG$KqQjZ@aKl(|scUSbpu~MS(2>zZKux9qqFr zG$K%&jREO)sR!MFo)HyeyIg)NRRWwSxk#tt5|F*@4k3K}o^1ZXQ0yhZ-hf-MBkqcc1%(TlG?HHQ9Y+`yTN z^aeU7Q_jdTTDZ}dYjSaI3ym)kn;eD{XYRT(n7Pp8|$;D+ooPK+5Nm=Zk2>gVSg=fWsj}aT;TU*sntOArX>@ z&!aQDmJP=|PE5^46KODk2kk>ZAdn~=K!nNz8RA=j~(vx*p`5wKvbzM>6oZe z)-tN2y7TRLcP`9u;90XCL!F0K{TaZfHo9ZLrmQ8{tR-k17_nrr+?NY0JonL#lDT7( z(Im?7Z_&V!`Ue>rxN9uq>d!~o!0|bvf!C7_yns(aF8rN>UX1UHxc^_ZaZ?#Z*6Jjw zC1C$XYCYqyqx&taNfm-?4!Ehw0nlhr0v%7;@Z@S=D~u^$D%xE}6?r|AX+NSjs?kEa zGV}gB+WNp=QcO#^#5CCL*fNKLjSv2=!3HrD&neiHOZ>$U!e#hll_r(=O)CiKB>L^myFE8OF6Ah+PsE!=he=Hf33x(2r}GF!dQ5R2oH{)ppkiM}wDl=ls8 zE-%&KGN<7tt}bC|IDf|QdOP!ppZ=>TPlm3nvPYF%kv^*Amf%sP$e(9&59WT5qZRSy z!X913cm-~^pAB8*({-KA*Y%hKU4JmQbA}x~@4Ob>4A1gMjM$sUk?$SMlD|uIPzRy^ E1Ja2uq5uE@ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Policytagmanagerserialization.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Policytagmanagerserialization.php new file mode 100644 index 0000000000000000000000000000000000000000..104108eed9895c30af198ae652af86b01a939fd8 GIT binary patch literal 3430 zcmcIn-EJF26z)1DN+&Hp8?|*)L56LsI)Uzzl!Dk`f}NyEgxa`ih!C=5jn`v)(0XUt z9VZP{Zg>UW0VJ+?0wk`GdI{G^T=c3hP{bAUxAw+%96J?}BH5lfXTI+{KXc~Om9QCt z8*l>$I6@59VD%8PCWc`|8TF_StL=InN6@3KkoY*VAza&r54U&W`r6j+yWBLU?a0F} zY*5w2wBhV8IwAFmcgRqqg#y&TQH&#keDWP)ga)=e3xEK%a2z5J z!;Mn$0cJ=zDQ`%(m@r>={W3|D=E12&$`eS-a35jW93q0xAzJ6NaI$RGzLNx3&U27{1c zyz?2+K`Yd1ofzHcd7ta3Dm1Gx^iI4im_7_WA87{Ue(@FNO(yJ-Bp>) z&ZQRWLflGKtE)F$OKpg>gnDU7FO5{A%EtQ30On&|uDG^~p3s1{4$W)eVvWS1j}9xM zZnFk7au(5& z32PBtB7si=Tv3fdqnsa#a!Xn~mY3A#InMX87tuJbM7Y7T6ZwfR5wX+4vMMZhv|-}1 zI0YsZ9_uS`F@2o534m6VOTZb6oIjhUyI^L(;btC8bwZ{paGc; zWR|Uu#N75&w3R%c&%VJPi=73>r+lgtlLPJl4$cNqFRI7;zwiELYf!>^n}Z|G0q(7Sy!4*gb|Ltb+D*c_Jw zmX$aA@L6H@{44{5ERPV-E(7gXdlfd{|vR_U#|T_&IZZL%s}bIrQ0U{AIAJ9vt@G z;c*YWPmg>L5+9`a7I=0&uqYXI#^-M&KHIF7})zo>?a@2^D2o)e?jk_3~>s zE1}^y3&wkFuGK}3B;#}V4WN3{fr<}PPnnNiUKzc7Qm?e3kWNihpvV>~p8JuML-}fH zdrN*tpxolVX>8@sBHUd)5br}F1(OO$sIE8je>HOAhpc15KopP9dslqV-lZ6?K=cTCgF`dLF{1$6 zlE}!Fww0TcJKz}EBpAZCx5V#33@v|(P3+-0_Gw!7{r5%YJFKP<%hDe}acY}k>|v?I z5c!;i&3^h{dxv96k< z-l49xv^`C2mv4z1u-?|XYVT0%_sRlW+7A|=W@peJ>E)aVP}tKBhU%c47fVp=s*S_Z zKrOE&!FprR=&FhB_U1DvU+&R03t#y~fV-UdR$&>Za^tIjVPY;1#JEzvC@TPpa#SA|xV(Mwd~ub&NH6ylEqJRAaL@F%K7%uW{{a5D BUsV7A literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Search.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Search.php new file mode 100644 index 0000000000000000000000000000000000000000..a559da264d80d785a92e86a43818b6800615a7d4 GIT binary patch literal 1629 zcma)6T~8B16tz?l29&y>HmEQn3B|}Z)we}7{a9)fp-sDxU^dxocc<;d>CU=4+oT%) zkPrS0AN&@9=m(ngld5_S<&-*TOJ^n{%H$N!k zW8_9&PnVb49jYm3X@>@OI?_Z=V+S0q}?$$FL=Nz$XCtCrsJ| zdoX4$<6ql2c5r|hb_xE-bsWHsOJc;KS93c_;4w@CC;;`qL%Ch3I7RMuNV)C55I! zSRAB10(UP{#YtPT&2hFxZ3Enk5aEU&AaR!*Jx9z_HZ9NZgB5~<_sE}|X0OYGJXq>e zA9se15S6{jgGyt;+>fnxetFGJ%PCSem>Sq@?>|c_^lqgh7f=cP{#q^tN z+9tT0#3*v&5P7(Rd5I&^MNuG6cnH=y2_Zx0L&9fRW=Lf~3RnZnK8{1;4wc?z8C?ZS z{%9EaJZEo-U}*u&E9$2{$Xx007T9Q+#b)`9(==NrZ!O0Cmzm5|E9V@X1MnNOZ4bHt literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/TableSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/TableSpec.php new file mode 100644 index 0000000000000000000000000000000000000000..d766306c82d11e54dac334c8c3a3dbeb76f317c3 GIT binary patch literal 1633 zcmb7EZBNrs7-gU$52Db-I3VhEpbmpwhMz1T*;tuNKn9E%Nt32)@5W7PTW@bsB>W*0 z|AZg>;IHtb@fR3Bd0)CRqYz!vZ0(+N?s?Ah^sKB!hY`%7Iu0;(81_)-7_mc)A{w&L z4Sm!}x?N0>8@`T+kExDOZ5zGVZXvVQXx-z`I83OE4b%(6o{vkeA0}SObC~1u%MW{{ zqjHHk9Ut3qgk4<{0|d@%97m3eQN3B+!pso}t1daLb-`iP&N!@gc^Sa&ICd$CSV)_^)G&IOWj=~0#f9`(K}Wi%s5BbJA0k%~ zqX`~79U+QYLW5LTVUiU7eAf2i?W#82^frRy=-2 z(#9*Em-V^9m!g;{6FMKlr%_n^pKZ`)Rkbd6M<3W7{ir-Mol-dwDbZA>+M>d@986V7 zZzsX@I9m&C6Qy z@umA0vb1@%SkLD}+6q9bgx}{!B>2IF;H-=1L)CE@6Vm0$g*mv|C)REONJ(!*-?FnY zskN{PV;OS0gxragsGfsZju&;MsyZ5pmAQzDAHDTfw9*aY4H%tO14I5EYD8NmhONg1R z3i^wXzr;;d=tn1TLv^1`P`d}WTb1gjY42_C@2;D6>s8aV_h0Na&Gp7c!>mmXX;Uy! zZPa)6&D~dayJ5bZ9M&|ro;{NA$;;Xun8}`PRa)k5qq5mJFl!1kTK$}ZyWF~qhTF^? zRMdv|mylcC3xCT>J^~(>1EYyL%fH?I$mKo^&(>v5>M|#FJ{xD9Up#B|cKJ*HUn`AK ynWO3d77x+iFeKhE1_%tJUG7|w8U5s8_F6Bhcp6BvbCXO~s=PUcQ-EJ~@(e@( literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Tags.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Tags.php new file mode 100644 index 0000000000000000000000000000000000000000..d6799ad6d0a4091072adbd71037d71cb63f3e6d2 GIT binary patch literal 2882 zcmb_e&2HO95RN3vkw%H5vQD8Wg|kspM?n)3c2l6C;}()7I|5=`wHc!=2naN}lG#us zORn6yh6?16K1vULf!=%Qp-<7XPd)b7*(E8-e~J$kK!}{(nVtFOo7s8(rGMbVM`VM# zG%y&o$o>&w2bB1M$2`+>$o`<)r2#R$zHd7;kO^sQldWxyG#f4LKB|V^ATX&)dY;#F zsA4+az)~!O874lC*HaFc6lU~7S(pTHjXn*1!=z-RUEie4;CuBAp{=iRZM`wp*7ufH z08GaSL!zM-I0k}0f3WY^CJC9r@b7^gc5K&Xw&B=6VGOIJYd9fA#q)c+1J`7>=Mt{4 z?V7auh(tE|-Uq&iF|U%upEid9A<$bcqk(HUdV_{$VEfDq+PGC!dz6j9u1n+OEX;f;+j;0*)GpkSjv!0 zwXpnHo)V0V&d4IUVbf*7kvO=lL198B6(IAP9>u;sh3ui>3?fGh%OAhXx-g`sKToM| zQYW>aVPO)@$TI{ol(F;`j*PA&c;8Wzh01aKHdGuB%N)xIWy$MMq1@q(z#I4|79X7+ z|B6;@nn;JDF(}8(=nd=FAsd>WPb+_;;}pOmEgXxC^Z_n;*av859Civ} zMtR5r+wH~jObq`#z&;jeEageb;qK4i)`$x65>H}bxt!paP(~h+9@Uxv)E)F=jai|g zBpMfyljl=}BsWoSk0%PvlwdBf%>zb%WU;AS?5zY@FR*A(x{iXZh`4+o@*`zw{z7DC zVdk~%T9uPD6!1hXChr+qpVbxAmOg}eY@|_Zb&fg##nz1QmN*_csda|EPu~@7a`t%^ z>-rQLKR-?5Cs#dYOlSY3)`!LEY)+h$)~-rwBx$0A{Kc;hi@_aMeosSj0_}*p@5P;j zlSA~4%*8pAp1}+|@{_tNyd5xoxuOj$s`AJ_r4u&?k;q0owNDXh$>{YWp9-N&2!kah$nyx!-Q zr*mzjFSiqAju4ht1M;FuC*Yl4q+?UO&>}14w<*XapVC(_XE=`c1GS=p4YB+3X8!DI zX%p4Y?T*_(d2zC=FKu|~iVHVS1t={*xxLfcY-z2%W=H#`-R!*D+HE)2TI;Q5qj*gM zm~Cvos=sU&Q~Z5b+i7iW6w^`;X6oD9FN+yuMP6%dHg~n!X1h3pT_U&BT6>{2zt)P` zdI9nrxQ<0lr~YRO?%_=^Ey{N4+gjB6l6wtrj-GdF7{nU|=fMfq`THxUzWz<6eoNoo z5aXaM#zDD(Wmj3C( Y(HQbL8pS3iw@arsu``;jhA;&94_^wBQvd(} literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Timestamps.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Timestamps.php new file mode 100644 index 000000000000..cbfa95d8ad26 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Timestamps.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +ê +,google/cloud/datacatalog/v1/timestamps.protogoogle.cloud.datacatalog.v1google/protobuf/timestamp.proto"ª +SystemTimestamps/ + create_time ( 2.google.protobuf.Timestamp/ + update_time ( 2.google.protobuf.Timestamp4 + expire_time ( 2.google.protobuf.TimestampBàABÆ +com.google.cloud.datacatalog.v1PZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpbøªGoogle.Cloud.DataCatalog.V1ÊGoogle\\Cloud\\DataCatalog\\V1êGoogle::Cloud::DataCatalog::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Usage.php b/owl-bot-staging/DataCatalog/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/V1/Usage.php new file mode 100644 index 0000000000000000000000000000000000000000..0207a8caefe7ad06496ba913040540765965cf9c GIT binary patch literal 1739 zcma)6(M}UV6m?rPdK*z{B2W?-(WE8HHig8P1vHdG;Xxsan3zpA)9tjKINjOI&KA+| z?yJAxqlv%agJ0pZU*MxNvu)Xif;4Hm-I;Umxo6It^%r3$gomh30wS;^P1HC+vO`cP zxa2-(s1dhXL?EAcL&}J-5vuK@SNn%(yS8`uKtUrO3!gZs&3T)Vvd?(jEH|;lzWOrW zF83PsTA-t5*5+}+Y}w{`}1k1A^bKEqLj-s&>&8Ibyf zaf4AGMG{N(^N21x|-g?ijf?L+b8O!kSgm!9B`_IM^Xo=OJ-79FH}EEI+6H z@i&{z;j}x-5v3tN&9(?XZh~99q8IXW$wu3l#!i{W?o|p4{VK*b>IBMiKs0gE;#Uj6 zSmKQ`L6o0`Dan=PJndCR^btoh7P3m2{C${AmRgvySdeHYW8Tlfy*>mhA26o8q(ND; zxC)PxMe>pOv0m{s1FywJx`o%JjL~RjLW33^xVy!>T^^)}O#}2OIaZ)JkcLrq_u3cB zs@{g2ceb+lZ31!$jJB20@@2@yp%R6dz6O|EDcF6@2C~@0^UHT&I@VXjJEpQj`*Z~k z+C%Z1TwgV|ns@dP0*?b7|N@X>scTvNvX}EjkhAGv? zwaw4LWDEDWph}KJNG*6GWT6SOhWuD$4zeG}iIMMC{wZAVVHRsaEG39ryaGY(E+_NM zDul4`Kbj-W)<>HyU)n2G+4xy^tWLolZ*=VHPYV{5_LtQ#oY}KbiRi?l=bT jIH>}Tb5v>EFeY9t4m0FQl8C7Qy)Zn@&LrYa;S}H>KJPjz literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec.php new file mode 100644 index 000000000000..4e2d0f006d00 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec.php @@ -0,0 +1,147 @@ +google.cloud.datacatalog.v1.BigQueryConnectionSpec + */ +class BigQueryConnectionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the BigQuery connection. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; + */ + protected $connection_type = 0; + /** + * True if there are credentials attached to the BigQuery connection; false + * otherwise. + * + * Generated from protobuf field bool has_credential = 3; + */ + protected $has_credential = false; + protected $connection_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $connection_type + * The type of the BigQuery connection. + * @type \Google\Cloud\DataCatalog\V1\CloudSqlBigQueryConnectionSpec $cloud_sql + * Specification for the BigQuery connection to a Cloud SQL instance. + * @type bool $has_credential + * True if there are credentials attached to the BigQuery connection; false + * otherwise. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Bigquery::initOnce(); + parent::__construct($data); + } + + /** + * The type of the BigQuery connection. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; + * @return int + */ + public function getConnectionType() + { + return $this->connection_type; + } + + /** + * The type of the BigQuery connection. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; + * @param int $var + * @return $this + */ + public function setConnectionType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec\ConnectionType::class); + $this->connection_type = $var; + + return $this; + } + + /** + * Specification for the BigQuery connection to a Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; + * @return \Google\Cloud\DataCatalog\V1\CloudSqlBigQueryConnectionSpec|null + */ + public function getCloudSql() + { + return $this->readOneof(2); + } + + public function hasCloudSql() + { + return $this->hasOneof(2); + } + + /** + * Specification for the BigQuery connection to a Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; + * @param \Google\Cloud\DataCatalog\V1\CloudSqlBigQueryConnectionSpec $var + * @return $this + */ + public function setCloudSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\CloudSqlBigQueryConnectionSpec::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * True if there are credentials attached to the BigQuery connection; false + * otherwise. + * + * Generated from protobuf field bool has_credential = 3; + * @return bool + */ + public function getHasCredential() + { + return $this->has_credential; + } + + /** + * True if there are credentials attached to the BigQuery connection; false + * otherwise. + * + * Generated from protobuf field bool has_credential = 3; + * @param bool $var + * @return $this + */ + public function setHasCredential($var) + { + GPBUtil::checkBool($var); + $this->has_credential = $var; + + return $this; + } + + /** + * @return string + */ + public function getConnectionSpec() + { + return $this->whichOneof("connection_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec/ConnectionType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec/ConnectionType.php new file mode 100644 index 000000000000..7d8e9296d0aa --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryConnectionSpec/ConnectionType.php @@ -0,0 +1,57 @@ +google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType + */ +class ConnectionType +{ + /** + * Unspecified type. + * + * Generated from protobuf enum CONNECTION_TYPE_UNSPECIFIED = 0; + */ + const CONNECTION_TYPE_UNSPECIFIED = 0; + /** + * Cloud SQL connection. + * + * Generated from protobuf enum CLOUD_SQL = 1; + */ + const CLOUD_SQL = 1; + + private static $valueToName = [ + self::CONNECTION_TYPE_UNSPECIFIED => 'CONNECTION_TYPE_UNSPECIFIED', + self::CLOUD_SQL => 'CLOUD_SQL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConnectionType::class, \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec_ConnectionType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryDateShardedSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryDateShardedSpec.php new file mode 100644 index 000000000000..d2a24365367c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryDateShardedSpec.php @@ -0,0 +1,192 @@ +google.cloud.datacatalog.v1.BigQueryDateShardedSpec + */ +class BigQueryDateShardedSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The Data Catalog resource name of the dataset entry the + * current table belongs to. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dataset = ''; + /** + * Output only. The table name prefix of the shards. + * The name of any given shard is `[table_prefix]YYYYMMDD`. + * For example, for the `MyTable20180101` shard, the + * `table_prefix` is `MyTable`. + * + * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $table_prefix = ''; + /** + * Output only. Total number of shards. + * + * Generated from protobuf field int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $shard_count = 0; + /** + * Output only. BigQuery resource name of the latest shard. + * + * Generated from protobuf field string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_shard_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset + * Output only. The Data Catalog resource name of the dataset entry the + * current table belongs to. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * @type string $table_prefix + * Output only. The table name prefix of the shards. + * The name of any given shard is `[table_prefix]YYYYMMDD`. + * For example, for the `MyTable20180101` shard, the + * `table_prefix` is `MyTable`. + * @type int|string $shard_count + * Output only. Total number of shards. + * @type string $latest_shard_resource + * Output only. BigQuery resource name of the latest shard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\TableSpec::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The Data Catalog resource name of the dataset entry the + * current table belongs to. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDataset() + { + return $this->dataset; + } + + /** + * Output only. The Data Catalog resource name of the dataset entry the + * current table belongs to. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDataset($var) + { + GPBUtil::checkString($var, True); + $this->dataset = $var; + + return $this; + } + + /** + * Output only. The table name prefix of the shards. + * The name of any given shard is `[table_prefix]YYYYMMDD`. + * For example, for the `MyTable20180101` shard, the + * `table_prefix` is `MyTable`. + * + * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTablePrefix() + { + return $this->table_prefix; + } + + /** + * Output only. The table name prefix of the shards. + * The name of any given shard is `[table_prefix]YYYYMMDD`. + * For example, for the `MyTable20180101` shard, the + * `table_prefix` is `MyTable`. + * + * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTablePrefix($var) + { + GPBUtil::checkString($var, True); + $this->table_prefix = $var; + + return $this; + } + + /** + * Output only. Total number of shards. + * + * Generated from protobuf field int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getShardCount() + { + return $this->shard_count; + } + + /** + * Output only. Total number of shards. + * + * Generated from protobuf field int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setShardCount($var) + { + GPBUtil::checkInt64($var); + $this->shard_count = $var; + + return $this; + } + + /** + * Output only. BigQuery resource name of the latest shard. + * + * Generated from protobuf field string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLatestShardResource() + { + return $this->latest_shard_resource; + } + + /** + * Output only. BigQuery resource name of the latest shard. + * + * Generated from protobuf field string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLatestShardResource($var) + { + GPBUtil::checkString($var, True); + $this->latest_shard_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryRoutineSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryRoutineSpec.php new file mode 100644 index 000000000000..e83b2495d5ff --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryRoutineSpec.php @@ -0,0 +1,67 @@ +google.cloud.datacatalog.v1.BigQueryRoutineSpec + */ +class BigQueryRoutineSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Paths of the imported libraries. + * + * Generated from protobuf field repeated string imported_libraries = 1; + */ + private $imported_libraries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $imported_libraries + * Paths of the imported libraries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Bigquery::initOnce(); + parent::__construct($data); + } + + /** + * Paths of the imported libraries. + * + * Generated from protobuf field repeated string imported_libraries = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getImportedLibraries() + { + return $this->imported_libraries; + } + + /** + * Paths of the imported libraries. + * + * Generated from protobuf field repeated string imported_libraries = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setImportedLibraries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->imported_libraries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryTableSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryTableSpec.php new file mode 100644 index 000000000000..0cb87b4b854f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BigQueryTableSpec.php @@ -0,0 +1,148 @@ +google.cloud.datacatalog.v1.BigQueryTableSpec + */ +class BigQueryTableSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The table source type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $table_source_type = 0; + protected $type_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $table_source_type + * Output only. The table source type. + * @type \Google\Cloud\DataCatalog\V1\ViewSpec $view_spec + * Table view specification. Populated only if + * the `table_source_type` is `BIGQUERY_VIEW`. + * @type \Google\Cloud\DataCatalog\V1\TableSpec $table_spec + * Specification of a BigQuery table. Populated only if + * the `table_source_type` is `BIGQUERY_TABLE`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\TableSpec::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The table source type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTableSourceType() + { + return $this->table_source_type; + } + + /** + * Output only. The table source type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTableSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\TableSourceType::class); + $this->table_source_type = $var; + + return $this; + } + + /** + * Table view specification. Populated only if + * the `table_source_type` is `BIGQUERY_VIEW`. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; + * @return \Google\Cloud\DataCatalog\V1\ViewSpec|null + */ + public function getViewSpec() + { + return $this->readOneof(2); + } + + public function hasViewSpec() + { + return $this->hasOneof(2); + } + + /** + * Table view specification. Populated only if + * the `table_source_type` is `BIGQUERY_VIEW`. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; + * @param \Google\Cloud\DataCatalog\V1\ViewSpec $var + * @return $this + */ + public function setViewSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ViewSpec::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Specification of a BigQuery table. Populated only if + * the `table_source_type` is `BIGQUERY_TABLE`. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TableSpec table_spec = 3; + * @return \Google\Cloud\DataCatalog\V1\TableSpec|null + */ + public function getTableSpec() + { + return $this->readOneof(3); + } + + public function hasTableSpec() + { + return $this->hasOneof(3); + } + + /** + * Specification of a BigQuery table. Populated only if + * the `table_source_type` is `BIGQUERY_TABLE`. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TableSpec table_spec = 3; + * @param \Google\Cloud\DataCatalog\V1\TableSpec $var + * @return $this + */ + public function setTableSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TableSpec::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getTypeSpec() + { + return $this->whichOneof("type_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BusinessContext.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BusinessContext.php new file mode 100644 index 000000000000..21c5c7db22dc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/BusinessContext.php @@ -0,0 +1,121 @@ +google.cloud.datacatalog.v1.BusinessContext + */ +class BusinessContext extends \Google\Protobuf\Internal\Message +{ + /** + * Entry overview fields for rich text descriptions of entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; + */ + protected $entry_overview = null; + /** + * Contact people for the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2; + */ + protected $contacts = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\EntryOverview $entry_overview + * Entry overview fields for rich text descriptions of entries. + * @type \Google\Cloud\DataCatalog\V1\Contacts $contacts + * Contact people for the entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry overview fields for rich text descriptions of entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; + * @return \Google\Cloud\DataCatalog\V1\EntryOverview|null + */ + public function getEntryOverview() + { + return $this->entry_overview; + } + + public function hasEntryOverview() + { + return isset($this->entry_overview); + } + + public function clearEntryOverview() + { + unset($this->entry_overview); + } + + /** + * Entry overview fields for rich text descriptions of entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; + * @param \Google\Cloud\DataCatalog\V1\EntryOverview $var + * @return $this + */ + public function setEntryOverview($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\EntryOverview::class); + $this->entry_overview = $var; + + return $this; + } + + /** + * Contact people for the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2; + * @return \Google\Cloud\DataCatalog\V1\Contacts|null + */ + public function getContacts() + { + return $this->contacts; + } + + public function hasContacts() + { + return isset($this->contacts); + } + + public function clearContacts() + { + unset($this->contacts); + } + + /** + * Contact people for the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2; + * @param \Google\Cloud\DataCatalog\V1\Contacts $var + * @return $this + */ + public function setContacts($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Contacts::class); + $this->contacts = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec.php new file mode 100644 index 000000000000..58a2f17b3fcd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec.php @@ -0,0 +1,69 @@ +google.cloud.datacatalog.v1.CloudBigtableInstanceSpec + */ +class CloudBigtableInstanceSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The list of clusters for the Instance. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; + */ + private $cloud_bigtable_cluster_specs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec\CloudBigtableClusterSpec>|\Google\Protobuf\Internal\RepeatedField $cloud_bigtable_cluster_specs + * The list of clusters for the Instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The list of clusters for the Instance. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCloudBigtableClusterSpecs() + { + return $this->cloud_bigtable_cluster_specs; + } + + /** + * The list of clusters for the Instance. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; + * @param array<\Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec\CloudBigtableClusterSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCloudBigtableClusterSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec\CloudBigtableClusterSpec::class); + $this->cloud_bigtable_cluster_specs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec/CloudBigtableClusterSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec/CloudBigtableClusterSpec.php new file mode 100644 index 000000000000..089284475331 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableInstanceSpec/CloudBigtableClusterSpec.php @@ -0,0 +1,172 @@ +google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec + */ +class CloudBigtableClusterSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the cluster. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * Location of the cluster, typically a Cloud zone. + * + * Generated from protobuf field string location = 2; + */ + protected $location = ''; + /** + * Type of the resource. For a cluster this would be "CLUSTER". + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * A link back to the parent resource, in this case Instance. + * + * Generated from protobuf field string linked_resource = 4; + */ + protected $linked_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of the cluster. + * @type string $location + * Location of the cluster, typically a Cloud zone. + * @type string $type + * Type of the resource. For a cluster this would be "CLUSTER". + * @type string $linked_resource + * A link back to the parent resource, in this case Instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Name of the cluster. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of the cluster. + * + * 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; + } + + /** + * Location of the cluster, typically a Cloud zone. + * + * Generated from protobuf field string location = 2; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location of the cluster, typically a Cloud zone. + * + * 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. For a cluster this would be "CLUSTER". + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the resource. For a cluster this would be "CLUSTER". + * + * 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; + } + + /** + * A link back to the parent resource, in this case Instance. + * + * Generated from protobuf field string linked_resource = 4; + * @return string + */ + public function getLinkedResource() + { + return $this->linked_resource; + } + + /** + * A link back to the parent resource, in this case Instance. + * + * Generated from protobuf field string linked_resource = 4; + * @param string $var + * @return $this + */ + public function setLinkedResource($var) + { + GPBUtil::checkString($var, True); + $this->linked_resource = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CloudBigtableClusterSpec::class, \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec_CloudBigtableClusterSpec::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableSystemSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableSystemSpec.php new file mode 100644 index 000000000000..4e0008126b26 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudBigtableSystemSpec.php @@ -0,0 +1,73 @@ +google.cloud.datacatalog.v1.CloudBigtableSystemSpec + */ +class CloudBigtableSystemSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Display name of the Instance. This is user specified and different from + * the resource name. + * + * Generated from protobuf field string instance_display_name = 1; + */ + protected $instance_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_display_name + * Display name of the Instance. This is user specified and different from + * the resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Display name of the Instance. This is user specified and different from + * the resource name. + * + * Generated from protobuf field string instance_display_name = 1; + * @return string + */ + public function getInstanceDisplayName() + { + return $this->instance_display_name; + } + + /** + * Display name of the Instance. This is user specified and different from + * the resource name. + * + * Generated from protobuf field string instance_display_name = 1; + * @param string $var + * @return $this + */ + public function setInstanceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->instance_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec.php new file mode 100644 index 000000000000..5069ad521666 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec.php @@ -0,0 +1,135 @@ +google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec + */ +class CloudSqlBigQueryConnectionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Cloud SQL instance ID in the format of `project:location:instance`. + * + * Generated from protobuf field string instance_id = 1; + */ + protected $instance_id = ''; + /** + * Database name. + * + * Generated from protobuf field string database = 2; + */ + protected $database = ''; + /** + * Type of the Cloud SQL database. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_id + * Cloud SQL instance ID in the format of `project:location:instance`. + * @type string $database + * Database name. + * @type int $type + * Type of the Cloud SQL database. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Bigquery::initOnce(); + parent::__construct($data); + } + + /** + * Cloud SQL instance ID in the format of `project:location:instance`. + * + * Generated from protobuf field string instance_id = 1; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Cloud SQL instance ID in the format of `project:location:instance`. + * + * Generated from protobuf field string instance_id = 1; + * @param string $var + * @return $this + */ + public function setInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->instance_id = $var; + + return $this; + } + + /** + * Database name. + * + * Generated from protobuf field string database = 2; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Database name. + * + * Generated from protobuf field string database = 2; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Type of the Cloud SQL database. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the Cloud SQL database. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\CloudSqlBigQueryConnectionSpec\DatabaseType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec/DatabaseType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec/DatabaseType.php new file mode 100644 index 000000000000..97f9d2e09bcd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CloudSqlBigQueryConnectionSpec/DatabaseType.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType + */ +class DatabaseType +{ + /** + * Unspecified database type. + * + * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; + */ + const DATABASE_TYPE_UNSPECIFIED = 0; + /** + * Cloud SQL for PostgreSQL. + * + * Generated from protobuf enum POSTGRES = 1; + */ + const POSTGRES = 1; + /** + * Cloud SQL for MySQL. + * + * Generated from protobuf enum MYSQL = 2; + */ + const MYSQL = 2; + + private static $valueToName = [ + self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', + self::POSTGRES => 'POSTGRES', + self::MYSQL => 'MYSQL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataCatalog\V1\CloudSqlBigQueryConnectionSpec_DatabaseType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema.php new file mode 100644 index 000000000000..a2c7b7f27f54 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema.php @@ -0,0 +1,486 @@ +google.cloud.datacatalog.v1.ColumnSchema + */ +class ColumnSchema extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the column. + * Must be a UTF-8 string without dots (.). + * The maximum size is 64 bytes. + * + * Generated from protobuf field string column = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $column = ''; + /** + * Required. Type of the column. + * Must be a UTF-8 string with the maximum size of 128 bytes. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = ''; + /** + * Optional. Description of the column. Default value is an empty string. + * The description must be a UTF-8 string with the maximum size of 2000 + * bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. A column's mode indicates whether values in this column are + * required, nullable, or repeated. + * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. + * Default mode is `NULLABLE`. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mode = ''; + /** + * Optional. Default value for the column. + * + * Generated from protobuf field string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = ''; + /** + * Optional. Ordinal position + * + * Generated from protobuf field int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ordinal_position = 0; + /** + * Optional. Most important inclusion of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $highest_indexing_type = 0; + /** + * Optional. Schema of sub-columns. A column can have zero or more + * sub-columns. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $subcolumns; + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $range_element_type = null; + /** + * Optional. Garbage collection policy for the column or column family. + * Applies to systems like Cloud Bigtable. + * + * Generated from protobuf field string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gc_rule = ''; + protected $system_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Required. Name of the column. + * Must be a UTF-8 string without dots (.). + * The maximum size is 64 bytes. + * @type string $type + * Required. Type of the column. + * Must be a UTF-8 string with the maximum size of 128 bytes. + * @type string $description + * Optional. Description of the column. Default value is an empty string. + * The description must be a UTF-8 string with the maximum size of 2000 + * bytes. + * @type string $mode + * Optional. A column's mode indicates whether values in this column are + * required, nullable, or repeated. + * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. + * Default mode is `NULLABLE`. + * @type string $default_value + * Optional. Default value for the column. + * @type int $ordinal_position + * Optional. Ordinal position + * @type int $highest_indexing_type + * Optional. Most important inclusion of this column. + * @type array<\Google\Cloud\DataCatalog\V1\ColumnSchema>|\Google\Protobuf\Internal\RepeatedField $subcolumns + * Optional. Schema of sub-columns. A column can have zero or more + * sub-columns. + * @type \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec $looker_column_spec + * Looker specific column info of this column. + * @type \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType $range_element_type + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * @type string $gc_rule + * Optional. Garbage collection policy for the column or column family. + * Applies to systems like Cloud Bigtable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Schema::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the column. + * Must be a UTF-8 string without dots (.). + * The maximum size is 64 bytes. + * + * Generated from protobuf field string column = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Required. Name of the column. + * Must be a UTF-8 string without dots (.). + * The maximum size is 64 bytes. + * + * Generated from protobuf field string column = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Required. Type of the column. + * Must be a UTF-8 string with the maximum size of 128 bytes. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Type of the column. + * Must be a UTF-8 string with the maximum size of 128 bytes. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. Description of the column. Default value is an empty string. + * The description must be a UTF-8 string with the maximum size of 2000 + * bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the column. Default value is an empty string. + * The description must be a UTF-8 string with the maximum size of 2000 + * bytes. + * + * 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. A column's mode indicates whether values in this column are + * required, nullable, or repeated. + * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. + * Default mode is `NULLABLE`. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMode() + { + return $this->mode; + } + + /** + * Optional. A column's mode indicates whether values in this column are + * required, nullable, or repeated. + * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. + * Default mode is `NULLABLE`. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkString($var, True); + $this->mode = $var; + + return $this; + } + + /** + * Optional. Default value for the column. + * + * Generated from protobuf field string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultValue() + { + return $this->default_value; + } + + /** + * Optional. Default value for the column. + * + * Generated from protobuf field string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkString($var, True); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. Ordinal position + * + * Generated from protobuf field int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOrdinalPosition() + { + return $this->ordinal_position; + } + + /** + * Optional. Ordinal position + * + * Generated from protobuf field int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOrdinalPosition($var) + { + GPBUtil::checkInt32($var); + $this->ordinal_position = $var; + + return $this; + } + + /** + * Optional. Most important inclusion of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHighestIndexingType() + { + return $this->highest_indexing_type; + } + + /** + * Optional. Most important inclusion of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHighestIndexingType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ColumnSchema\IndexingType::class); + $this->highest_indexing_type = $var; + + return $this; + } + + /** + * Optional. Schema of sub-columns. A column can have zero or more + * sub-columns. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubcolumns() + { + return $this->subcolumns; + } + + /** + * Optional. Schema of sub-columns. A column can have zero or more + * sub-columns. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DataCatalog\V1\ColumnSchema>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubcolumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\ColumnSchema::class); + $this->subcolumns = $arr; + + return $this; + } + + /** + * Looker specific column info of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; + * @return \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec|null + */ + public function getLookerColumnSpec() + { + return $this->readOneof(18); + } + + public function hasLookerColumnSpec() + { + return $this->hasOneof(18); + } + + /** + * Looker specific column info of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; + * @param \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec $var + * @return $this + */ + public function setLookerColumnSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType|null + */ + public function getRangeElementType() + { + return $this->range_element_type; + } + + public function hasRangeElementType() + { + return isset($this->range_element_type); + } + + public function clearRangeElementType() + { + unset($this->range_element_type); + } + + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType $var + * @return $this + */ + public function setRangeElementType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType::class); + $this->range_element_type = $var; + + return $this; + } + + /** + * Optional. Garbage collection policy for the column or column family. + * Applies to systems like Cloud Bigtable. + * + * Generated from protobuf field string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcRule() + { + return $this->gc_rule; + } + + /** + * Optional. Garbage collection policy for the column or column family. + * Applies to systems like Cloud Bigtable. + * + * Generated from protobuf field string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcRule($var) + { + GPBUtil::checkString($var, True); + $this->gc_rule = $var; + + return $this; + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/FieldElementType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/FieldElementType.php new file mode 100644 index 000000000000..0a8470dc85c3 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/FieldElementType.php @@ -0,0 +1,74 @@ +google.cloud.datacatalog.v1.ColumnSchema.FieldElementType + */ +class FieldElementType extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Schema::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FieldElementType::class, \Google\Cloud\DataCatalog\V1\ColumnSchema_FieldElementType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/IndexingType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/IndexingType.php new file mode 100644 index 000000000000..88e5298ab423 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/IndexingType.php @@ -0,0 +1,78 @@ +google.cloud.datacatalog.v1.ColumnSchema.IndexingType + */ +class IndexingType +{ + /** + * Unspecified. + * + * Generated from protobuf enum INDEXING_TYPE_UNSPECIFIED = 0; + */ + const INDEXING_TYPE_UNSPECIFIED = 0; + /** + * Column not a part of an index. + * + * Generated from protobuf enum INDEXING_TYPE_NONE = 1; + */ + const INDEXING_TYPE_NONE = 1; + /** + * Column Part of non unique index. + * + * Generated from protobuf enum INDEXING_TYPE_NON_UNIQUE = 2; + */ + const INDEXING_TYPE_NON_UNIQUE = 2; + /** + * Column part of unique index. + * + * Generated from protobuf enum INDEXING_TYPE_UNIQUE = 3; + */ + const INDEXING_TYPE_UNIQUE = 3; + /** + * Column part of the primary key. + * + * Generated from protobuf enum INDEXING_TYPE_PRIMARY_KEY = 4; + */ + const INDEXING_TYPE_PRIMARY_KEY = 4; + + private static $valueToName = [ + self::INDEXING_TYPE_UNSPECIFIED => 'INDEXING_TYPE_UNSPECIFIED', + self::INDEXING_TYPE_NONE => 'INDEXING_TYPE_NONE', + self::INDEXING_TYPE_NON_UNIQUE => 'INDEXING_TYPE_NON_UNIQUE', + self::INDEXING_TYPE_UNIQUE => 'INDEXING_TYPE_UNIQUE', + self::INDEXING_TYPE_PRIMARY_KEY => 'INDEXING_TYPE_PRIMARY_KEY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IndexingType::class, \Google\Cloud\DataCatalog\V1\ColumnSchema_IndexingType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec.php new file mode 100644 index 000000000000..7fa381a72a8f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec.php @@ -0,0 +1,70 @@ +google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec + */ +class LookerColumnSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Looker specific column type of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Looker specific column type of this column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Schema::initOnce(); + parent::__construct($data); + } + + /** + * Looker specific column type of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Looker specific column type of this column. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec\LookerColumnType::class); + $this->type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LookerColumnSpec::class, \Google\Cloud\DataCatalog\V1\ColumnSchema_LookerColumnSpec::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec/LookerColumnType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec/LookerColumnType.php new file mode 100644 index 000000000000..b2db79f640d0 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ColumnSchema/LookerColumnSpec/LookerColumnType.php @@ -0,0 +1,85 @@ +google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType + */ +class LookerColumnType +{ + /** + * Unspecified. + * + * Generated from protobuf enum LOOKER_COLUMN_TYPE_UNSPECIFIED = 0; + */ + const LOOKER_COLUMN_TYPE_UNSPECIFIED = 0; + /** + * Dimension. + * + * Generated from protobuf enum DIMENSION = 1; + */ + const DIMENSION = 1; + /** + * Dimension group - parent for Dimension. + * + * Generated from protobuf enum DIMENSION_GROUP = 2; + */ + const DIMENSION_GROUP = 2; + /** + * Filter. + * + * Generated from protobuf enum FILTER = 3; + */ + const FILTER = 3; + /** + * Measure. + * + * Generated from protobuf enum MEASURE = 4; + */ + const MEASURE = 4; + /** + * Parameter. + * + * Generated from protobuf enum PARAMETER = 5; + */ + const PARAMETER = 5; + + private static $valueToName = [ + self::LOOKER_COLUMN_TYPE_UNSPECIFIED => 'LOOKER_COLUMN_TYPE_UNSPECIFIED', + self::DIMENSION => 'DIMENSION', + self::DIMENSION_GROUP => 'DIMENSION_GROUP', + self::FILTER => 'FILTER', + self::MEASURE => 'MEASURE', + self::PARAMETER => 'PARAMETER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LookerColumnType::class, \Google\Cloud\DataCatalog\V1\ColumnSchema_LookerColumnSpec_LookerColumnType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CommonUsageStats.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CommonUsageStats.php new file mode 100644 index 000000000000..a3f5a8bd425a --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CommonUsageStats.php @@ -0,0 +1,78 @@ +google.cloud.datacatalog.v1.CommonUsageStats + */ +class CommonUsageStats extends \Google\Protobuf\Internal\Message +{ + /** + * View count in source system. + * + * Generated from protobuf field optional int64 view_count = 1; + */ + protected $view_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $view_count + * View count in source system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Usage::initOnce(); + parent::__construct($data); + } + + /** + * View count in source system. + * + * Generated from protobuf field optional int64 view_count = 1; + * @return int|string + */ + public function getViewCount() + { + return isset($this->view_count) ? $this->view_count : 0; + } + + public function hasViewCount() + { + return isset($this->view_count); + } + + public function clearViewCount() + { + unset($this->view_count); + } + + /** + * View count in source system. + * + * Generated from protobuf field optional int64 view_count = 1; + * @param int|string $var + * @return $this + */ + public function setViewCount($var) + { + GPBUtil::checkInt64($var); + $this->view_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts.php new file mode 100644 index 000000000000..3da08ebbe67c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts.php @@ -0,0 +1,67 @@ +google.cloud.datacatalog.v1.Contacts + */ +class Contacts extends \Google\Protobuf\Internal\Message +{ + /** + * The list of contact people for the entry. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; + */ + private $people; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\Contacts\Person>|\Google\Protobuf\Internal\RepeatedField $people + * The list of contact people for the entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The list of contact people for the entry. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPeople() + { + return $this->people; + } + + /** + * The list of contact people for the entry. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; + * @param array<\Google\Cloud\DataCatalog\V1\Contacts\Person>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPeople($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Contacts\Person::class); + $this->people = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts/Person.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts/Person.php new file mode 100644 index 000000000000..a517a943a789 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Contacts/Person.php @@ -0,0 +1,108 @@ +google.cloud.datacatalog.v1.Contacts.Person + */ +class Person extends \Google\Protobuf\Internal\Message +{ + /** + * Designation of the person, for example, Data Steward. + * + * Generated from protobuf field string designation = 1; + */ + protected $designation = ''; + /** + * Email of the person in the format of `john.doe@xyz`, + * ``, or `John Doe`. + * + * Generated from protobuf field string email = 2; + */ + protected $email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $designation + * Designation of the person, for example, Data Steward. + * @type string $email + * Email of the person in the format of `john.doe@xyz`, + * ``, or `John Doe`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Designation of the person, for example, Data Steward. + * + * Generated from protobuf field string designation = 1; + * @return string + */ + public function getDesignation() + { + return $this->designation; + } + + /** + * Designation of the person, for example, Data Steward. + * + * Generated from protobuf field string designation = 1; + * @param string $var + * @return $this + */ + public function setDesignation($var) + { + GPBUtil::checkString($var, True); + $this->designation = $var; + + return $this; + } + + /** + * Email of the person in the format of `john.doe@xyz`, + * ``, or `John Doe`. + * + * Generated from protobuf field string email = 2; + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * Email of the person in the format of `john.doe@xyz`, + * ``, or `John Doe`. + * + * Generated from protobuf field string email = 2; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Person::class, \Google\Cloud\DataCatalog\V1\Contacts_Person::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryGroupRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryGroupRequest.php new file mode 100644 index 000000000000..39f4d66f8d5e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryGroupRequest.php @@ -0,0 +1,196 @@ +google.cloud.datacatalog.v1.CreateEntryGroupRequest + */ +class CreateEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The names of the project and location that the new entry group + * belongs to. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the entry group to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_group_id = ''; + /** + * The entry group to create. Defaults to empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; + */ + protected $entry_group = null; + + /** + * @param string $parent Required. The names of the project and location that the new entry group + * belongs to. + * + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. Please see + * {@see DataCatalogClient::locationName()} for help formatting this field. + * @param string $entryGroupId Required. The ID of the entry group to create. + * + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * @param \Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup The entry group to create. Defaults to empty. + * + * @return \Google\Cloud\DataCatalog\V1\CreateEntryGroupRequest + * + * @experimental + */ + public static function build(string $parent, string $entryGroupId, \Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup): self + { + return (new self()) + ->setParent($parent) + ->setEntryGroupId($entryGroupId) + ->setEntryGroup($entryGroup); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The names of the project and location that the new entry group + * belongs to. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * @type string $entry_group_id + * Required. The ID of the entry group to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * @type \Google\Cloud\DataCatalog\V1\EntryGroup $entry_group + * The entry group to create. Defaults to empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The names of the project and location that the new entry group + * belongs to. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated 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 names of the project and location that the new entry group + * belongs to. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 of the entry group to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryGroupId() + { + return $this->entry_group_id; + } + + /** + * Required. The ID of the entry group to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryGroupId($var) + { + GPBUtil::checkString($var, True); + $this->entry_group_id = $var; + + return $this; + } + + /** + * The entry group to create. Defaults to empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; + * @return \Google\Cloud\DataCatalog\V1\EntryGroup|null + */ + public function getEntryGroup() + { + return $this->entry_group; + } + + public function hasEntryGroup() + { + return isset($this->entry_group); + } + + public function clearEntryGroup() + { + unset($this->entry_group); + } + + /** + * The entry group to create. Defaults to empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; + * @param \Google\Cloud\DataCatalog\V1\EntryGroup $var + * @return $this + */ + public function setEntryGroup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\EntryGroup::class); + $this->entry_group = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryRequest.php new file mode 100644 index 000000000000..fd4686b7581c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateEntryRequest.php @@ -0,0 +1,191 @@ +google.cloud.datacatalog.v1.CreateEntryRequest + */ +class CreateEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry group this entry belongs to. + * Note: The entry itself and its child resources might not be stored in + * the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the entry to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * and underscores (_). + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_id = ''; + /** + * Required. The entry to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry = null; + + /** + * @param string $parent Required. The name of the entry group this entry belongs to. + * + * Note: The entry itself and its child resources might not be stored in + * the location specified in its name. Please see + * {@see DataCatalogClient::entryGroupName()} for help formatting this field. + * @param string $entryId Required. The ID of the entry to create. + * + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * and underscores (_). + * The maximum size is 64 bytes when encoded in UTF-8. + * @param \Google\Cloud\DataCatalog\V1\Entry $entry Required. The entry to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreateEntryRequest + * + * @experimental + */ + public static function build(string $parent, string $entryId, \Google\Cloud\DataCatalog\V1\Entry $entry): self + { + return (new self()) + ->setParent($parent) + ->setEntryId($entryId) + ->setEntry($entry); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the entry group this entry belongs to. + * Note: The entry itself and its child resources might not be stored in + * the location specified in its name. + * @type string $entry_id + * Required. The ID of the entry to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * and underscores (_). + * The maximum size is 64 bytes when encoded in UTF-8. + * @type \Google\Cloud\DataCatalog\V1\Entry $entry + * Required. The entry to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry group this entry belongs to. + * Note: The entry itself and its child resources might not be stored in + * the location specified in its name. + * + * Generated 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 entry group this entry belongs to. + * Note: The entry itself and its child resources might not be stored in + * the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 of the entry to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * and underscores (_). + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryId() + { + return $this->entry_id; + } + + /** + * Required. The ID of the entry to create. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), + * and underscores (_). + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryId($var) + { + GPBUtil::checkString($var, True); + $this->entry_id = $var; + + return $this; + } + + /** + * Required. The entry to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Required. The entry to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Entry::class); + $this->entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreatePolicyTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreatePolicyTagRequest.php new file mode 100644 index 000000000000..064c852d0a2b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreatePolicyTagRequest.php @@ -0,0 +1,128 @@ +google.cloud.datacatalog.v1.CreatePolicyTagRequest + */ +class CreatePolicyTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the taxonomy that the policy tag will belong to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The policy tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; + */ + protected $policy_tag = null; + + /** + * @param string $parent Required. Resource name of the taxonomy that the policy tag will belong to. Please see + * {@see PolicyTagManagerClient::taxonomyName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\V1\PolicyTag $policyTag The policy tag to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreatePolicyTagRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\V1\PolicyTag $policyTag): self + { + return (new self()) + ->setParent($parent) + ->setPolicyTag($policyTag); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the taxonomy that the policy tag will belong to. + * @type \Google\Cloud\DataCatalog\V1\PolicyTag $policy_tag + * The policy tag to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the taxonomy that the policy tag will belong to. + * + * Generated 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 taxonomy that the policy tag will belong to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 policy tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; + * @return \Google\Cloud\DataCatalog\V1\PolicyTag|null + */ + public function getPolicyTag() + { + return $this->policy_tag; + } + + public function hasPolicyTag() + { + return isset($this->policy_tag); + } + + public function clearPolicyTag() + { + unset($this->policy_tag); + } + + /** + * The policy tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; + * @param \Google\Cloud\DataCatalog\V1\PolicyTag $var + * @return $this + */ + public function setPolicyTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PolicyTag::class); + $this->policy_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagRequest.php new file mode 100644 index 000000000000..a226f5e17c49 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagRequest.php @@ -0,0 +1,150 @@ +google.cloud.datacatalog.v1.CreateTagRequest + */ +class CreateTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the resource to attach this tag to. + * Tags can be attached to entries or entry groups. An entry can have up to + * 1000 attached tags. + * Note: The tag and its child resources might not be stored in + * the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag = null; + + /** + * @param string $parent Required. The name of the resource to attach this tag to. + * + * Tags can be attached to entries or entry groups. An entry can have up to + * 1000 attached tags. + * + * Note: The tag and its child resources might not be stored in + * the location specified in its name. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\V1\Tag $tag Required. The tag to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreateTagRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\V1\Tag $tag): self + { + return (new self()) + ->setParent($parent) + ->setTag($tag); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the resource to attach this tag to. + * Tags can be attached to entries or entry groups. An entry can have up to + * 1000 attached tags. + * Note: The tag and its child resources might not be stored in + * the location specified in its name. + * @type \Google\Cloud\DataCatalog\V1\Tag $tag + * Required. The tag to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the resource to attach this tag to. + * Tags can be attached to entries or entry groups. An entry can have up to + * 1000 attached tags. + * Note: The tag and its child resources might not be stored in + * the location specified in its name. + * + * Generated 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 resource to attach this tag to. + * Tags can be attached to entries or entry groups. An entry can have up to + * 1000 attached tags. + * Note: The tag and its child resources might not be stored in + * the location specified in its name. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\Tag|null + */ + public function getTag() + { + return $this->tag; + } + + public function hasTag() + { + return isset($this->tag); + } + + public function clearTag() + { + unset($this->tag); + } + + /** + * Required. The tag to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\Tag $var + * @return $this + */ + public function setTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateFieldRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateFieldRequest.php new file mode 100644 index 000000000000..e9b59f4f670e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateFieldRequest.php @@ -0,0 +1,196 @@ +google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest + */ +class CreateTagTemplateFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the tag template field to create. + * Note: Adding a required field to an existing template is *not* allowed. + * Field IDs can contain letters (both uppercase and lowercase), numbers + * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + * character long and at most 128 characters long. Field IDs must also be + * unique within their template. + * + * Generated from protobuf field string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template_field_id = ''; + /** + * Required. The tag template field to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template_field = null; + + /** + * @param string $parent Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). Please see + * {@see DataCatalogClient::tagTemplateName()} for help formatting this field. + * @param string $tagTemplateFieldId Required. The ID of the tag template field to create. + * + * Note: Adding a required field to an existing template is *not* allowed. + * + * Field IDs can contain letters (both uppercase and lowercase), numbers + * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + * character long and at most 128 characters long. Field IDs must also be + * unique within their template. + * @param \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField Required. The tag template field to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreateTagTemplateFieldRequest + * + * @experimental + */ + public static function build(string $parent, string $tagTemplateFieldId, \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField): self + { + return (new self()) + ->setParent($parent) + ->setTagTemplateFieldId($tagTemplateFieldId) + ->setTagTemplateField($tagTemplateField); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * @type string $tag_template_field_id + * Required. The ID of the tag template field to create. + * Note: Adding a required field to an existing template is *not* allowed. + * Field IDs can contain letters (both uppercase and lowercase), numbers + * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + * character long and at most 128 characters long. Field IDs must also be + * unique within their template. + * @type \Google\Cloud\DataCatalog\V1\TagTemplateField $tag_template_field + * Required. The tag template field to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated 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 and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 of the tag template field to create. + * Note: Adding a required field to an existing template is *not* allowed. + * Field IDs can contain letters (both uppercase and lowercase), numbers + * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + * character long and at most 128 characters long. Field IDs must also be + * unique within their template. + * + * Generated from protobuf field string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTagTemplateFieldId() + { + return $this->tag_template_field_id; + } + + /** + * Required. The ID of the tag template field to create. + * Note: Adding a required field to an existing template is *not* allowed. + * Field IDs can contain letters (both uppercase and lowercase), numbers + * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + * character long and at most 128 characters long. Field IDs must also be + * unique within their template. + * + * Generated from protobuf field string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTagTemplateFieldId($var) + { + GPBUtil::checkString($var, True); + $this->tag_template_field_id = $var; + + return $this; + } + + /** + * Required. The tag template field to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\TagTemplateField|null + */ + public function getTagTemplateField() + { + return $this->tag_template_field; + } + + public function hasTagTemplateField() + { + return isset($this->tag_template_field); + } + + public function clearTagTemplateField() + { + unset($this->tag_template_field); + } + + /** + * Required. The tag template field to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\TagTemplateField $var + * @return $this + */ + public function setTagTemplateField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TagTemplateField::class); + $this->tag_template_field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateRequest.php new file mode 100644 index 000000000000..59ff04cc98e8 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTagTemplateRequest.php @@ -0,0 +1,185 @@ +google.cloud.datacatalog.v1.CreateTagTemplateRequest + */ +class CreateTagTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the tag template to create. + * The ID must contain only lowercase letters (a-z), numbers (0-9), + * or underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template_id = ''; + /** + * Required. The tag template to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template = null; + + /** + * @param string $parent Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). Please see + * {@see DataCatalogClient::locationName()} for help formatting this field. + * @param string $tagTemplateId Required. The ID of the tag template to create. + * + * The ID must contain only lowercase letters (a-z), numbers (0-9), + * or underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * @param \Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate Required. The tag template to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreateTagTemplateRequest + * + * @experimental + */ + public static function build(string $parent, string $tagTemplateId, \Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate): self + { + return (new self()) + ->setParent($parent) + ->setTagTemplateId($tagTemplateId) + ->setTagTemplate($tagTemplate); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * @type string $tag_template_id + * Required. The ID of the tag template to create. + * The ID must contain only lowercase letters (a-z), numbers (0-9), + * or underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * @type \Google\Cloud\DataCatalog\V1\TagTemplate $tag_template + * Required. The tag template to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated 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 and the template location + * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 of the tag template to create. + * The ID must contain only lowercase letters (a-z), numbers (0-9), + * or underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTagTemplateId() + { + return $this->tag_template_id; + } + + /** + * Required. The ID of the tag template to create. + * The ID must contain only lowercase letters (a-z), numbers (0-9), + * or underscores (_), and must start with a letter or underscore. + * The maximum size is 64 bytes when encoded in UTF-8. + * + * Generated from protobuf field string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTagTemplateId($var) + { + GPBUtil::checkString($var, True); + $this->tag_template_id = $var; + + return $this; + } + + /** + * Required. The tag template to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\TagTemplate|null + */ + public function getTagTemplate() + { + return $this->tag_template; + } + + public function hasTagTemplate() + { + return isset($this->tag_template); + } + + public function clearTagTemplate() + { + unset($this->tag_template); + } + + /** + * Required. The tag template to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\TagTemplate $var + * @return $this + */ + public function setTagTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TagTemplate::class); + $this->tag_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTaxonomyRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTaxonomyRequest.php new file mode 100644 index 000000000000..915bbd53a633 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CreateTaxonomyRequest.php @@ -0,0 +1,128 @@ +google.cloud.datacatalog.v1.CreateTaxonomyRequest + */ +class CreateTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project that the taxonomy will belong to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The taxonomy to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; + */ + protected $taxonomy = null; + + /** + * @param string $parent Required. Resource name of the project that the taxonomy will belong to. Please see + * {@see PolicyTagManagerClient::locationName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy The taxonomy to create. + * + * @return \Google\Cloud\DataCatalog\V1\CreateTaxonomyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy): self + { + return (new self()) + ->setParent($parent) + ->setTaxonomy($taxonomy); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the project that the taxonomy will belong to. + * @type \Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy + * The taxonomy to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project that the taxonomy will belong to. + * + * Generated 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 that the taxonomy will belong to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 taxonomy to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; + * @return \Google\Cloud\DataCatalog\V1\Taxonomy|null + */ + public function getTaxonomy() + { + return $this->taxonomy; + } + + public function hasTaxonomy() + { + return isset($this->taxonomy); + } + + public function clearTaxonomy() + { + unset($this->taxonomy); + } + + /** + * The taxonomy to create. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; + * @param \Google\Cloud\DataCatalog\V1\Taxonomy $var + * @return $this + */ + public function setTaxonomy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Taxonomy::class); + $this->taxonomy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CrossRegionalSource.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CrossRegionalSource.php new file mode 100644 index 000000000000..fd871a9080bf --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/CrossRegionalSource.php @@ -0,0 +1,68 @@ +google.cloud.datacatalog.v1.CrossRegionalSource + */ +class CrossRegionalSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the source taxonomy to import. + * + * Generated from protobuf field string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $taxonomy = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $taxonomy + * Required. The resource name of the source taxonomy to import. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the source taxonomy to import. + * + * Generated from protobuf field string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTaxonomy() + { + return $this->taxonomy; + } + + /** + * Required. The resource name of the source taxonomy to import. + * + * Generated from protobuf field string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTaxonomy($var) + { + GPBUtil::checkString($var, True); + $this->taxonomy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource.php new file mode 100644 index 000000000000..09404782fe65 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource.php @@ -0,0 +1,181 @@ +google.cloud.datacatalog.v1.DataSource + */ +class DataSource extends \Google\Protobuf\Internal\Message +{ + /** + * Service that physically stores the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource.Service service = 1; + */ + protected $service = 0; + /** + * Full name of a resource as defined by the service. For example: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * + * Generated from protobuf field string resource = 2; + */ + protected $resource = ''; + /** + * Output only. Data Catalog entry name, if applicable. + * + * Generated from protobuf field string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_entry = ''; + protected $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $service + * Service that physically stores the data. + * @type string $resource + * Full name of a resource as defined by the service. For example: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * @type string $source_entry + * Output only. Data Catalog entry name, if applicable. + * @type \Google\Cloud\DataCatalog\V1\StorageProperties $storage_properties + * Detailed properties of the underlying storage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataSource::initOnce(); + parent::__construct($data); + } + + /** + * Service that physically stores the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource.Service service = 1; + * @return int + */ + public function getService() + { + return $this->service; + } + + /** + * Service that physically stores the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource.Service service = 1; + * @param int $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\DataSource\Service::class); + $this->service = $var; + + return $this; + } + + /** + * Full name of a resource as defined by the service. For example: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * + * Generated from protobuf field string resource = 2; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Full name of a resource as defined by the service. For example: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * + * Generated from protobuf field string resource = 2; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Output only. Data Catalog entry name, if applicable. + * + * Generated from protobuf field string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSourceEntry() + { + return $this->source_entry; + } + + /** + * Output only. Data Catalog entry name, if applicable. + * + * Generated from protobuf field string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSourceEntry($var) + { + GPBUtil::checkString($var, True); + $this->source_entry = $var; + + return $this; + } + + /** + * Detailed properties of the underlying storage. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; + * @return \Google\Cloud\DataCatalog\V1\StorageProperties|null + */ + public function getStorageProperties() + { + return $this->readOneof(4); + } + + public function hasStorageProperties() + { + return $this->hasOneof(4); + } + + /** + * Detailed properties of the underlying storage. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; + * @param \Google\Cloud\DataCatalog\V1\StorageProperties $var + * @return $this + */ + public function setStorageProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\StorageProperties::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getProperties() + { + return $this->whichOneof("properties"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource/Service.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource/Service.php new file mode 100644 index 000000000000..57568d1de5b2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSource/Service.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.v1.DataSource.Service + */ +class Service +{ + /** + * Default unknown service. + * + * Generated from protobuf enum SERVICE_UNSPECIFIED = 0; + */ + const SERVICE_UNSPECIFIED = 0; + /** + * Google Cloud Storage service. + * + * Generated from protobuf enum CLOUD_STORAGE = 1; + */ + const CLOUD_STORAGE = 1; + /** + * BigQuery service. + * + * Generated from protobuf enum BIGQUERY = 2; + */ + const BIGQUERY = 2; + + private static $valueToName = [ + self::SERVICE_UNSPECIFIED => 'SERVICE_UNSPECIFIED', + self::CLOUD_STORAGE => 'CLOUD_STORAGE', + self::BIGQUERY => 'BIGQUERY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Service::class, \Google\Cloud\DataCatalog\V1\DataSource_Service::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSourceConnectionSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSourceConnectionSpec.php new file mode 100644 index 000000000000..79706866f1ef --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataSourceConnectionSpec.php @@ -0,0 +1,80 @@ +google.cloud.datacatalog.v1.DataSourceConnectionSpec + */ +class DataSourceConnectionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Fields specific to BigQuery connections. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; + */ + protected $bigquery_connection_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec $bigquery_connection_spec + * Output only. Fields specific to BigQuery connections. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Fields specific to BigQuery connections. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; + * @return \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec|null + */ + public function getBigqueryConnectionSpec() + { + return $this->bigquery_connection_spec; + } + + public function hasBigqueryConnectionSpec() + { + return isset($this->bigquery_connection_spec); + } + + public function clearBigqueryConnectionSpec() + { + unset($this->bigquery_connection_spec); + } + + /** + * Output only. Fields specific to BigQuery connections. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; + * @param \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec $var + * @return $this + */ + public function setBigqueryConnectionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec::class); + $this->bigquery_connection_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec.php new file mode 100644 index 000000000000..8baa72ed9130 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec.php @@ -0,0 +1,164 @@ +google.cloud.datacatalog.v1.DatabaseTableSpec + */ +class DatabaseTableSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Type of this table. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; + */ + protected $type = 0; + /** + * Output only. Fields specific to a Dataplex table and present only in the + * Dataplex table entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dataplex_table = null; + /** + * Spec what aplies to tables that are actually views. + * Not set for "real" tables. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; + */ + protected $database_view_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of this table. + * @type \Google\Cloud\DataCatalog\V1\DataplexTableSpec $dataplex_table + * Output only. Fields specific to a Dataplex table and present only in the + * Dataplex table entries. + * @type \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\DatabaseViewSpec $database_view_spec + * Spec what aplies to tables that are actually views. + * Not set for "real" tables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Type of this table. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this table. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\TableType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Fields specific to a Dataplex table and present only in the + * Dataplex table entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\DataplexTableSpec|null + */ + public function getDataplexTable() + { + return $this->dataplex_table; + } + + public function hasDataplexTable() + { + return isset($this->dataplex_table); + } + + public function clearDataplexTable() + { + unset($this->dataplex_table); + } + + /** + * Output only. Fields specific to a Dataplex table and present only in the + * Dataplex table entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\DataplexTableSpec $var + * @return $this + */ + public function setDataplexTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataplexTableSpec::class); + $this->dataplex_table = $var; + + return $this; + } + + /** + * Spec what aplies to tables that are actually views. + * Not set for "real" tables. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; + * @return \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\DatabaseViewSpec|null + */ + public function getDatabaseViewSpec() + { + return $this->database_view_spec; + } + + public function hasDatabaseViewSpec() + { + return isset($this->database_view_spec); + } + + public function clearDatabaseViewSpec() + { + unset($this->database_view_spec); + } + + /** + * Spec what aplies to tables that are actually views. + * Not set for "real" tables. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; + * @param \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\DatabaseViewSpec $var + * @return $this + */ + public function setDatabaseViewSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\DatabaseViewSpec::class); + $this->database_view_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec.php new file mode 100644 index 000000000000..6be384655ea3 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec.php @@ -0,0 +1,145 @@ +google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec + */ +class DatabaseViewSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Type of this view. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; + */ + protected $view_type = 0; + protected $source_definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $view_type + * Type of this view. + * @type string $base_table + * Name of a singular table this view reflects one to one. + * @type string $sql_query + * SQL query used to generate this view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Type of this view. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; + * @return int + */ + public function getViewType() + { + return $this->view_type; + } + + /** + * Type of this view. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; + * @param int $var + * @return $this + */ + public function setViewType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec\DatabaseViewSpec\ViewType::class); + $this->view_type = $var; + + return $this; + } + + /** + * Name of a singular table this view reflects one to one. + * + * Generated from protobuf field string base_table = 2; + * @return string + */ + public function getBaseTable() + { + return $this->readOneof(2); + } + + public function hasBaseTable() + { + return $this->hasOneof(2); + } + + /** + * Name of a singular table this view reflects one to one. + * + * Generated from protobuf field string base_table = 2; + * @param string $var + * @return $this + */ + public function setBaseTable($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * SQL query used to generate this view. + * + * Generated from protobuf field string sql_query = 3; + * @return string + */ + public function getSqlQuery() + { + return $this->readOneof(3); + } + + public function hasSqlQuery() + { + return $this->hasOneof(3); + } + + /** + * SQL query used to generate this view. + * + * Generated from protobuf field string sql_query = 3; + * @param string $var + * @return $this + */ + public function setSqlQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSourceDefinition() + { + return $this->whichOneof("source_definition"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DatabaseViewSpec::class, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec_DatabaseViewSpec::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec/ViewType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec/ViewType.php new file mode 100644 index 000000000000..6e0092c6b218 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/DatabaseViewSpec/ViewType.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType + */ +class ViewType +{ + /** + * Default unknown view type. + * + * Generated from protobuf enum VIEW_TYPE_UNSPECIFIED = 0; + */ + const VIEW_TYPE_UNSPECIFIED = 0; + /** + * Standard view. + * + * Generated from protobuf enum STANDARD_VIEW = 1; + */ + const STANDARD_VIEW = 1; + /** + * Materialized view. + * + * Generated from protobuf enum MATERIALIZED_VIEW = 2; + */ + const MATERIALIZED_VIEW = 2; + + private static $valueToName = [ + self::VIEW_TYPE_UNSPECIFIED => 'VIEW_TYPE_UNSPECIFIED', + self::STANDARD_VIEW => 'STANDARD_VIEW', + self::MATERIALIZED_VIEW => 'MATERIALIZED_VIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ViewType::class, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec_DatabaseViewSpec_ViewType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/TableType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/TableType.php new file mode 100644 index 000000000000..c25cc7a54b26 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatabaseTableSpec/TableType.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.v1.DatabaseTableSpec.TableType + */ +class TableType +{ + /** + * Default unknown table type. + * + * Generated from protobuf enum TABLE_TYPE_UNSPECIFIED = 0; + */ + const TABLE_TYPE_UNSPECIFIED = 0; + /** + * Native table. + * + * Generated from protobuf enum NATIVE = 1; + */ + const NATIVE = 1; + /** + * External table. + * + * Generated from protobuf enum EXTERNAL = 2; + */ + const EXTERNAL = 2; + + private static $valueToName = [ + self::TABLE_TYPE_UNSPECIFIED => 'TABLE_TYPE_UNSPECIFIED', + self::NATIVE => 'NATIVE', + 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(TableType::class, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec_TableType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexExternalTable.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexExternalTable.php new file mode 100644 index 000000000000..b80f582eeee2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexExternalTable.php @@ -0,0 +1,175 @@ +google.cloud.datacatalog.v1.DataplexExternalTable + */ +class DataplexExternalTable extends \Google\Protobuf\Internal\Message +{ + /** + * Service in which the external table is registered. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem system = 1; + */ + protected $system = 0; + /** + * Fully qualified name (FQN) of the external table. + * + * Generated from protobuf field string fully_qualified_name = 28; + */ + protected $fully_qualified_name = ''; + /** + * Google Cloud resource name of the external table. + * + * Generated from protobuf field string google_cloud_resource = 3; + */ + protected $google_cloud_resource = ''; + /** + * Name of the Data Catalog entry representing the external table. + * + * Generated from protobuf field string data_catalog_entry = 4; + */ + protected $data_catalog_entry = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $system + * Service in which the external table is registered. + * @type string $fully_qualified_name + * Fully qualified name (FQN) of the external table. + * @type string $google_cloud_resource + * Google Cloud resource name of the external table. + * @type string $data_catalog_entry + * Name of the Data Catalog entry representing the external table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataplexSpec::initOnce(); + parent::__construct($data); + } + + /** + * Service in which the external table is registered. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem system = 1; + * @return int + */ + public function getSystem() + { + return $this->system; + } + + /** + * Service in which the external table is registered. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem system = 1; + * @param int $var + * @return $this + */ + public function setSystem($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\IntegratedSystem::class); + $this->system = $var; + + return $this; + } + + /** + * Fully qualified name (FQN) of the external table. + * + * Generated from protobuf field string fully_qualified_name = 28; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->fully_qualified_name; + } + + /** + * Fully qualified name (FQN) of the external table. + * + * Generated from protobuf field string fully_qualified_name = 28; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->fully_qualified_name = $var; + + return $this; + } + + /** + * Google Cloud resource name of the external table. + * + * Generated from protobuf field string google_cloud_resource = 3; + * @return string + */ + public function getGoogleCloudResource() + { + return $this->google_cloud_resource; + } + + /** + * Google Cloud resource name of the external table. + * + * Generated from protobuf field string google_cloud_resource = 3; + * @param string $var + * @return $this + */ + public function setGoogleCloudResource($var) + { + GPBUtil::checkString($var, True); + $this->google_cloud_resource = $var; + + return $this; + } + + /** + * Name of the Data Catalog entry representing the external table. + * + * Generated from protobuf field string data_catalog_entry = 4; + * @return string + */ + public function getDataCatalogEntry() + { + return $this->data_catalog_entry; + } + + /** + * Name of the Data Catalog entry representing the external table. + * + * Generated from protobuf field string data_catalog_entry = 4; + * @param string $var + * @return $this + */ + public function setDataCatalogEntry($var) + { + GPBUtil::checkString($var, True); + $this->data_catalog_entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexFilesetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexFilesetSpec.php new file mode 100644 index 000000000000..2d446c2e89ed --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexFilesetSpec.php @@ -0,0 +1,77 @@ +google.cloud.datacatalog.v1.DataplexFilesetSpec + */ +class DataplexFilesetSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; + */ + protected $dataplex_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\DataplexSpec $dataplex_spec + * Common Dataplex fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataplexSpec::initOnce(); + parent::__construct($data); + } + + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; + * @return \Google\Cloud\DataCatalog\V1\DataplexSpec|null + */ + public function getDataplexSpec() + { + return $this->dataplex_spec; + } + + public function hasDataplexSpec() + { + return isset($this->dataplex_spec); + } + + public function clearDataplexSpec() + { + unset($this->dataplex_spec); + } + + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; + * @param \Google\Cloud\DataCatalog\V1\DataplexSpec $var + * @return $this + */ + public function setDataplexSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataplexSpec::class); + $this->dataplex_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexSpec.php new file mode 100644 index 000000000000..1cd799f4c9ca --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexSpec.php @@ -0,0 +1,195 @@ +google.cloud.datacatalog.v1.DataplexSpec + */ +class DataplexSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Fully qualified resource name of an asset in Dataplex, to which the + * underlying data source (Cloud Storage bucket or BigQuery dataset) of the + * entity is attached. + * + * Generated from protobuf field string asset = 1; + */ + protected $asset = ''; + /** + * Format of the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; + */ + protected $data_format = null; + /** + * Compression format of the data, e.g., zip, gzip etc. + * + * Generated from protobuf field string compression_format = 3; + */ + protected $compression_format = ''; + /** + * Project ID of the underlying Cloud Storage or BigQuery data. Note that + * this may not be the same project as the correspondingly Dataplex lake / + * zone / asset. + * + * Generated from protobuf field string project_id = 4; + */ + protected $project_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $asset + * Fully qualified resource name of an asset in Dataplex, to which the + * underlying data source (Cloud Storage bucket or BigQuery dataset) of the + * entity is attached. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema $data_format + * Format of the data. + * @type string $compression_format + * Compression format of the data, e.g., zip, gzip etc. + * @type string $project_id + * Project ID of the underlying Cloud Storage or BigQuery data. Note that + * this may not be the same project as the correspondingly Dataplex lake / + * zone / asset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataplexSpec::initOnce(); + parent::__construct($data); + } + + /** + * Fully qualified resource name of an asset in Dataplex, to which the + * underlying data source (Cloud Storage bucket or BigQuery dataset) of the + * entity is attached. + * + * Generated from protobuf field string asset = 1; + * @return string + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Fully qualified resource name of an asset in Dataplex, to which the + * underlying data source (Cloud Storage bucket or BigQuery dataset) of the + * entity is attached. + * + * Generated from protobuf field string asset = 1; + * @param string $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkString($var, True); + $this->asset = $var; + + return $this; + } + + /** + * Format of the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema|null + */ + public function getDataFormat() + { + return $this->data_format; + } + + public function hasDataFormat() + { + return isset($this->data_format); + } + + public function clearDataFormat() + { + unset($this->data_format); + } + + /** + * Format of the data. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema $var + * @return $this + */ + public function setDataFormat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema::class); + $this->data_format = $var; + + return $this; + } + + /** + * Compression format of the data, e.g., zip, gzip etc. + * + * Generated from protobuf field string compression_format = 3; + * @return string + */ + public function getCompressionFormat() + { + return $this->compression_format; + } + + /** + * Compression format of the data, e.g., zip, gzip etc. + * + * Generated from protobuf field string compression_format = 3; + * @param string $var + * @return $this + */ + public function setCompressionFormat($var) + { + GPBUtil::checkString($var, True); + $this->compression_format = $var; + + return $this; + } + + /** + * Project ID of the underlying Cloud Storage or BigQuery data. Note that + * this may not be the same project as the correspondingly Dataplex lake / + * zone / asset. + * + * Generated from protobuf field string project_id = 4; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Project ID of the underlying Cloud Storage or BigQuery data. Note that + * this may not be the same project as the correspondingly Dataplex lake / + * zone / asset. + * + * Generated from protobuf field string project_id = 4; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexTableSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexTableSpec.php new file mode 100644 index 000000000000..307535cce500 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DataplexTableSpec.php @@ -0,0 +1,153 @@ +google.cloud.datacatalog.v1.DataplexTableSpec + */ +class DataplexTableSpec extends \Google\Protobuf\Internal\Message +{ + /** + * List of external tables registered by Dataplex in other systems based on + * the same underlying data. + * External tables allow to query this data in those systems. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; + */ + private $external_tables; + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; + */ + protected $dataplex_spec = null; + /** + * Indicates if the table schema is managed by the user or not. + * + * Generated from protobuf field bool user_managed = 3; + */ + protected $user_managed = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\DataplexExternalTable>|\Google\Protobuf\Internal\RepeatedField $external_tables + * List of external tables registered by Dataplex in other systems based on + * the same underlying data. + * External tables allow to query this data in those systems. + * @type \Google\Cloud\DataCatalog\V1\DataplexSpec $dataplex_spec + * Common Dataplex fields. + * @type bool $user_managed + * Indicates if the table schema is managed by the user or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataplexSpec::initOnce(); + parent::__construct($data); + } + + /** + * List of external tables registered by Dataplex in other systems based on + * the same underlying data. + * External tables allow to query this data in those systems. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExternalTables() + { + return $this->external_tables; + } + + /** + * List of external tables registered by Dataplex in other systems based on + * the same underlying data. + * External tables allow to query this data in those systems. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; + * @param array<\Google\Cloud\DataCatalog\V1\DataplexExternalTable>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExternalTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\DataplexExternalTable::class); + $this->external_tables = $arr; + + return $this; + } + + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; + * @return \Google\Cloud\DataCatalog\V1\DataplexSpec|null + */ + public function getDataplexSpec() + { + return $this->dataplex_spec; + } + + public function hasDataplexSpec() + { + return isset($this->dataplex_spec); + } + + public function clearDataplexSpec() + { + unset($this->dataplex_spec); + } + + /** + * Common Dataplex fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; + * @param \Google\Cloud\DataCatalog\V1\DataplexSpec $var + * @return $this + */ + public function setDataplexSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataplexSpec::class); + $this->dataplex_spec = $var; + + return $this; + } + + /** + * Indicates if the table schema is managed by the user or not. + * + * Generated from protobuf field bool user_managed = 3; + * @return bool + */ + public function getUserManaged() + { + return $this->user_managed; + } + + /** + * Indicates if the table schema is managed by the user or not. + * + * Generated from protobuf field bool user_managed = 3; + * @param bool $var + * @return $this + */ + public function setUserManaged($var) + { + GPBUtil::checkBool($var); + $this->user_managed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatasetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatasetSpec.php new file mode 100644 index 000000000000..62bc3e961fd1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DatasetSpec.php @@ -0,0 +1,76 @@ +google.cloud.datacatalog.v1.DatasetSpec + */ +class DatasetSpec extends \Google\Protobuf\Internal\Message +{ + protected $system_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\VertexDatasetSpec $vertex_dataset_spec + * Vertex AI Dataset specific fields + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Vertex AI Dataset specific fields + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; + * @return \Google\Cloud\DataCatalog\V1\VertexDatasetSpec|null + */ + public function getVertexDatasetSpec() + { + return $this->readOneof(2); + } + + public function hasVertexDatasetSpec() + { + return $this->hasOneof(2); + } + + /** + * Vertex AI Dataset specific fields + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; + * @param \Google\Cloud\DataCatalog\V1\VertexDatasetSpec $var + * @return $this + */ + public function setVertexDatasetSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\VertexDatasetSpec::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryGroupRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryGroupRequest.php new file mode 100644 index 000000000000..18b895c7bc8b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryGroupRequest.php @@ -0,0 +1,116 @@ +google.cloud.datacatalog.v1.DeleteEntryGroupRequest + */ +class DeleteEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry group to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If true, deletes all entries in the entry group. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the entry group to delete. Please see + * {@see DataCatalogClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteEntryGroupRequest + * + * @experimental + */ + public static function 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 entry group to delete. + * @type bool $force + * Optional. If true, deletes all entries in the entry group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry group 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 name of the entry group 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; + } + + /** + * Optional. If true, deletes all entries in the entry group. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If true, deletes all entries in the entry group. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryRequest.php new file mode 100644 index 000000000000..42fa737bce1e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteEntryRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.DeleteEntryRequest + */ +class DeleteEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry 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 name of the entry to delete. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteEntryRequest + * + * @experimental + */ + public static function 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 entry to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry 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 name of the entry 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeletePolicyTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeletePolicyTagRequest.php new file mode 100644 index 000000000000..bf6f2daa89c2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeletePolicyTagRequest.php @@ -0,0 +1,88 @@ +google.cloud.datacatalog.v1.DeletePolicyTagRequest + */ +class DeletePolicyTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the policy tag to delete. + * Note: All of its descendant policy tags are also 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 policy tag to delete. + * + * Note: All of its descendant policy tags are also deleted. Please see + * {@see PolicyTagManagerClient::policyTagName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\DeletePolicyTagRequest + * + * @experimental + */ + public static function 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 policy tag to delete. + * Note: All of its descendant policy tags are also deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the policy tag to delete. + * Note: All of its descendant policy tags are also 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 policy tag to delete. + * Note: All of its descendant policy tags are also 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagRequest.php new file mode 100644 index 000000000000..b2313041c5e7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.DeleteTagRequest + */ +class DeleteTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag 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 name of the tag to delete. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteTagRequest + * + * @experimental + */ + public static function 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 tag to delete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag 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 name of the tag 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateFieldRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateFieldRequest.php new file mode 100644 index 000000000000..e50e145c3d78 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateFieldRequest.php @@ -0,0 +1,124 @@ +google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest + */ +class DeleteTagTemplateFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag template field to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. If true, deletes this field from any tags that use it. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the tag template field to delete. Please see + * {@see DataCatalogClient::tagTemplateFieldName()} for help formatting this field. + * @param bool $force Required. If true, deletes this field from any tags that use it. + * + * Currently, `true` is the only supported value. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteTagTemplateFieldRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the tag template field to delete. + * @type bool $force + * Required. If true, deletes this field from any tags that use it. + * Currently, `true` is the only supported value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag template field 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 name of the tag template field 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; + } + + /** + * Required. If true, deletes this field from any tags that use it. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Required. If true, deletes this field from any tags that use it. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateRequest.php new file mode 100644 index 000000000000..68b359b7f6fc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTagTemplateRequest.php @@ -0,0 +1,124 @@ +google.cloud.datacatalog.v1.DeleteTagTemplateRequest + */ +class DeleteTagTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag template to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. If true, deletes all tags that use this template. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the tag template to delete. Please see + * {@see DataCatalogClient::tagTemplateName()} for help formatting this field. + * @param bool $force Required. If true, deletes all tags that use this template. + * + * Currently, `true` is the only supported value. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteTagTemplateRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the tag template to delete. + * @type bool $force + * Required. If true, deletes all tags that use this template. + * Currently, `true` is the only supported value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag template 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 name of the tag template 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; + } + + /** + * Required. If true, deletes all tags that use this template. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Required. If true, deletes all tags that use this template. + * Currently, `true` is the only supported value. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTaxonomyRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTaxonomyRequest.php new file mode 100644 index 000000000000..f0bcf2735ebc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DeleteTaxonomyRequest.php @@ -0,0 +1,88 @@ +google.cloud.datacatalog.v1.DeleteTaxonomyRequest + */ +class DeleteTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the taxonomy to delete. + * Note: All policy tags in this taxonomy are also 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 taxonomy to delete. + * + * Note: All policy tags in this taxonomy are also deleted. Please see + * {@see PolicyTagManagerClient::taxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\DeleteTaxonomyRequest + * + * @experimental + */ + public static function 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 taxonomy to delete. + * Note: All policy tags in this taxonomy are also deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the taxonomy to delete. + * Note: All policy tags in this taxonomy are also 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 taxonomy to delete. + * Note: All policy tags in this taxonomy are also 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DumpItem.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DumpItem.php new file mode 100644 index 000000000000..c664523acfae --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/DumpItem.php @@ -0,0 +1,75 @@ +google.cloud.datacatalog.v1.DumpItem + */ +class DumpItem extends \Google\Protobuf\Internal\Message +{ + protected $item; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\TaggedEntry $tagged_entry + * Entry and its tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DumpContent::initOnce(); + parent::__construct($data); + } + + /** + * Entry and its tags. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; + * @return \Google\Cloud\DataCatalog\V1\TaggedEntry|null + */ + public function getTaggedEntry() + { + return $this->readOneof(1); + } + + public function hasTaggedEntry() + { + return $this->hasOneof(1); + } + + /** + * Entry and its tags. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; + * @param \Google\Cloud\DataCatalog\V1\TaggedEntry $var + * @return $this + */ + public function setTaggedEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TaggedEntry::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getItem() + { + return $this->whichOneof("item"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Entry.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Entry.php new file mode 100644 index 000000000000..6418d70cedb2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Entry.php @@ -0,0 +1,1338 @@ +google.cloud.datacatalog.v1.Entry + */ +class Entry extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of an entry in URL format. + * Note: The entry itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The resource this metadata entry refers to. + * For Google Cloud Platform resources, `linked_resource` is the + * [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * For example, the `linked_resource` for a table resource from BigQuery is: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * Output only when the entry is one of the types in the `EntryType` enum. + * For entries with a `user_specified_type`, this field is optional and + * defaults to an empty string. + * The resource string must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), periods (.), colons (:), slashes (/), dashes (-), + * and hashes (#). + * The maximum size is 200 bytes when encoded in UTF-8. + * + * Generated from protobuf field string linked_resource = 9; + */ + protected $linked_resource = ''; + /** + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. Set automatically for entries representing resources from + * synced systems. Settable only during creation, and read-only later. Can + * be used for search and lookup of the entries. + * + * Generated from protobuf field string fully_qualified_name = 29; + */ + protected $fully_qualified_name = ''; + /** + * Display name of an entry. + * The maximum size is 500 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Entry description that can consist of several sentences or paragraphs + * that describe entry contents. + * The description must not contain Unicode non-characters as well as C0 + * and C1 control codes except tabs (HT), new lines (LF), carriage returns + * (CR), and page breaks (FF). + * The maximum size is 2000 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + /** + * Business Context of the entry. Not supported for BigQuery datasets + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BusinessContext business_context = 37; + */ + protected $business_context = null; + /** + * Schema of the entry. An entry might not have any schema attached to it. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Schema schema = 5; + */ + protected $schema = null; + /** + * Timestamps from the underlying resource, not from the Data Catalog + * entry. + * Output only when the entry has a system listed in the `IntegratedSystem` + * enum. For entries with `user_specified_system`, this field is optional + * and defaults to an empty timestamp. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; + */ + protected $source_system_timestamps = null; + /** + * Resource usage statistics. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; + */ + protected $usage_signal = null; + /** + * Cloud labels attached to the entry. + * In Data Catalog, you can create and modify labels attached only to custom + * entries. Synced entries have unmodifiable labels that come from the source + * system. + * + * Generated from protobuf field map labels = 14; + */ + private $labels; + /** + * Output only. Physical location of the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_source = null; + /** + * Output only. Additional information related to the entry. Private to the + * current user. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $personal_details = null; + protected $entry_type; + protected $system; + protected $system_spec; + protected $type_spec; + protected $spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of an entry in URL format. + * Note: The entry itself and its child resources might not be + * stored in the location specified in its name. + * @type string $linked_resource + * The resource this metadata entry refers to. + * For Google Cloud Platform resources, `linked_resource` is the + * [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * For example, the `linked_resource` for a table resource from BigQuery is: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * Output only when the entry is one of the types in the `EntryType` enum. + * For entries with a `user_specified_type`, this field is optional and + * defaults to an empty string. + * The resource string must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), periods (.), colons (:), slashes (/), dashes (-), + * and hashes (#). + * The maximum size is 200 bytes when encoded in UTF-8. + * @type string $fully_qualified_name + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. Set automatically for entries representing resources from + * synced systems. Settable only during creation, and read-only later. Can + * be used for search and lookup of the entries. + * @type int $type + * The type of the entry. + * For details, see [`EntryType`](#entrytype). + * @type string $user_specified_type + * Custom entry type that doesn't match any of the values allowed for input + * and listed in the `EntryType` enum. + * When creating an entry, first check the type values in the enum. + * If there are no appropriate types for the new entry, + * provide a custom value, for example, `my_special_type`. + * The `user_specified_type` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * @type int $integrated_system + * Output only. Indicates the entry's source system that Data Catalog + * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. + * @type string $user_specified_system + * Indicates the entry's source system that Data Catalog doesn't + * automatically integrate with. + * The `user_specified_system` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * @type \Google\Cloud\DataCatalog\V1\SqlDatabaseSystemSpec $sql_database_system_spec + * Specification that applies to a relational database system. Only settable + * when `user_specified_system` is equal to `SQL_DATABASE` + * @type \Google\Cloud\DataCatalog\V1\LookerSystemSpec $looker_system_spec + * Specification that applies to Looker sysstem. Only settable when + * `user_specified_system` is equal to `LOOKER` + * @type \Google\Cloud\DataCatalog\V1\CloudBigtableSystemSpec $cloud_bigtable_system_spec + * Specification that applies to Cloud Bigtable system. Only settable when + * `integrated_system` is equal to `CLOUD_BIGTABLE` + * @type \Google\Cloud\DataCatalog\V1\GcsFilesetSpec $gcs_fileset_spec + * Specification that applies to a Cloud Storage fileset. Valid only + * for entries with the `FILESET` type. + * @type \Google\Cloud\DataCatalog\V1\BigQueryTableSpec $bigquery_table_spec + * Output only. Specification that applies to a BigQuery table. Valid only + * for entries with the `TABLE` type. + * @type \Google\Cloud\DataCatalog\V1\BigQueryDateShardedSpec $bigquery_date_sharded_spec + * Output only. Specification for a group of BigQuery tables with + * the `[prefix]YYYYMMDD` name pattern. + * For more information, see [Introduction to partitioned tables] + * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + * @type \Google\Cloud\DataCatalog\V1\DatabaseTableSpec $database_table_spec + * Specification that applies to a table resource. Valid only + * for entries with the `TABLE` or `EXPLORE` type. + * @type \Google\Cloud\DataCatalog\V1\DataSourceConnectionSpec $data_source_connection_spec + * Specification that applies to a data source connection. Valid only + * for entries with the `DATA_SOURCE_CONNECTION` type. + * @type \Google\Cloud\DataCatalog\V1\RoutineSpec $routine_spec + * Specification that applies to a user-defined function or procedure. Valid + * only for entries with the `ROUTINE` type. + * @type \Google\Cloud\DataCatalog\V1\DatasetSpec $dataset_spec + * Specification that applies to a dataset. + * @type \Google\Cloud\DataCatalog\V1\FilesetSpec $fileset_spec + * Specification that applies to a fileset resource. Valid only + * for entries with the `FILESET` type. + * @type \Google\Cloud\DataCatalog\V1\ServiceSpec $service_spec + * Specification that applies to a Service resource. + * @type \Google\Cloud\DataCatalog\V1\ModelSpec $model_spec + * Model specification. + * @type string $display_name + * Display name of an entry. + * The maximum size is 500 bytes when encoded in UTF-8. + * Default value is an empty string. + * @type string $description + * Entry description that can consist of several sentences or paragraphs + * that describe entry contents. + * The description must not contain Unicode non-characters as well as C0 + * and C1 control codes except tabs (HT), new lines (LF), carriage returns + * (CR), and page breaks (FF). + * The maximum size is 2000 bytes when encoded in UTF-8. + * Default value is an empty string. + * @type \Google\Cloud\DataCatalog\V1\BusinessContext $business_context + * Business Context of the entry. Not supported for BigQuery datasets + * @type \Google\Cloud\DataCatalog\V1\Schema $schema + * Schema of the entry. An entry might not have any schema attached to it. + * @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $source_system_timestamps + * Timestamps from the underlying resource, not from the Data Catalog + * entry. + * Output only when the entry has a system listed in the `IntegratedSystem` + * enum. For entries with `user_specified_system`, this field is optional + * and defaults to an empty timestamp. + * @type \Google\Cloud\DataCatalog\V1\UsageSignal $usage_signal + * Resource usage statistics. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Cloud labels attached to the entry. + * In Data Catalog, you can create and modify labels attached only to custom + * entries. Synced entries have unmodifiable labels that come from the source + * system. + * @type \Google\Cloud\DataCatalog\V1\DataSource $data_source + * Output only. Physical location of the entry. + * @type \Google\Cloud\DataCatalog\V1\PersonalDetails $personal_details + * Output only. Additional information related to the entry. Private to the + * current user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of an entry in URL format. + * Note: The entry itself and its child resources might not be + * stored in the location specified in its name. + * + * 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. The resource name of an entry in URL format. + * Note: The entry itself and its child resources might not be + * stored in the location specified in its name. + * + * 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; + } + + /** + * The resource this metadata entry refers to. + * For Google Cloud Platform resources, `linked_resource` is the + * [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * For example, the `linked_resource` for a table resource from BigQuery is: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * Output only when the entry is one of the types in the `EntryType` enum. + * For entries with a `user_specified_type`, this field is optional and + * defaults to an empty string. + * The resource string must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), periods (.), colons (:), slashes (/), dashes (-), + * and hashes (#). + * The maximum size is 200 bytes when encoded in UTF-8. + * + * Generated from protobuf field string linked_resource = 9; + * @return string + */ + public function getLinkedResource() + { + return $this->linked_resource; + } + + /** + * The resource this metadata entry refers to. + * For Google Cloud Platform resources, `linked_resource` is the + * [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * For example, the `linked_resource` for a table resource from BigQuery is: + * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * Output only when the entry is one of the types in the `EntryType` enum. + * For entries with a `user_specified_type`, this field is optional and + * defaults to an empty string. + * The resource string must contain only letters (a-z, A-Z), numbers (0-9), + * underscores (_), periods (.), colons (:), slashes (/), dashes (-), + * and hashes (#). + * The maximum size is 200 bytes when encoded in UTF-8. + * + * Generated from protobuf field string linked_resource = 9; + * @param string $var + * @return $this + */ + public function setLinkedResource($var) + { + GPBUtil::checkString($var, True); + $this->linked_resource = $var; + + return $this; + } + + /** + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. Set automatically for entries representing resources from + * synced systems. Settable only during creation, and read-only later. Can + * be used for search and lookup of the entries. + * + * Generated from protobuf field string fully_qualified_name = 29; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->fully_qualified_name; + } + + /** + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. Set automatically for entries representing resources from + * synced systems. Settable only during creation, and read-only later. Can + * be used for search and lookup of the entries. + * + * Generated from protobuf field string fully_qualified_name = 29; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->fully_qualified_name = $var; + + return $this; + } + + /** + * The type of the entry. + * For details, see [`EntryType`](#entrytype). + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryType type = 2; + * @return int + */ + public function getType() + { + return $this->readOneof(2); + } + + public function hasType() + { + return $this->hasOneof(2); + } + + /** + * The type of the entry. + * For details, see [`EntryType`](#entrytype). + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\EntryType::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Custom entry type that doesn't match any of the values allowed for input + * and listed in the `EntryType` enum. + * When creating an entry, first check the type values in the enum. + * If there are no appropriate types for the new entry, + * provide a custom value, for example, `my_special_type`. + * The `user_specified_type` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * + * Generated from protobuf field string user_specified_type = 16; + * @return string + */ + public function getUserSpecifiedType() + { + return $this->readOneof(16); + } + + public function hasUserSpecifiedType() + { + return $this->hasOneof(16); + } + + /** + * Custom entry type that doesn't match any of the values allowed for input + * and listed in the `EntryType` enum. + * When creating an entry, first check the type values in the enum. + * If there are no appropriate types for the new entry, + * provide a custom value, for example, `my_special_type`. + * The `user_specified_type` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * + * Generated from protobuf field string user_specified_type = 16; + * @param string $var + * @return $this + */ + public function setUserSpecifiedType($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Output only. Indicates the entry's source system that Data Catalog + * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getIntegratedSystem() + { + return $this->readOneof(17); + } + + public function hasIntegratedSystem() + { + return $this->hasOneof(17); + } + + /** + * Output only. Indicates the entry's source system that Data Catalog + * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setIntegratedSystem($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\IntegratedSystem::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Indicates the entry's source system that Data Catalog doesn't + * automatically integrate with. + * The `user_specified_system` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * + * Generated from protobuf field string user_specified_system = 18; + * @return string + */ + public function getUserSpecifiedSystem() + { + return $this->readOneof(18); + } + + public function hasUserSpecifiedSystem() + { + return $this->hasOneof(18); + } + + /** + * Indicates the entry's source system that Data Catalog doesn't + * automatically integrate with. + * The `user_specified_system` string has the following limitations: + * * Is case insensitive. + * * Must begin with a letter or underscore. + * * Can only contain letters, numbers, and underscores. + * * Must be at least 1 character and at most 64 characters long. + * + * Generated from protobuf field string user_specified_system = 18; + * @param string $var + * @return $this + */ + public function setUserSpecifiedSystem($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Specification that applies to a relational database system. Only settable + * when `user_specified_system` is equal to `SQL_DATABASE` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; + * @return \Google\Cloud\DataCatalog\V1\SqlDatabaseSystemSpec|null + */ + public function getSqlDatabaseSystemSpec() + { + return $this->readOneof(39); + } + + public function hasSqlDatabaseSystemSpec() + { + return $this->hasOneof(39); + } + + /** + * Specification that applies to a relational database system. Only settable + * when `user_specified_system` is equal to `SQL_DATABASE` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; + * @param \Google\Cloud\DataCatalog\V1\SqlDatabaseSystemSpec $var + * @return $this + */ + public function setSqlDatabaseSystemSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SqlDatabaseSystemSpec::class); + $this->writeOneof(39, $var); + + return $this; + } + + /** + * Specification that applies to Looker sysstem. Only settable when + * `user_specified_system` is equal to `LOOKER` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; + * @return \Google\Cloud\DataCatalog\V1\LookerSystemSpec|null + */ + public function getLookerSystemSpec() + { + return $this->readOneof(40); + } + + public function hasLookerSystemSpec() + { + return $this->hasOneof(40); + } + + /** + * Specification that applies to Looker sysstem. Only settable when + * `user_specified_system` is equal to `LOOKER` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; + * @param \Google\Cloud\DataCatalog\V1\LookerSystemSpec $var + * @return $this + */ + public function setLookerSystemSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\LookerSystemSpec::class); + $this->writeOneof(40, $var); + + return $this; + } + + /** + * Specification that applies to Cloud Bigtable system. Only settable when + * `integrated_system` is equal to `CLOUD_BIGTABLE` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; + * @return \Google\Cloud\DataCatalog\V1\CloudBigtableSystemSpec|null + */ + public function getCloudBigtableSystemSpec() + { + return $this->readOneof(41); + } + + public function hasCloudBigtableSystemSpec() + { + return $this->hasOneof(41); + } + + /** + * Specification that applies to Cloud Bigtable system. Only settable when + * `integrated_system` is equal to `CLOUD_BIGTABLE` + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; + * @param \Google\Cloud\DataCatalog\V1\CloudBigtableSystemSpec $var + * @return $this + */ + public function setCloudBigtableSystemSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\CloudBigtableSystemSpec::class); + $this->writeOneof(41, $var); + + return $this; + } + + /** + * Specification that applies to a Cloud Storage fileset. Valid only + * for entries with the `FILESET` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; + * @return \Google\Cloud\DataCatalog\V1\GcsFilesetSpec|null + */ + public function getGcsFilesetSpec() + { + return $this->readOneof(6); + } + + public function hasGcsFilesetSpec() + { + return $this->hasOneof(6); + } + + /** + * Specification that applies to a Cloud Storage fileset. Valid only + * for entries with the `FILESET` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; + * @param \Google\Cloud\DataCatalog\V1\GcsFilesetSpec $var + * @return $this + */ + public function setGcsFilesetSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\GcsFilesetSpec::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. Specification that applies to a BigQuery table. Valid only + * for entries with the `TABLE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\BigQueryTableSpec|null + */ + public function getBigqueryTableSpec() + { + return $this->readOneof(12); + } + + public function hasBigqueryTableSpec() + { + return $this->hasOneof(12); + } + + /** + * Output only. Specification that applies to a BigQuery table. Valid only + * for entries with the `TABLE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\BigQueryTableSpec $var + * @return $this + */ + public function setBigqueryTableSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BigQueryTableSpec::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Output only. Specification for a group of BigQuery tables with + * the `[prefix]YYYYMMDD` name pattern. + * For more information, see [Introduction to partitioned tables] + * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\BigQueryDateShardedSpec|null + */ + public function getBigqueryDateShardedSpec() + { + return $this->readOneof(15); + } + + public function hasBigqueryDateShardedSpec() + { + return $this->hasOneof(15); + } + + /** + * Output only. Specification for a group of BigQuery tables with + * the `[prefix]YYYYMMDD` name pattern. + * For more information, see [Introduction to partitioned tables] + * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\BigQueryDateShardedSpec $var + * @return $this + */ + public function setBigqueryDateShardedSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BigQueryDateShardedSpec::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Specification that applies to a table resource. Valid only + * for entries with the `TABLE` or `EXPLORE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; + * @return \Google\Cloud\DataCatalog\V1\DatabaseTableSpec|null + */ + public function getDatabaseTableSpec() + { + return $this->readOneof(24); + } + + public function hasDatabaseTableSpec() + { + return $this->hasOneof(24); + } + + /** + * Specification that applies to a table resource. Valid only + * for entries with the `TABLE` or `EXPLORE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; + * @param \Google\Cloud\DataCatalog\V1\DatabaseTableSpec $var + * @return $this + */ + public function setDatabaseTableSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DatabaseTableSpec::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * Specification that applies to a data source connection. Valid only + * for entries with the `DATA_SOURCE_CONNECTION` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; + * @return \Google\Cloud\DataCatalog\V1\DataSourceConnectionSpec|null + */ + public function getDataSourceConnectionSpec() + { + return $this->readOneof(27); + } + + public function hasDataSourceConnectionSpec() + { + return $this->hasOneof(27); + } + + /** + * Specification that applies to a data source connection. Valid only + * for entries with the `DATA_SOURCE_CONNECTION` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; + * @param \Google\Cloud\DataCatalog\V1\DataSourceConnectionSpec $var + * @return $this + */ + public function setDataSourceConnectionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataSourceConnectionSpec::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Specification that applies to a user-defined function or procedure. Valid + * only for entries with the `ROUTINE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; + * @return \Google\Cloud\DataCatalog\V1\RoutineSpec|null + */ + public function getRoutineSpec() + { + return $this->readOneof(28); + } + + public function hasRoutineSpec() + { + return $this->hasOneof(28); + } + + /** + * Specification that applies to a user-defined function or procedure. Valid + * only for entries with the `ROUTINE` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; + * @param \Google\Cloud\DataCatalog\V1\RoutineSpec $var + * @return $this + */ + public function setRoutineSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\RoutineSpec::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * Specification that applies to a dataset. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; + * @return \Google\Cloud\DataCatalog\V1\DatasetSpec|null + */ + public function getDatasetSpec() + { + return $this->readOneof(32); + } + + public function hasDatasetSpec() + { + return $this->hasOneof(32); + } + + /** + * Specification that applies to a dataset. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; + * @param \Google\Cloud\DataCatalog\V1\DatasetSpec $var + * @return $this + */ + public function setDatasetSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DatasetSpec::class); + $this->writeOneof(32, $var); + + return $this; + } + + /** + * Specification that applies to a fileset resource. Valid only + * for entries with the `FILESET` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; + * @return \Google\Cloud\DataCatalog\V1\FilesetSpec|null + */ + public function getFilesetSpec() + { + return $this->readOneof(33); + } + + public function hasFilesetSpec() + { + return $this->hasOneof(33); + } + + /** + * Specification that applies to a fileset resource. Valid only + * for entries with the `FILESET` type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; + * @param \Google\Cloud\DataCatalog\V1\FilesetSpec $var + * @return $this + */ + public function setFilesetSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\FilesetSpec::class); + $this->writeOneof(33, $var); + + return $this; + } + + /** + * Specification that applies to a Service resource. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; + * @return \Google\Cloud\DataCatalog\V1\ServiceSpec|null + */ + public function getServiceSpec() + { + return $this->readOneof(42); + } + + public function hasServiceSpec() + { + return $this->hasOneof(42); + } + + /** + * Specification that applies to a Service resource. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; + * @param \Google\Cloud\DataCatalog\V1\ServiceSpec $var + * @return $this + */ + public function setServiceSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ServiceSpec::class); + $this->writeOneof(42, $var); + + return $this; + } + + /** + * Model specification. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; + * @return \Google\Cloud\DataCatalog\V1\ModelSpec|null + */ + public function getModelSpec() + { + return $this->readOneof(43); + } + + public function hasModelSpec() + { + return $this->hasOneof(43); + } + + /** + * Model specification. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; + * @param \Google\Cloud\DataCatalog\V1\ModelSpec $var + * @return $this + */ + public function setModelSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ModelSpec::class); + $this->writeOneof(43, $var); + + return $this; + } + + /** + * Display name of an entry. + * The maximum size is 500 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of an entry. + * The maximum size is 500 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * 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; + } + + /** + * Entry description that can consist of several sentences or paragraphs + * that describe entry contents. + * The description must not contain Unicode non-characters as well as C0 + * and C1 control codes except tabs (HT), new lines (LF), carriage returns + * (CR), and page breaks (FF). + * The maximum size is 2000 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Entry description that can consist of several sentences or paragraphs + * that describe entry contents. + * The description must not contain Unicode non-characters as well as C0 + * and C1 control codes except tabs (HT), new lines (LF), carriage returns + * (CR), and page breaks (FF). + * The maximum size is 2000 bytes when encoded in UTF-8. + * Default value is an empty string. + * + * 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; + } + + /** + * Business Context of the entry. Not supported for BigQuery datasets + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BusinessContext business_context = 37; + * @return \Google\Cloud\DataCatalog\V1\BusinessContext|null + */ + public function getBusinessContext() + { + return $this->business_context; + } + + public function hasBusinessContext() + { + return isset($this->business_context); + } + + public function clearBusinessContext() + { + unset($this->business_context); + } + + /** + * Business Context of the entry. Not supported for BigQuery datasets + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BusinessContext business_context = 37; + * @param \Google\Cloud\DataCatalog\V1\BusinessContext $var + * @return $this + */ + public function setBusinessContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BusinessContext::class); + $this->business_context = $var; + + return $this; + } + + /** + * Schema of the entry. An entry might not have any schema attached to it. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Schema schema = 5; + * @return \Google\Cloud\DataCatalog\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Schema of the entry. An entry might not have any schema attached to it. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Schema schema = 5; + * @param \Google\Cloud\DataCatalog\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Timestamps from the underlying resource, not from the Data Catalog + * entry. + * Output only when the entry has a system listed in the `IntegratedSystem` + * enum. For entries with `user_specified_system`, this field is optional + * and defaults to an empty timestamp. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; + * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null + */ + public function getSourceSystemTimestamps() + { + return $this->source_system_timestamps; + } + + public function hasSourceSystemTimestamps() + { + return isset($this->source_system_timestamps); + } + + public function clearSourceSystemTimestamps() + { + unset($this->source_system_timestamps); + } + + /** + * Timestamps from the underlying resource, not from the Data Catalog + * entry. + * Output only when the entry has a system listed in the `IntegratedSystem` + * enum. For entries with `user_specified_system`, this field is optional + * and defaults to an empty timestamp. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; + * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var + * @return $this + */ + public function setSourceSystemTimestamps($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class); + $this->source_system_timestamps = $var; + + return $this; + } + + /** + * Resource usage statistics. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; + * @return \Google\Cloud\DataCatalog\V1\UsageSignal|null + */ + public function getUsageSignal() + { + return $this->usage_signal; + } + + public function hasUsageSignal() + { + return isset($this->usage_signal); + } + + public function clearUsageSignal() + { + unset($this->usage_signal); + } + + /** + * Resource usage statistics. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; + * @param \Google\Cloud\DataCatalog\V1\UsageSignal $var + * @return $this + */ + public function setUsageSignal($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\UsageSignal::class); + $this->usage_signal = $var; + + return $this; + } + + /** + * Cloud labels attached to the entry. + * In Data Catalog, you can create and modify labels attached only to custom + * entries. Synced entries have unmodifiable labels that come from the source + * system. + * + * Generated from protobuf field map labels = 14; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Cloud labels attached to the entry. + * In Data Catalog, you can create and modify labels attached only to custom + * entries. Synced entries have unmodifiable labels that come from the source + * system. + * + * 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; + } + + /** + * Output only. Physical location of the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\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); + } + + /** + * Output only. Physical location of the entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\DataSource $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Output only. Additional information related to the entry. Private to the + * current user. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\PersonalDetails|null + */ + public function getPersonalDetails() + { + return $this->personal_details; + } + + public function hasPersonalDetails() + { + return isset($this->personal_details); + } + + public function clearPersonalDetails() + { + unset($this->personal_details); + } + + /** + * Output only. Additional information related to the entry. Private to the + * current user. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\PersonalDetails $var + * @return $this + */ + public function setPersonalDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PersonalDetails::class); + $this->personal_details = $var; + + return $this; + } + + /** + * @return string + */ + public function getEntryType() + { + return $this->whichOneof("entry_type"); + } + + /** + * @return string + */ + public function getSystem() + { + return $this->whichOneof("system"); + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + + /** + * @return string + */ + public function getTypeSpec() + { + return $this->whichOneof("type_spec"); + } + + /** + * @return string + */ + public function getSpec() + { + return $this->whichOneof("spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryGroup.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryGroup.php new file mode 100644 index 000000000000..0b5f74f3273d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryGroup.php @@ -0,0 +1,201 @@ +google.cloud.datacatalog.v1.EntryGroup + */ +class EntryGroup extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the entry group in URL format. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * A short name to identify the entry group, for example, + * "analytics data - jan 2011". Default value is an empty string. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Entry group description. Can consist of several sentences or + * paragraphs that describe the entry group contents. + * Default value is an empty string. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. Timestamps of the entry group. Default value is empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_catalog_timestamps = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the entry group in URL format. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * @type string $display_name + * A short name to identify the entry group, for example, + * "analytics data - jan 2011". Default value is an empty string. + * @type string $description + * Entry group description. Can consist of several sentences or + * paragraphs that describe the entry group contents. + * Default value is an empty string. + * @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $data_catalog_timestamps + * Output only. Timestamps of the entry group. Default value is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the entry group in URL format. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the entry group in URL format. + * Note: The entry group itself and its child resources might not be + * stored in the location specified in its 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 short name to identify the entry group, for example, + * "analytics data - jan 2011". Default value is an empty string. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * A short name to identify the entry group, for example, + * "analytics data - jan 2011". Default value is an empty string. + * + * 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; + } + + /** + * Entry group description. Can consist of several sentences or + * paragraphs that describe the entry group contents. + * Default value is an empty string. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Entry group description. Can consist of several sentences or + * paragraphs that describe the entry group contents. + * Default value is an empty string. + * + * 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. Timestamps of the entry group. Default value is empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null + */ + public function getDataCatalogTimestamps() + { + return $this->data_catalog_timestamps; + } + + public function hasDataCatalogTimestamps() + { + return isset($this->data_catalog_timestamps); + } + + public function clearDataCatalogTimestamps() + { + unset($this->data_catalog_timestamps); + } + + /** + * Output only. Timestamps of the entry group. Default value is empty. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var + * @return $this + */ + public function setDataCatalogTimestamps($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class); + $this->data_catalog_timestamps = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryOverview.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryOverview.php new file mode 100644 index 000000000000..b4ff526f9098 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryOverview.php @@ -0,0 +1,87 @@ +google.cloud.datacatalog.v1.EntryOverview + */ +class EntryOverview extends \Google\Protobuf\Internal\Message +{ + /** + * Entry overview with support for rich text. + * The overview must only contain Unicode characters, and should be + * formatted using HTML. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * + * Generated from protobuf field string overview = 1; + */ + protected $overview = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $overview + * Entry overview with support for rich text. + * The overview must only contain Unicode characters, and should be + * formatted using HTML. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry overview with support for rich text. + * The overview must only contain Unicode characters, and should be + * formatted using HTML. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * + * Generated from protobuf field string overview = 1; + * @return string + */ + public function getOverview() + { + return $this->overview; + } + + /** + * Entry overview with support for rich text. + * The overview must only contain Unicode characters, and should be + * formatted using HTML. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * + * Generated from protobuf field string overview = 1; + * @param string $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkString($var, True); + $this->overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryType.php new file mode 100644 index 000000000000..77a152984899 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/EntryType.php @@ -0,0 +1,171 @@ +google.cloud.datacatalog.v1.EntryType + */ +class EntryType +{ + /** + * Default unknown type. + * + * Generated from protobuf enum ENTRY_TYPE_UNSPECIFIED = 0; + */ + const ENTRY_TYPE_UNSPECIFIED = 0; + /** + * The entry type that has a GoogleSQL schema, including + * logical views. + * + * Generated from protobuf enum TABLE = 2; + */ + const TABLE = 2; + /** + * The type of models. + * For more information, see [Supported models in BigQuery + * ML](/bigquery/docs/bqml-introduction#supported_models). + * + * Generated from protobuf enum MODEL = 5; + */ + const MODEL = 5; + /** + * An entry type for streaming entries. For example, a Pub/Sub topic. + * + * Generated from protobuf enum DATA_STREAM = 3; + */ + const DATA_STREAM = 3; + /** + * An entry type for a set of files or objects. For example, a + * Cloud Storage fileset. + * + * Generated from protobuf enum FILESET = 4; + */ + const FILESET = 4; + /** + * A group of servers that work together. For example, a Kafka cluster. + * + * Generated from protobuf enum CLUSTER = 6; + */ + const CLUSTER = 6; + /** + * A database. + * + * Generated from protobuf enum DATABASE = 7; + */ + const DATABASE = 7; + /** + * Connection to a data source. For example, a BigQuery + * connection. + * + * Generated from protobuf enum DATA_SOURCE_CONNECTION = 8; + */ + const DATA_SOURCE_CONNECTION = 8; + /** + * Routine, for example, a BigQuery routine. + * + * Generated from protobuf enum ROUTINE = 9; + */ + const ROUTINE = 9; + /** + * A Dataplex lake. + * + * Generated from protobuf enum LAKE = 10; + */ + const LAKE = 10; + /** + * A Dataplex zone. + * + * Generated from protobuf enum ZONE = 11; + */ + const ZONE = 11; + /** + * A service, for example, a Dataproc Metastore service. + * + * Generated from protobuf enum SERVICE = 14; + */ + const SERVICE = 14; + /** + * Schema within a relational database. + * + * Generated from protobuf enum DATABASE_SCHEMA = 15; + */ + const DATABASE_SCHEMA = 15; + /** + * A Dashboard, for example from Looker. + * + * Generated from protobuf enum DASHBOARD = 16; + */ + const DASHBOARD = 16; + /** + * A Looker Explore. + * For more information, see [Looker Explore API] + * (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore). + * + * Generated from protobuf enum EXPLORE = 17; + */ + const EXPLORE = 17; + /** + * A Looker Look. + * For more information, see [Looker Look API] + * (https://developers.looker.com/api/explorer/4.0/methods/Look). + * + * Generated from protobuf enum LOOK = 18; + */ + const LOOK = 18; + + private static $valueToName = [ + self::ENTRY_TYPE_UNSPECIFIED => 'ENTRY_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::MODEL => 'MODEL', + self::DATA_STREAM => 'DATA_STREAM', + self::FILESET => 'FILESET', + self::CLUSTER => 'CLUSTER', + self::DATABASE => 'DATABASE', + self::DATA_SOURCE_CONNECTION => 'DATA_SOURCE_CONNECTION', + self::ROUTINE => 'ROUTINE', + self::LAKE => 'LAKE', + self::ZONE => 'ZONE', + self::SERVICE => 'SERVICE', + self::DATABASE_SCHEMA => 'DATABASE_SCHEMA', + self::DASHBOARD => 'DASHBOARD', + self::EXPLORE => 'EXPLORE', + self::LOOK => 'LOOK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesRequest.php new file mode 100644 index 000000000000..1bc6ad77ffb2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesRequest.php @@ -0,0 +1,151 @@ +google.cloud.datacatalog.v1.ExportTaxonomiesRequest + */ +class ExportTaxonomiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project that the exported taxonomies belong + * to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Resource names of the taxonomies to export. + * + * Generated from protobuf field repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $taxonomies; + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the project that the exported taxonomies belong + * to. + * @type array|\Google\Protobuf\Internal\RepeatedField $taxonomies + * Required. Resource names of the taxonomies to export. + * @type bool $serialized_taxonomies + * Serialized export taxonomies that contain all the policy + * tags as nested protocol buffers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project that the exported taxonomies belong + * to. + * + * Generated 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 that the exported taxonomies belong + * to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 names of the taxonomies to export. + * + * Generated from protobuf field repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomies() + { + return $this->taxonomies; + } + + /** + * Required. Resource names of the taxonomies to export. + * + * Generated from protobuf field repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->taxonomies = $arr; + + return $this; + } + + /** + * Serialized export taxonomies that contain all the policy + * tags as nested protocol buffers. + * + * Generated from protobuf field bool serialized_taxonomies = 3; + * @return bool + */ + public function getSerializedTaxonomies() + { + return $this->readOneof(3); + } + + public function hasSerializedTaxonomies() + { + return $this->hasOneof(3); + } + + /** + * Serialized export taxonomies that contain all the policy + * tags as nested protocol buffers. + * + * Generated from protobuf field bool serialized_taxonomies = 3; + * @param bool $var + * @return $this + */ + public function setSerializedTaxonomies($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesResponse.php new file mode 100644 index 000000000000..95c8a255a460 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ExportTaxonomiesResponse.php @@ -0,0 +1,68 @@ +google.cloud.datacatalog.v1.ExportTaxonomiesResponse + */ +class ExportTaxonomiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of taxonomies and policy tags as nested protocol buffers. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; + */ + private $taxonomies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\SerializedTaxonomy>|\Google\Protobuf\Internal\RepeatedField $taxonomies + * List of taxonomies and policy tags as nested protocol buffers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * List of taxonomies and policy tags as nested protocol buffers. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomies() + { + return $this->taxonomies; + } + + /** + * List of taxonomies and policy tags as nested protocol buffers. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; + * @param array<\Google\Cloud\DataCatalog\V1\SerializedTaxonomy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SerializedTaxonomy::class); + $this->taxonomies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType.php new file mode 100644 index 000000000000..5d952db4056b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.FieldType + */ +class FieldType extends \Google\Protobuf\Internal\Message +{ + protected $type_decl; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $primitive_type + * Primitive types, such as string, boolean, etc. + * @type \Google\Cloud\DataCatalog\V1\FieldType\EnumType $enum_type + * An enum type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * Primitive types, such as string, boolean, etc. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; + * @return int + */ + public function getPrimitiveType() + { + return $this->readOneof(1); + } + + public function hasPrimitiveType() + { + return $this->hasOneof(1); + } + + /** + * Primitive types, such as string, boolean, etc. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; + * @param int $var + * @return $this + */ + public function setPrimitiveType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\FieldType\PrimitiveType::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * An enum type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; + * @return \Google\Cloud\DataCatalog\V1\FieldType\EnumType|null + */ + public function getEnumType() + { + return $this->readOneof(2); + } + + public function hasEnumType() + { + return $this->hasOneof(2); + } + + /** + * An enum type. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; + * @param \Google\Cloud\DataCatalog\V1\FieldType\EnumType $var + * @return $this + */ + public function setEnumType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\FieldType\EnumType::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getTypeDecl() + { + return $this->whichOneof("type_decl"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType.php new file mode 100644 index 000000000000..1c20119a3004 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType.php @@ -0,0 +1,92 @@ +google.cloud.datacatalog.v1.FieldType.EnumType + */ +class EnumType extends \Google\Protobuf\Internal\Message +{ + /** + * The set of allowed values for this enum. + * This set must not be empty and can include up to 100 allowed values. + * The display names of the values in this set must not be empty and must + * be case-insensitively unique within this set. + * The order of items in this set is preserved. This field can be used to + * create, remove, and reorder enum values. To rename enum values, use the + * `RenameTagTemplateFieldEnumValue` method. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; + */ + private $allowed_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\FieldType\EnumType\EnumValue>|\Google\Protobuf\Internal\RepeatedField $allowed_values + * The set of allowed values for this enum. + * This set must not be empty and can include up to 100 allowed values. + * The display names of the values in this set must not be empty and must + * be case-insensitively unique within this set. + * The order of items in this set is preserved. This field can be used to + * create, remove, and reorder enum values. To rename enum values, use the + * `RenameTagTemplateFieldEnumValue` method. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * The set of allowed values for this enum. + * This set must not be empty and can include up to 100 allowed values. + * The display names of the values in this set must not be empty and must + * be case-insensitively unique within this set. + * The order of items in this set is preserved. This field can be used to + * create, remove, and reorder enum values. To rename enum values, use the + * `RenameTagTemplateFieldEnumValue` method. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowedValues() + { + return $this->allowed_values; + } + + /** + * The set of allowed values for this enum. + * This set must not be empty and can include up to 100 allowed values. + * The display names of the values in this set must not be empty and must + * be case-insensitively unique within this set. + * The order of items in this set is preserved. This field can be used to + * create, remove, and reorder enum values. To rename enum values, use the + * `RenameTagTemplateFieldEnumValue` method. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; + * @param array<\Google\Cloud\DataCatalog\V1\FieldType\EnumType\EnumValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowedValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\FieldType\EnumType\EnumValue::class); + $this->allowed_values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EnumType::class, \Google\Cloud\DataCatalog\V1\FieldType_EnumType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType/EnumValue.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType/EnumValue.php new file mode 100644 index 000000000000..25183374dd76 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/EnumType/EnumValue.php @@ -0,0 +1,84 @@ +google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue + */ +class EnumValue extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The display name of the enum value. Must not be an empty + * string. + * The name must contain only Unicode letters, numbers (0-9), underscores + * (_), dashes (-), spaces ( ), and can't start or end with spaces. The + * maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. The display name of the enum value. Must not be an empty + * string. + * The name must contain only Unicode letters, numbers (0-9), underscores + * (_), dashes (-), spaces ( ), and can't start or end with spaces. The + * maximum length is 200 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * Required. The display name of the enum value. Must not be an empty + * string. + * The name must contain only Unicode letters, numbers (0-9), underscores + * (_), dashes (-), spaces ( ), and can't start or end with spaces. The + * maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the enum value. Must not be an empty + * string. + * The name must contain only Unicode letters, numbers (0-9), underscores + * (_), dashes (-), spaces ( ), and can't start or end with spaces. The + * maximum length is 200 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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EnumValue::class, \Google\Cloud\DataCatalog\V1\FieldType_EnumType_EnumValue::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/PrimitiveType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/PrimitiveType.php new file mode 100644 index 000000000000..66a488a3619c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FieldType/PrimitiveType.php @@ -0,0 +1,83 @@ +google.cloud.datacatalog.v1.FieldType.PrimitiveType + */ +class PrimitiveType +{ + /** + * The default invalid value for a type. + * + * Generated from protobuf enum PRIMITIVE_TYPE_UNSPECIFIED = 0; + */ + const PRIMITIVE_TYPE_UNSPECIFIED = 0; + /** + * A double precision number. + * + * Generated from protobuf enum DOUBLE = 1; + */ + const DOUBLE = 1; + /** + * An UTF-8 string. + * + * Generated from protobuf enum STRING = 2; + */ + const STRING = 2; + /** + * A boolean value. + * + * Generated from protobuf enum BOOL = 3; + */ + const BOOL = 3; + /** + * A timestamp. + * + * Generated from protobuf enum TIMESTAMP = 4; + */ + const TIMESTAMP = 4; + /** + * A Richtext description. + * + * Generated from protobuf enum RICHTEXT = 5; + */ + const RICHTEXT = 5; + + private static $valueToName = [ + self::PRIMITIVE_TYPE_UNSPECIFIED => 'PRIMITIVE_TYPE_UNSPECIFIED', + self::DOUBLE => 'DOUBLE', + self::STRING => 'STRING', + self::BOOL => 'BOOL', + self::TIMESTAMP => 'TIMESTAMP', + self::RICHTEXT => 'RICHTEXT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrimitiveType::class, \Google\Cloud\DataCatalog\V1\FieldType_PrimitiveType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FilesetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FilesetSpec.php new file mode 100644 index 000000000000..1034f0dffb15 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/FilesetSpec.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.FilesetSpec + */ +class FilesetSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Fields specific to a Dataplex fileset and present only in the Dataplex + * fileset entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; + */ + protected $dataplex_fileset = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\DataplexFilesetSpec $dataplex_fileset + * Fields specific to a Dataplex fileset and present only in the Dataplex + * fileset entries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Fields specific to a Dataplex fileset and present only in the Dataplex + * fileset entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; + * @return \Google\Cloud\DataCatalog\V1\DataplexFilesetSpec|null + */ + public function getDataplexFileset() + { + return $this->dataplex_fileset; + } + + public function hasDataplexFileset() + { + return isset($this->dataplex_fileset); + } + + public function clearDataplexFileset() + { + unset($this->dataplex_fileset); + } + + /** + * Fields specific to a Dataplex fileset and present only in the Dataplex + * fileset entries. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; + * @param \Google\Cloud\DataCatalog\V1\DataplexFilesetSpec $var + * @return $this + */ + public function setDataplexFileset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\DataplexFilesetSpec::class); + $this->dataplex_fileset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFileSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFileSpec.php new file mode 100644 index 000000000000..1d7a9dc320c3 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFileSpec.php @@ -0,0 +1,149 @@ +google.cloud.datacatalog.v1.GcsFileSpec + */ +class GcsFileSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Full file path. Example: `gs://bucket_name/a/b.txt`. + * + * Generated from protobuf field string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $file_path = ''; + /** + * Output only. Creation, modification, and expiration timestamps of a Cloud + * Storage file. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $gcs_timestamps = null; + /** + * Output only. File size in bytes. + * + * Generated from protobuf field int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $size_bytes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_path + * Required. Full file path. Example: `gs://bucket_name/a/b.txt`. + * @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $gcs_timestamps + * Output only. Creation, modification, and expiration timestamps of a Cloud + * Storage file. + * @type int|string $size_bytes + * Output only. File size in bytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\GcsFilesetSpec::initOnce(); + parent::__construct($data); + } + + /** + * Required. Full file path. Example: `gs://bucket_name/a/b.txt`. + * + * Generated from protobuf field string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilePath() + { + return $this->file_path; + } + + /** + * Required. Full file path. Example: `gs://bucket_name/a/b.txt`. + * + * Generated from protobuf field string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilePath($var) + { + GPBUtil::checkString($var, True); + $this->file_path = $var; + + return $this; + } + + /** + * Output only. Creation, modification, and expiration timestamps of a Cloud + * Storage file. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null + */ + public function getGcsTimestamps() + { + return $this->gcs_timestamps; + } + + public function hasGcsTimestamps() + { + return isset($this->gcs_timestamps); + } + + public function clearGcsTimestamps() + { + unset($this->gcs_timestamps); + } + + /** + * Output only. Creation, modification, and expiration timestamps of a Cloud + * Storage file. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var + * @return $this + */ + public function setGcsTimestamps($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class); + $this->gcs_timestamps = $var; + + return $this; + } + + /** + * Output only. File size in bytes. + * + * Generated from protobuf field int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getSizeBytes() + { + return $this->size_bytes; + } + + /** + * Output only. File size in bytes. + * + * Generated from protobuf field int64 size_bytes = 4 [(.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; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFilesetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFilesetSpec.php new file mode 100644 index 000000000000..c124b211405d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GcsFilesetSpec.php @@ -0,0 +1,193 @@ +google.cloud.datacatalog.v1.GcsFilesetSpec + */ +class GcsFilesetSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Patterns to identify a set of files in Google Cloud Storage. + * For more information, see [Wildcard Names] + * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + * Note: Currently, bucket wildcards are not supported. + * Examples of valid `file_patterns`: + * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` + * and all subdirectories + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * You can combine wildcards to match complex sets of files, for example: + * `gs://bucket_name/[a-m]??.j*g` + * + * Generated from protobuf field repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $file_patterns; + /** + * Output only. Sample files contained in this fileset, not all files + * contained in this fileset are represented here. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sample_gcs_file_specs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $file_patterns + * Required. Patterns to identify a set of files in Google Cloud Storage. + * For more information, see [Wildcard Names] + * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + * Note: Currently, bucket wildcards are not supported. + * Examples of valid `file_patterns`: + * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` + * and all subdirectories + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * You can combine wildcards to match complex sets of files, for example: + * `gs://bucket_name/[a-m]??.j*g` + * @type array<\Google\Cloud\DataCatalog\V1\GcsFileSpec>|\Google\Protobuf\Internal\RepeatedField $sample_gcs_file_specs + * Output only. Sample files contained in this fileset, not all files + * contained in this fileset are represented here. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\GcsFilesetSpec::initOnce(); + parent::__construct($data); + } + + /** + * Required. Patterns to identify a set of files in Google Cloud Storage. + * For more information, see [Wildcard Names] + * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + * Note: Currently, bucket wildcards are not supported. + * Examples of valid `file_patterns`: + * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` + * and all subdirectories + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * You can combine wildcards to match complex sets of files, for example: + * `gs://bucket_name/[a-m]??.j*g` + * + * Generated from protobuf field repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilePatterns() + { + return $this->file_patterns; + } + + /** + * Required. Patterns to identify a set of files in Google Cloud Storage. + * For more information, see [Wildcard Names] + * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + * Note: Currently, bucket wildcards are not supported. + * Examples of valid `file_patterns`: + * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` + * and all subdirectories + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * You can combine wildcards to match complex sets of files, for example: + * `gs://bucket_name/[a-m]??.j*g` + * + * Generated from protobuf field repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->file_patterns = $arr; + + return $this; + } + + /** + * Output only. Sample files contained in this fileset, not all files + * contained in this fileset are represented here. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSampleGcsFileSpecs() + { + return $this->sample_gcs_file_specs; + } + + /** + * Output only. Sample files contained in this fileset, not all files + * contained in this fileset are represented here. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\DataCatalog\V1\GcsFileSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSampleGcsFileSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\GcsFileSpec::class); + $this->sample_gcs_file_specs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryGroupRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryGroupRequest.php new file mode 100644 index 000000000000..76b61e38e9bd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryGroupRequest.php @@ -0,0 +1,142 @@ +google.cloud.datacatalog.v1.GetEntryGroupRequest + */ +class GetEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry group to get. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The fields to return. If empty or omitted, all fields are returned. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The name of the entry group to get. Please see + * {@see DataCatalogClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\GetEntryGroupRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * @param string $name Required. The name of the entry group to get. Please see + * {@see DataCatalogClient::entryGroupName()} for help formatting this field. + * @param \Google\Protobuf\FieldMask $readMask The fields to return. If empty or omitted, all fields are returned. + * + * @return \Google\Cloud\DataCatalog\V1\GetEntryGroupRequest + * + * @experimental + */ + public static function buildFromNameReadMask(string $name, \Google\Protobuf\FieldMask $readMask): self + { + return (new self()) + ->setName($name) + ->setReadMask($readMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the entry group to get. + * @type \Google\Protobuf\FieldMask $read_mask + * The fields to return. If empty or omitted, all fields are returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry group 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 name of the entry group 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; + } + + /** + * The fields to return. If empty or omitted, all fields are returned. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @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); + } + + /** + * The fields to return. If empty or omitted, all fields are returned. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryRequest.php new file mode 100644 index 000000000000..d75c330de5f0 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetEntryRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.GetEntryRequest + */ +class GetEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry 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 name of the entry to get. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\GetEntryRequest + * + * @experimental + */ + public static function 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 entry to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry 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 name of the entry 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetPolicyTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetPolicyTagRequest.php new file mode 100644 index 000000000000..69deebd11459 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetPolicyTagRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.GetPolicyTagRequest + */ +class GetPolicyTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the policy tag. + * + * 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 policy tag. Please see + * {@see PolicyTagManagerClient::policyTagName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\GetPolicyTagRequest + * + * @experimental + */ + public static function 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 policy tag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the policy tag. + * + * Generated 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 policy tag. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTagTemplateRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTagTemplateRequest.php new file mode 100644 index 000000000000..2abfb6facd24 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTagTemplateRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.GetTagTemplateRequest + */ +class GetTagTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag template 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 name of the tag template to get. Please see + * {@see DataCatalogClient::tagTemplateName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\GetTagTemplateRequest + * + * @experimental + */ + public static function 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 tag template to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag template 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 name of the tag template 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTaxonomyRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTaxonomyRequest.php new file mode 100644 index 000000000000..6efa888ac7b1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/GetTaxonomyRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.GetTaxonomyRequest + */ +class GetTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the taxonomy to get. + * + * 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 taxonomy to get. Please see + * {@see PolicyTagManagerClient::taxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\GetTaxonomyRequest + * + * @experimental + */ + public static function 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 taxonomy to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the taxonomy 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. Resource name of the taxonomy 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata.php new file mode 100644 index 000000000000..d5afa31cf075 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata.php @@ -0,0 +1,115 @@ +google.cloud.datacatalog.v1.ImportEntriesMetadata + */ +class ImportEntriesMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * State of the import operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; + */ + protected $state = 0; + /** + * Partial errors that are encountered during the ImportEntries operation. + * There is no guarantee that all the encountered errors are reported. + * However, if no errors are reported, it means that no errors were + * encountered. + * + * Generated from protobuf field repeated .google.rpc.Status errors = 2; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * State of the import operation. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $errors + * Partial errors that are encountered during the ImportEntries operation. + * There is no guarantee that all the encountered errors are reported. + * However, if no errors are reported, it means that no errors were + * encountered. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * State of the import operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of the import operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ImportEntriesMetadata\ImportState::class); + $this->state = $var; + + return $this; + } + + /** + * Partial errors that are encountered during the ImportEntries operation. + * There is no guarantee that all the encountered errors are reported. + * However, if no errors are reported, it means that no errors were + * encountered. + * + * Generated from protobuf field repeated .google.rpc.Status errors = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Partial errors that are encountered during the ImportEntries operation. + * There is no guarantee that all the encountered errors are reported. + * However, if no errors are reported, it means that no errors were + * encountered. + * + * Generated from protobuf field repeated .google.rpc.Status errors = 2; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata/ImportState.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata/ImportState.php new file mode 100644 index 000000000000..00f1fae63c91 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesMetadata/ImportState.php @@ -0,0 +1,78 @@ +google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState + */ +class ImportState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum IMPORT_STATE_UNSPECIFIED = 0; + */ + const IMPORT_STATE_UNSPECIFIED = 0; + /** + * The dump with entries has been queued for import. + * + * Generated from protobuf enum IMPORT_QUEUED = 1; + */ + const IMPORT_QUEUED = 1; + /** + * The import of entries is in progress. + * + * Generated from protobuf enum IMPORT_IN_PROGRESS = 2; + */ + const IMPORT_IN_PROGRESS = 2; + /** + * The import of entries has been finished. + * + * Generated from protobuf enum IMPORT_DONE = 3; + */ + const IMPORT_DONE = 3; + /** + * The import of entries has been abandoned in favor of a newer request. + * + * Generated from protobuf enum IMPORT_OBSOLETE = 4; + */ + const IMPORT_OBSOLETE = 4; + + private static $valueToName = [ + self::IMPORT_STATE_UNSPECIFIED => 'IMPORT_STATE_UNSPECIFIED', + self::IMPORT_QUEUED => 'IMPORT_QUEUED', + self::IMPORT_IN_PROGRESS => 'IMPORT_IN_PROGRESS', + self::IMPORT_DONE => 'IMPORT_DONE', + self::IMPORT_OBSOLETE => 'IMPORT_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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ImportState::class, \Google\Cloud\DataCatalog\V1\ImportEntriesMetadata_ImportState::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesRequest.php new file mode 100644 index 000000000000..fa7fc355ef12 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesRequest.php @@ -0,0 +1,149 @@ +google.cloud.datacatalog.v1.ImportEntriesRequest + */ +class ImportEntriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Target entry group for ingested entries. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. (Optional) Dataplex task job id, if specified will be used as + * part of ImportEntries LRO ID + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $job_id = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Target entry group for ingested entries. + * @type string $gcs_bucket_path + * Path to a Cloud Storage bucket that contains a dump ready for ingestion. + * @type string $job_id + * Optional. (Optional) Dataplex task job id, if specified will be used as + * part of ImportEntries LRO ID + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Target entry group for ingested entries. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Target entry group for ingested entries. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Path to a Cloud Storage bucket that contains a dump ready for ingestion. + * + * Generated from protobuf field string gcs_bucket_path = 2; + * @return string + */ + public function getGcsBucketPath() + { + return $this->readOneof(2); + } + + public function hasGcsBucketPath() + { + return $this->hasOneof(2); + } + + /** + * Path to a Cloud Storage bucket that contains a dump ready for ingestion. + * + * Generated from protobuf field string gcs_bucket_path = 2; + * @param string $var + * @return $this + */ + public function setGcsBucketPath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. (Optional) Dataplex task job id, if specified will be used as + * part of ImportEntries LRO ID + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Optional. (Optional) Dataplex task job id, if specified will be used as + * part of ImportEntries LRO ID + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesResponse.php new file mode 100644 index 000000000000..01f193e90eef --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportEntriesResponse.php @@ -0,0 +1,127 @@ +google.cloud.datacatalog.v1.ImportEntriesResponse + */ +class ImportEntriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Cumulative number of entries created and entries updated as a result of + * import operation. + * + * Generated from protobuf field optional int64 upserted_entries_count = 5; + */ + protected $upserted_entries_count = null; + /** + * Number of entries deleted as a result of import operation. + * + * Generated from protobuf field optional int64 deleted_entries_count = 6; + */ + protected $deleted_entries_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $upserted_entries_count + * Cumulative number of entries created and entries updated as a result of + * import operation. + * @type int|string $deleted_entries_count + * Number of entries deleted as a result of import operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Cumulative number of entries created and entries updated as a result of + * import operation. + * + * Generated from protobuf field optional int64 upserted_entries_count = 5; + * @return int|string + */ + public function getUpsertedEntriesCount() + { + return isset($this->upserted_entries_count) ? $this->upserted_entries_count : 0; + } + + public function hasUpsertedEntriesCount() + { + return isset($this->upserted_entries_count); + } + + public function clearUpsertedEntriesCount() + { + unset($this->upserted_entries_count); + } + + /** + * Cumulative number of entries created and entries updated as a result of + * import operation. + * + * Generated from protobuf field optional int64 upserted_entries_count = 5; + * @param int|string $var + * @return $this + */ + public function setUpsertedEntriesCount($var) + { + GPBUtil::checkInt64($var); + $this->upserted_entries_count = $var; + + return $this; + } + + /** + * Number of entries deleted as a result of import operation. + * + * Generated from protobuf field optional int64 deleted_entries_count = 6; + * @return int|string + */ + public function getDeletedEntriesCount() + { + return isset($this->deleted_entries_count) ? $this->deleted_entries_count : 0; + } + + public function hasDeletedEntriesCount() + { + return isset($this->deleted_entries_count); + } + + public function clearDeletedEntriesCount() + { + unset($this->deleted_entries_count); + } + + /** + * Number of entries deleted as a result of import operation. + * + * Generated from protobuf field optional int64 deleted_entries_count = 6; + * @param int|string $var + * @return $this + */ + public function setDeletedEntriesCount($var) + { + GPBUtil::checkInt64($var); + $this->deleted_entries_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesRequest.php new file mode 100644 index 000000000000..f725b621eb8c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesRequest.php @@ -0,0 +1,147 @@ +google.cloud.datacatalog.v1.ImportTaxonomiesRequest + */ +class ImportTaxonomiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of project that the imported taxonomies will belong + * to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of project that the imported taxonomies will belong + * to. + * @type \Google\Cloud\DataCatalog\V1\InlineSource $inline_source + * Inline source taxonomy to import. + * @type \Google\Cloud\DataCatalog\V1\CrossRegionalSource $cross_regional_source + * Cross-regional source taxonomy to import. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of project that the imported taxonomies will belong + * to. + * + * Generated 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 project that the imported taxonomies will belong + * to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Inline source taxonomy to import. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.InlineSource inline_source = 2; + * @return \Google\Cloud\DataCatalog\V1\InlineSource|null + */ + public function getInlineSource() + { + return $this->readOneof(2); + } + + public function hasInlineSource() + { + return $this->hasOneof(2); + } + + /** + * Inline source taxonomy to import. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.InlineSource inline_source = 2; + * @param \Google\Cloud\DataCatalog\V1\InlineSource $var + * @return $this + */ + public function setInlineSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\InlineSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Cross-regional source taxonomy to import. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; + * @return \Google\Cloud\DataCatalog\V1\CrossRegionalSource|null + */ + public function getCrossRegionalSource() + { + return $this->readOneof(3); + } + + public function hasCrossRegionalSource() + { + return $this->hasOneof(3); + } + + /** + * Cross-regional source taxonomy to import. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; + * @param \Google\Cloud\DataCatalog\V1\CrossRegionalSource $var + * @return $this + */ + public function setCrossRegionalSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\CrossRegionalSource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesResponse.php new file mode 100644 index 000000000000..7035fcae827c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ImportTaxonomiesResponse.php @@ -0,0 +1,68 @@ +google.cloud.datacatalog.v1.ImportTaxonomiesResponse + */ +class ImportTaxonomiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Imported taxonomies. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + */ + private $taxonomies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\Taxonomy>|\Google\Protobuf\Internal\RepeatedField $taxonomies + * Imported taxonomies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Imported taxonomies. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomies() + { + return $this->taxonomies; + } + + /** + * Imported taxonomies. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + * @param array<\Google\Cloud\DataCatalog\V1\Taxonomy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Taxonomy::class); + $this->taxonomies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/InlineSource.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/InlineSource.php new file mode 100644 index 000000000000..10b938fcf9fd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/InlineSource.php @@ -0,0 +1,67 @@ +google.cloud.datacatalog.v1.InlineSource + */ +class InlineSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Taxonomies to import. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $taxonomies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\SerializedTaxonomy>|\Google\Protobuf\Internal\RepeatedField $taxonomies + * Required. Taxonomies to import. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. Taxonomies to import. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomies() + { + return $this->taxonomies; + } + + /** + * Required. Taxonomies to import. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\DataCatalog\V1\SerializedTaxonomy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SerializedTaxonomy::class); + $this->taxonomies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/IntegratedSystem.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/IntegratedSystem.php new file mode 100644 index 000000000000..09bfbe1624d7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/IntegratedSystem.php @@ -0,0 +1,110 @@ +google.cloud.datacatalog.v1.IntegratedSystem + */ +class IntegratedSystem +{ + /** + * Default unknown system. + * + * Generated from protobuf enum INTEGRATED_SYSTEM_UNSPECIFIED = 0; + */ + const INTEGRATED_SYSTEM_UNSPECIFIED = 0; + /** + * BigQuery. + * + * Generated from protobuf enum BIGQUERY = 1; + */ + const BIGQUERY = 1; + /** + * Cloud Pub/Sub. + * + * Generated from protobuf enum CLOUD_PUBSUB = 2; + */ + const CLOUD_PUBSUB = 2; + /** + * Dataproc Metastore. + * + * Generated from protobuf enum DATAPROC_METASTORE = 3; + */ + const DATAPROC_METASTORE = 3; + /** + * Dataplex. + * + * Generated from protobuf enum DATAPLEX = 4; + */ + const DATAPLEX = 4; + /** + * Cloud Spanner + * + * Generated from protobuf enum CLOUD_SPANNER = 6; + */ + const CLOUD_SPANNER = 6; + /** + * Cloud Bigtable + * + * Generated from protobuf enum CLOUD_BIGTABLE = 7; + */ + const CLOUD_BIGTABLE = 7; + /** + * Cloud Sql + * + * Generated from protobuf enum CLOUD_SQL = 8; + */ + const CLOUD_SQL = 8; + /** + * Looker + * + * Generated from protobuf enum LOOKER = 9; + */ + const LOOKER = 9; + /** + * Vertex AI + * + * Generated from protobuf enum VERTEX_AI = 10; + */ + const VERTEX_AI = 10; + + private static $valueToName = [ + self::INTEGRATED_SYSTEM_UNSPECIFIED => 'INTEGRATED_SYSTEM_UNSPECIFIED', + self::BIGQUERY => 'BIGQUERY', + self::CLOUD_PUBSUB => 'CLOUD_PUBSUB', + self::DATAPROC_METASTORE => 'DATAPROC_METASTORE', + self::DATAPLEX => 'DATAPLEX', + self::CLOUD_SPANNER => 'CLOUD_SPANNER', + self::CLOUD_BIGTABLE => 'CLOUD_BIGTABLE', + self::CLOUD_SQL => 'CLOUD_SQL', + self::LOOKER => 'LOOKER', + self::VERTEX_AI => 'VERTEX_AI', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesRequest.php new file mode 100644 index 000000000000..40e55423d130 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesRequest.php @@ -0,0 +1,220 @@ +google.cloud.datacatalog.v1.ListEntriesRequest + */ +class ListEntriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry group that contains the entries to list. + * Can be provided in URL format. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. Default is 10. Maximum limit is + * 1000. Throws an invalid argument if `page_size` is more than 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * The fields to return for each entry. If empty or omitted, all + * fields are returned. + * For example, to return a list of entries with only the `name` field, + * set `read_mask` to only one path with the `name` value. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; + */ + protected $read_mask = null; + + /** + * @param string $parent Required. The name of the entry group that contains the entries to list. + * + * Can be provided in URL format. Please see + * {@see DataCatalogClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\ListEntriesRequest + * + * @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 entry group that contains the entries to list. + * Can be provided in URL format. + * @type int $page_size + * The maximum number of items to return. Default is 10. Maximum limit is + * 1000. Throws an invalid argument if `page_size` is more than 1000. + * @type string $page_token + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * @type \Google\Protobuf\FieldMask $read_mask + * The fields to return for each entry. If empty or omitted, all + * fields are returned. + * For example, to return a list of entries with only the `name` field, + * set `read_mask` to only one path with the `name` value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry group that contains the entries to list. + * Can be provided in URL format. + * + * Generated 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 entry group that contains the entries to list. + * Can be provided in URL format. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 items to return. Default is 10. Maximum limit is + * 1000. Throws an invalid argument if `page_size` is more than 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. Default is 10. Maximum limit is + * 1000. Throws an invalid argument if `page_size` is more than 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; + } + + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * 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; + } + + /** + * The fields to return for each entry. If empty or omitted, all + * fields are returned. + * For example, to return a list of entries with only the `name` field, + * set `read_mask` to only one path with the `name` value. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; + * @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); + } + + /** + * The fields to return for each entry. If empty or omitted, all + * fields are returned. + * For example, to return a list of entries with only the `name` field, + * set `read_mask` to only one path with the `name` value. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; + * @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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesResponse.php new file mode 100644 index 000000000000..095ade948b0a --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntriesResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.ListEntriesResponse + */ +class ListEntriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Entry details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Entry entries = 1; + */ + private $entries; + /** + * Pagination token of the next results page. Empty if there are no more items + * in 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\DataCatalog\V1\Entry>|\Google\Protobuf\Internal\RepeatedField $entries + * Entry details. + * @type string $next_page_token + * Pagination token of the next results page. Empty if there are no more items + * in results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Entry entries = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntries() + { + return $this->entries; + } + + /** + * Entry details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Entry entries = 1; + * @param array<\Google\Cloud\DataCatalog\V1\Entry>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Entry::class); + $this->entries = $arr; + + return $this; + } + + /** + * Pagination token of the next results page. Empty if there are no more items + * in results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token of the next results page. Empty if there are no more items + * in 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsRequest.php new file mode 100644 index 000000000000..5aeb672daa93 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsRequest.php @@ -0,0 +1,168 @@ +google.cloud.datacatalog.v1.ListEntryGroupsRequest + */ +class ListEntryGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the location that contains the entry groups to list. + * Can be provided as a URL. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of items to return. + * Default is 10. Maximum limit is 1000. + * Throws an invalid argument if `page_size` is greater than 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Pagination token that specifies the next page to return. + * If empty, returns the first page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The name of the location that contains the entry groups to list. + * + * Can be provided as a URL. Please see + * {@see DataCatalogClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\ListEntryGroupsRequest + * + * @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 location that contains the entry groups to list. + * Can be provided as a URL. + * @type int $page_size + * Optional. The maximum number of items to return. + * Default is 10. Maximum limit is 1000. + * Throws an invalid argument if `page_size` is greater than 1000. + * @type string $page_token + * Optional. Pagination token that specifies the next page to return. + * If empty, returns the first page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the location that contains the entry groups to list. + * Can be provided as a URL. + * + * Generated 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 location that contains the entry groups to list. + * Can be provided as a URL. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 items to return. + * Default is 10. Maximum limit is 1000. + * Throws an invalid argument if `page_size` is greater than 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 items to return. + * Default is 10. Maximum limit is 1000. + * Throws an invalid argument if `page_size` is greater than 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. Pagination token that specifies the next page to return. + * If empty, returns the first page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Pagination token that specifies the next page to return. + * If empty, returns the first 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsResponse.php new file mode 100644 index 000000000000..01ce90d13e57 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListEntryGroupsResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.ListEntryGroupsResponse + */ +class ListEntryGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Entry group details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; + */ + private $entry_groups; + /** + * Pagination token to specify in the next call to retrieve the next page of + * results. Empty if there are no more items. + * + * 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\DataCatalog\V1\EntryGroup>|\Google\Protobuf\Internal\RepeatedField $entry_groups + * Entry group details. + * @type string $next_page_token + * Pagination token to specify in the next call to retrieve the next page of + * results. Empty if there are no more items. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry group details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntryGroups() + { + return $this->entry_groups; + } + + /** + * Entry group details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; + * @param array<\Google\Cloud\DataCatalog\V1\EntryGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntryGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\EntryGroup::class); + $this->entry_groups = $arr; + + return $this; + } + + /** + * Pagination token to specify in the next call to retrieve the next page of + * results. Empty if there are no more items. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token to specify in the next call to retrieve the next page of + * results. Empty if there are no more items. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsRequest.php new file mode 100644 index 000000000000..0f1f7cbcfd82 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsRequest.php @@ -0,0 +1,166 @@ +google.cloud.datacatalog.v1.ListPolicyTagsRequest + */ +class ListPolicyTagsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the taxonomy to list the policy tags of. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. + * If not set, defaults to 50. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The pagination token of the next results page. If not set, returns the + * first page. + * The token is returned in the response to a previous list request. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Resource name of the taxonomy to list the policy tags of. Please see + * {@see PolicyTagManagerClient::taxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\ListPolicyTagsRequest + * + * @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 taxonomy to list the policy tags of. + * @type int $page_size + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. + * If not set, defaults to 50. + * @type string $page_token + * The pagination token of the next results page. If not set, returns the + * first page. + * The token is returned in the response to a previous list request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the taxonomy to list the policy tags of. + * + * Generated 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 taxonomy to list the policy tags of. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 items to return. Must be a value between 1 and 1000 + * inclusively. + * If not set, defaults to 50. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. + * If not set, defaults 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; + } + + /** + * The pagination token of the next results page. If not set, returns the + * first page. + * The token is returned in the response to a previous list request. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The pagination token of the next results page. If not set, returns the + * first page. + * The token is returned in the response to a previous list request. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsResponse.php new file mode 100644 index 000000000000..71ccac60ef68 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListPolicyTagsResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.ListPolicyTagsResponse + */ +class ListPolicyTagsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The policy tags that belong to the taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; + */ + private $policy_tags; + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * 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\DataCatalog\V1\PolicyTag>|\Google\Protobuf\Internal\RepeatedField $policy_tags + * The policy tags that belong to the taxonomy. + * @type string $next_page_token + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * The policy tags that belong to the taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPolicyTags() + { + return $this->policy_tags; + } + + /** + * The policy tags that belong to the taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; + * @param array<\Google\Cloud\DataCatalog\V1\PolicyTag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\PolicyTag::class); + $this->policy_tags = $arr; + + return $this; + } + + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsRequest.php new file mode 100644 index 000000000000..764a3df3a9a6 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsRequest.php @@ -0,0 +1,170 @@ +google.cloud.datacatalog.v1.ListTagsRequest + */ +class ListTagsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Data Catalog resource to list the tags of. + * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] + * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] + * (without `/entries/{entries}` at the end). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of tags to return. Default is 10. Maximum limit is 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The name of the Data Catalog resource to list the tags of. + * + * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] + * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] + * (without `/entries/{entries}` at the end). Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\ListTagsRequest + * + * @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 Data Catalog resource to list the tags of. + * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] + * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] + * (without `/entries/{entries}` at the end). + * @type int $page_size + * The maximum number of tags to return. Default is 10. Maximum limit is 1000. + * @type string $page_token + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Data Catalog resource to list the tags of. + * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] + * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] + * (without `/entries/{entries}` at the end). + * + * Generated 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 Data Catalog resource to list the tags of. + * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] + * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] + * (without `/entries/{entries}` at the end). + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 tags to return. Default is 10. Maximum limit is 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of tags to return. Default is 10. Maximum limit is 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; + } + + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Pagination token that specifies the next page to return. If empty, the + * first page is returned. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsResponse.php new file mode 100644 index 000000000000..5e61e71914c4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTagsResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.ListTagsResponse + */ +class ListTagsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * [Tag][google.cloud.datacatalog.v1.Tag] details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 1; + */ + private $tags; + /** + * Pagination token of the next results page. Empty if there are + * no more items in 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\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $tags + * [Tag][google.cloud.datacatalog.v1.Tag] details. + * @type string $next_page_token + * Pagination token of the next results page. Empty if there are + * no more items in results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * [Tag][google.cloud.datacatalog.v1.Tag] details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * [Tag][google.cloud.datacatalog.v1.Tag] details. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 1; + * @param array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->tags = $arr; + + return $this; + } + + /** + * Pagination token of the next results page. Empty if there are + * no more items in results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token of the next results page. Empty if there are + * no more items in 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesRequest.php new file mode 100644 index 000000000000..bc7f181f1a7b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesRequest.php @@ -0,0 +1,200 @@ +google.cloud.datacatalog.v1.ListTaxonomiesRequest + */ +class ListTaxonomiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project to list the taxonomies of. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. If not set, defaults to 50. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The pagination token of the next results page. If not set, + * the first page is returned. + * The token is returned in the response to a previous list request. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Supported field for filter is 'service' and value is 'dataplex'. + * Eg: service=dataplex. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the project to list the taxonomies of. Please see + * {@see PolicyTagManagerClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\ListTaxonomiesRequest + * + * @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 to list the taxonomies of. + * @type int $page_size + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. If not set, defaults to 50. + * @type string $page_token + * The pagination token of the next results page. If not set, + * the first page is returned. + * The token is returned in the response to a previous list request. + * @type string $filter + * Supported field for filter is 'service' and value is 'dataplex'. + * Eg: service=dataplex. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project to list the taxonomies of. + * + * Generated 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 to list the taxonomies of. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 items to return. Must be a value between 1 and 1000 + * inclusively. If not set, defaults to 50. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. Must be a value between 1 and 1000 + * inclusively. If not set, defaults 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; + } + + /** + * The pagination token of the next results page. If not set, + * the first page is returned. + * The token is returned in the response to a previous list request. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The pagination token of the next results page. If not set, + * the first page is returned. + * The token is returned in the response to a previous list request. + * + * 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; + } + + /** + * Supported field for filter is 'service' and value is 'dataplex'. + * Eg: service=dataplex. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Supported field for filter is 'service' and value is 'dataplex'. + * Eg: service=dataplex. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesResponse.php new file mode 100644 index 000000000000..43049d7f29b0 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ListTaxonomiesResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.v1.ListTaxonomiesResponse + */ +class ListTaxonomiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Taxonomies that the project contains. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + */ + private $taxonomies; + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * 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\DataCatalog\V1\Taxonomy>|\Google\Protobuf\Internal\RepeatedField $taxonomies + * Taxonomies that the project contains. + * @type string $next_page_token + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Taxonomies that the project contains. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaxonomies() + { + return $this->taxonomies; + } + + /** + * Taxonomies that the project contains. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; + * @param array<\Google\Cloud\DataCatalog\V1\Taxonomy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Taxonomy::class); + $this->taxonomies = $arr; + + return $this; + } + + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token of the next results page. Empty if there are no + * more results in the list. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookerSystemSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookerSystemSpec.php new file mode 100644 index 000000000000..924a3e643eae --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookerSystemSpec.php @@ -0,0 +1,243 @@ +google.cloud.datacatalog.v1.LookerSystemSpec + */ +class LookerSystemSpec extends \Google\Protobuf\Internal\Message +{ + /** + * ID of the parent Looker Instance. Empty if it does not exist. + * Example value: `someinstance.looker.com` + * + * Generated from protobuf field string parent_instance_id = 1; + */ + protected $parent_instance_id = ''; + /** + * Name of the parent Looker Instance. Empty if it does not exist. + * + * Generated from protobuf field string parent_instance_display_name = 2; + */ + protected $parent_instance_display_name = ''; + /** + * ID of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_id = 3; + */ + protected $parent_model_id = ''; + /** + * Name of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_display_name = 4; + */ + protected $parent_model_display_name = ''; + /** + * ID of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_id = 5; + */ + protected $parent_view_id = ''; + /** + * Name of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_display_name = 6; + */ + protected $parent_view_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent_instance_id + * ID of the parent Looker Instance. Empty if it does not exist. + * Example value: `someinstance.looker.com` + * @type string $parent_instance_display_name + * Name of the parent Looker Instance. Empty if it does not exist. + * @type string $parent_model_id + * ID of the parent Model. Empty if it does not exist. + * @type string $parent_model_display_name + * Name of the parent Model. Empty if it does not exist. + * @type string $parent_view_id + * ID of the parent View. Empty if it does not exist. + * @type string $parent_view_display_name + * Name of the parent View. Empty if it does not exist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * ID of the parent Looker Instance. Empty if it does not exist. + * Example value: `someinstance.looker.com` + * + * Generated from protobuf field string parent_instance_id = 1; + * @return string + */ + public function getParentInstanceId() + { + return $this->parent_instance_id; + } + + /** + * ID of the parent Looker Instance. Empty if it does not exist. + * Example value: `someinstance.looker.com` + * + * Generated from protobuf field string parent_instance_id = 1; + * @param string $var + * @return $this + */ + public function setParentInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->parent_instance_id = $var; + + return $this; + } + + /** + * Name of the parent Looker Instance. Empty if it does not exist. + * + * Generated from protobuf field string parent_instance_display_name = 2; + * @return string + */ + public function getParentInstanceDisplayName() + { + return $this->parent_instance_display_name; + } + + /** + * Name of the parent Looker Instance. Empty if it does not exist. + * + * Generated from protobuf field string parent_instance_display_name = 2; + * @param string $var + * @return $this + */ + public function setParentInstanceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->parent_instance_display_name = $var; + + return $this; + } + + /** + * ID of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_id = 3; + * @return string + */ + public function getParentModelId() + { + return $this->parent_model_id; + } + + /** + * ID of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_id = 3; + * @param string $var + * @return $this + */ + public function setParentModelId($var) + { + GPBUtil::checkString($var, True); + $this->parent_model_id = $var; + + return $this; + } + + /** + * Name of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_display_name = 4; + * @return string + */ + public function getParentModelDisplayName() + { + return $this->parent_model_display_name; + } + + /** + * Name of the parent Model. Empty if it does not exist. + * + * Generated from protobuf field string parent_model_display_name = 4; + * @param string $var + * @return $this + */ + public function setParentModelDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->parent_model_display_name = $var; + + return $this; + } + + /** + * ID of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_id = 5; + * @return string + */ + public function getParentViewId() + { + return $this->parent_view_id; + } + + /** + * ID of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_id = 5; + * @param string $var + * @return $this + */ + public function setParentViewId($var) + { + GPBUtil::checkString($var, True); + $this->parent_view_id = $var; + + return $this; + } + + /** + * Name of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_display_name = 6; + * @return string + */ + public function getParentViewDisplayName() + { + return $this->parent_view_display_name; + } + + /** + * Name of the parent View. Empty if it does not exist. + * + * Generated from protobuf field string parent_view_display_name = 6; + * @param string $var + * @return $this + */ + public function setParentViewDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->parent_view_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookupEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookupEntryRequest.php new file mode 100644 index 000000000000..45caf368d1f6 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/LookupEntryRequest.php @@ -0,0 +1,295 @@ +google.cloud.datacatalog.v1.LookupEntryRequest + */ +class LookupEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Project where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string project = 6; + */ + protected $project = ''; + /** + * Location where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string location = 7; + */ + protected $location = ''; + protected $target_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $linked_resource + * The full name of the Google Cloud Platform resource the Data Catalog + * entry represents. For more information, see [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * Full names are case-sensitive. For example: + * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` + * @type string $sql_resource + * The SQL name of the entry. SQL names are case-sensitive. + * Examples: + * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` + * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` + * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` + * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` + * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` + * Identifiers (`*_ID`) should comply with the + * [Lexical structure in Standard SQL] + * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). + * @type string $fully_qualified_name + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` + * @type string $project + * Project where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * @type string $location + * Location where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The full name of the Google Cloud Platform resource the Data Catalog + * entry represents. For more information, see [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * Full names are case-sensitive. For example: + * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` + * + * Generated from protobuf field string linked_resource = 1; + * @return string + */ + public function getLinkedResource() + { + return $this->readOneof(1); + } + + public function hasLinkedResource() + { + return $this->hasOneof(1); + } + + /** + * The full name of the Google Cloud Platform resource the Data Catalog + * entry represents. For more information, see [Full Resource Name] + * (https://cloud.google.com/apis/design/resource_names#full_resource_name). + * Full names are case-sensitive. For example: + * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` + * + * Generated from protobuf field string linked_resource = 1; + * @param string $var + * @return $this + */ + public function setLinkedResource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The SQL name of the entry. SQL names are case-sensitive. + * Examples: + * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` + * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` + * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` + * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` + * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` + * Identifiers (`*_ID`) should comply with the + * [Lexical structure in Standard SQL] + * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). + * + * Generated from protobuf field string sql_resource = 3; + * @return string + */ + public function getSqlResource() + { + return $this->readOneof(3); + } + + public function hasSqlResource() + { + return $this->hasOneof(3); + } + + /** + * The SQL name of the entry. SQL names are case-sensitive. + * Examples: + * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` + * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` + * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` + * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` + * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` + * Identifiers (`*_ID`) should comply with the + * [Lexical structure in Standard SQL] + * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). + * + * Generated from protobuf field string sql_resource = 3; + * @param string $var + * @return $this + */ + public function setSqlResource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` + * + * Generated from protobuf field string fully_qualified_name = 5; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->readOneof(5); + } + + public function hasFullyQualifiedName() + { + return $this->hasOneof(5); + } + + /** + * [Fully Qualified Name + * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) + * of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` + * + * Generated from protobuf field string fully_qualified_name = 5; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Project where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string project = 6; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Project where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string project = 6; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Location where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string location = 7; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location where the lookup should be performed. Required to lookup + * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` + * using its `fully_qualified_name`. Ignored in other cases. + * + * Generated from protobuf field string location = 7; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * @return string + */ + public function getTargetName() + { + return $this->whichOneof("target_name"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ManagingSystem.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ManagingSystem.php new file mode 100644 index 000000000000..cb3d83bc4ae1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ManagingSystem.php @@ -0,0 +1,62 @@ +google.cloud.datacatalog.v1.ManagingSystem + */ +class ManagingSystem +{ + /** + * Default value + * + * Generated from protobuf enum MANAGING_SYSTEM_UNSPECIFIED = 0; + */ + const MANAGING_SYSTEM_UNSPECIFIED = 0; + /** + * Dataplex. + * + * Generated from protobuf enum MANAGING_SYSTEM_DATAPLEX = 1; + */ + const MANAGING_SYSTEM_DATAPLEX = 1; + /** + * Other + * + * Generated from protobuf enum MANAGING_SYSTEM_OTHER = 2; + */ + const MANAGING_SYSTEM_OTHER = 2; + + private static $valueToName = [ + self::MANAGING_SYSTEM_UNSPECIFIED => 'MANAGING_SYSTEM_UNSPECIFIED', + self::MANAGING_SYSTEM_DATAPLEX => 'MANAGING_SYSTEM_DATAPLEX', + self::MANAGING_SYSTEM_OTHER => 'MANAGING_SYSTEM_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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModelSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModelSpec.php new file mode 100644 index 000000000000..fe12fc42c3f7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModelSpec.php @@ -0,0 +1,76 @@ +google.cloud.datacatalog.v1.ModelSpec + */ +class ModelSpec extends \Google\Protobuf\Internal\Message +{ + protected $system_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\VertexModelSpec $vertex_model_spec + * Specification for vertex model resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Specification for vertex model resources. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; + * @return \Google\Cloud\DataCatalog\V1\VertexModelSpec|null + */ + public function getVertexModelSpec() + { + return $this->readOneof(1); + } + + public function hasVertexModelSpec() + { + return $this->hasOneof(1); + } + + /** + * Specification for vertex model resources. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; + * @param \Google\Cloud\DataCatalog\V1\VertexModelSpec $var + * @return $this + */ + public function setVertexModelSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\VertexModelSpec::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryContactsRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryContactsRequest.php new file mode 100644 index 000000000000..214f3fb6b0e9 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryContactsRequest.php @@ -0,0 +1,112 @@ +google.cloud.datacatalog.v1.ModifyEntryContactsRequest + */ +class ModifyEntryContactsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The new value for the Contacts. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $contacts = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the entry. + * @type \Google\Cloud\DataCatalog\V1\Contacts $contacts + * Required. The new value for the Contacts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_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 new value for the Contacts. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\Contacts|null + */ + public function getContacts() + { + return $this->contacts; + } + + public function hasContacts() + { + return isset($this->contacts); + } + + public function clearContacts() + { + unset($this->contacts); + } + + /** + * Required. The new value for the Contacts. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\Contacts $var + * @return $this + */ + public function setContacts($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Contacts::class); + $this->contacts = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryOverviewRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryOverviewRequest.php new file mode 100644 index 000000000000..31f931ef546f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ModifyEntryOverviewRequest.php @@ -0,0 +1,112 @@ +google.cloud.datacatalog.v1.ModifyEntryOverviewRequest + */ +class ModifyEntryOverviewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The new value for the Entry Overview. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_overview = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the entry. + * @type \Google\Cloud\DataCatalog\V1\EntryOverview $entry_overview + * Required. The new value for the Entry Overview. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the entry. + * + * Generated from protobuf field string name = 1 [(.google.api.field_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 new value for the Entry Overview. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\EntryOverview|null + */ + public function getEntryOverview() + { + return $this->entry_overview; + } + + public function hasEntryOverview() + { + return isset($this->entry_overview); + } + + public function clearEntryOverview() + { + unset($this->entry_overview); + } + + /** + * Required. The new value for the Entry Overview. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\EntryOverview $var + * @return $this + */ + public function setEntryOverview($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\EntryOverview::class); + $this->entry_overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PersonalDetails.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PersonalDetails.php new file mode 100644 index 000000000000..15b11371fec6 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PersonalDetails.php @@ -0,0 +1,111 @@ +google.cloud.datacatalog.v1.PersonalDetails + */ +class PersonalDetails extends \Google\Protobuf\Internal\Message +{ + /** + * True if the entry is starred by the user; false otherwise. + * + * Generated from protobuf field bool starred = 1; + */ + protected $starred = false; + /** + * Set if the entry is starred; unset otherwise. + * + * Generated from protobuf field .google.protobuf.Timestamp star_time = 2; + */ + protected $star_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $starred + * True if the entry is starred by the user; false otherwise. + * @type \Google\Protobuf\Timestamp $star_time + * Set if the entry is starred; unset otherwise. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * True if the entry is starred by the user; false otherwise. + * + * Generated from protobuf field bool starred = 1; + * @return bool + */ + public function getStarred() + { + return $this->starred; + } + + /** + * True if the entry is starred by the user; false otherwise. + * + * Generated from protobuf field bool starred = 1; + * @param bool $var + * @return $this + */ + public function setStarred($var) + { + GPBUtil::checkBool($var); + $this->starred = $var; + + return $this; + } + + /** + * Set if the entry is starred; unset otherwise. + * + * Generated from protobuf field .google.protobuf.Timestamp star_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStarTime() + { + return $this->star_time; + } + + public function hasStarTime() + { + return isset($this->star_time); + } + + public function clearStarTime() + { + unset($this->star_time); + } + + /** + * Set if the entry is starred; unset otherwise. + * + * Generated from protobuf field .google.protobuf.Timestamp star_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStarTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->star_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema.php new file mode 100644 index 000000000000..cfe389201252 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema.php @@ -0,0 +1,241 @@ +google.cloud.datacatalog.v1.PhysicalSchema + */ +class PhysicalSchema extends \Google\Protobuf\Internal\Message +{ + protected $schema; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\AvroSchema $avro + * Schema in Avro JSON format. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\ThriftSchema $thrift + * Schema in Thrift format. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\ProtobufSchema $protobuf + * Schema in protocol buffer format. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\ParquetSchema $parquet + * Marks a Parquet-encoded data source. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\OrcSchema $orc + * Marks an ORC-encoded data source. + * @type \Google\Cloud\DataCatalog\V1\PhysicalSchema\CsvSchema $csv + * Marks a CSV-encoded data source. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + + /** + * Schema in Avro JSON format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\AvroSchema|null + */ + public function getAvro() + { + return $this->readOneof(1); + } + + public function hasAvro() + { + return $this->hasOneof(1); + } + + /** + * Schema in Avro JSON format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\AvroSchema $var + * @return $this + */ + public function setAvro($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\AvroSchema::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Schema in Thrift format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\ThriftSchema|null + */ + public function getThrift() + { + return $this->readOneof(2); + } + + public function hasThrift() + { + return $this->hasOneof(2); + } + + /** + * Schema in Thrift format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\ThriftSchema $var + * @return $this + */ + public function setThrift($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\ThriftSchema::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Schema in protocol buffer format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\ProtobufSchema|null + */ + public function getProtobuf() + { + return $this->readOneof(3); + } + + public function hasProtobuf() + { + return $this->hasOneof(3); + } + + /** + * Schema in protocol buffer format. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\ProtobufSchema $var + * @return $this + */ + public function setProtobuf($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\ProtobufSchema::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Marks a Parquet-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\ParquetSchema|null + */ + public function getParquet() + { + return $this->readOneof(4); + } + + public function hasParquet() + { + return $this->hasOneof(4); + } + + /** + * Marks a Parquet-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\ParquetSchema $var + * @return $this + */ + public function setParquet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\ParquetSchema::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Marks an ORC-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\OrcSchema|null + */ + public function getOrc() + { + return $this->readOneof(5); + } + + public function hasOrc() + { + return $this->hasOneof(5); + } + + /** + * Marks an ORC-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\OrcSchema $var + * @return $this + */ + public function setOrc($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\OrcSchema::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Marks a CSV-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; + * @return \Google\Cloud\DataCatalog\V1\PhysicalSchema\CsvSchema|null + */ + public function getCsv() + { + return $this->readOneof(6); + } + + public function hasCsv() + { + return $this->hasOneof(6); + } + + /** + * Marks a CSV-encoded data source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; + * @param \Google\Cloud\DataCatalog\V1\PhysicalSchema\CsvSchema $var + * @return $this + */ + public function setCsv($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PhysicalSchema\CsvSchema::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getSchema() + { + return $this->whichOneof("schema"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/AvroSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/AvroSchema.php new file mode 100644 index 000000000000..7ff45e2f48dd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/AvroSchema.php @@ -0,0 +1,70 @@ +google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + */ +class AvroSchema extends \Google\Protobuf\Internal\Message +{ + /** + * JSON source of the Avro schema. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * JSON source of the Avro schema. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + + /** + * JSON source of the Avro schema. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * JSON source of the Avro schema. + * + * 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(AvroSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_AvroSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/CsvSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/CsvSchema.php new file mode 100644 index 000000000000..6df505123b75 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/CsvSchema.php @@ -0,0 +1,36 @@ +google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + */ +class CsvSchema extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CsvSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_CsvSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/OrcSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/OrcSchema.php new file mode 100644 index 000000000000..3537fd33c759 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/OrcSchema.php @@ -0,0 +1,36 @@ +google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + */ +class OrcSchema extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OrcSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_OrcSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ParquetSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ParquetSchema.php new file mode 100644 index 000000000000..3a2aa3425642 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ParquetSchema.php @@ -0,0 +1,36 @@ +google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + */ +class ParquetSchema extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ParquetSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_ParquetSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ProtobufSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ProtobufSchema.php new file mode 100644 index 000000000000..a4f253051183 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ProtobufSchema.php @@ -0,0 +1,70 @@ +google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + */ +class ProtobufSchema extends \Google\Protobuf\Internal\Message +{ + /** + * Protocol buffer source of the schema. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Protocol buffer source of the schema. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + + /** + * Protocol buffer source of the schema. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Protocol buffer source of the schema. + * + * 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(ProtobufSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_ProtobufSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ThriftSchema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ThriftSchema.php new file mode 100644 index 000000000000..58bbfae5de28 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PhysicalSchema/ThriftSchema.php @@ -0,0 +1,70 @@ +google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + */ +class ThriftSchema extends \Google\Protobuf\Internal\Message +{ + /** + * Thrift IDL source of the schema. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Thrift IDL source of the schema. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\PhysicalSchema::initOnce(); + parent::__construct($data); + } + + /** + * Thrift IDL source of the schema. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Thrift IDL source of the schema. + * + * 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(ThriftSchema::class, \Google\Cloud\DataCatalog\V1\PhysicalSchema_ThriftSchema::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PolicyTag.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PolicyTag.php new file mode 100644 index 000000000000..afb17e3ef1a4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/PolicyTag.php @@ -0,0 +1,255 @@ +google.cloud.datacatalog.v1.PolicyTag + */ +class PolicyTag extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of this policy tag in the URL format. + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. User-defined name of this policy tag. + * The name can't start or end with spaces and must be unique within the + * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes + * and spaces, and be at most 200 bytes long when encoded in UTF-8. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Description of this policy tag. If not set, defaults to empty. + * The description must contain only Unicode characters, + * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes + * long when encoded in UTF-8. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Resource name of this policy tag's parent policy tag. If empty, this is a + * top level tag. If not set, defaults to an empty string. + * For example, for the "LatLong" policy tag in the example above, this field + * contains the resource name of the "Geolocation" policy tag, and, for + * "Geolocation", this field is empty. + * + * Generated from protobuf field string parent_policy_tag = 4; + */ + protected $parent_policy_tag = ''; + /** + * Output only. Resource names of child policy tags of this policy tag. + * + * Generated from protobuf field repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $child_policy_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of this policy tag in the URL format. + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * @type string $display_name + * Required. User-defined name of this policy tag. + * The name can't start or end with spaces and must be unique within the + * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes + * and spaces, and be at most 200 bytes long when encoded in UTF-8. + * @type string $description + * Description of this policy tag. If not set, defaults to empty. + * The description must contain only Unicode characters, + * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes + * long when encoded in UTF-8. + * @type string $parent_policy_tag + * Resource name of this policy tag's parent policy tag. If empty, this is a + * top level tag. If not set, defaults to an empty string. + * For example, for the "LatLong" policy tag in the example above, this field + * contains the resource name of the "Geolocation" policy tag, and, for + * "Geolocation", this field is empty. + * @type array|\Google\Protobuf\Internal\RepeatedField $child_policy_tags + * Output only. Resource names of child policy tags of this policy tag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of this policy tag in the URL format. + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of this policy tag in the URL format. + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * + * 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. User-defined name of this policy tag. + * The name can't start or end with spaces and must be unique within the + * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes + * and spaces, and be at most 200 bytes long when encoded in UTF-8. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User-defined name of this policy tag. + * The name can't start or end with spaces and must be unique within the + * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes + * and spaces, and be at most 200 bytes long when encoded in UTF-8. + * + * 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; + } + + /** + * Description of this policy tag. If not set, defaults to empty. + * The description must contain only Unicode characters, + * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes + * long when encoded in UTF-8. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of this policy tag. If not set, defaults to empty. + * The description must contain only Unicode characters, + * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes + * long when encoded in UTF-8. + * + * 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; + } + + /** + * Resource name of this policy tag's parent policy tag. If empty, this is a + * top level tag. If not set, defaults to an empty string. + * For example, for the "LatLong" policy tag in the example above, this field + * contains the resource name of the "Geolocation" policy tag, and, for + * "Geolocation", this field is empty. + * + * Generated from protobuf field string parent_policy_tag = 4; + * @return string + */ + public function getParentPolicyTag() + { + return $this->parent_policy_tag; + } + + /** + * Resource name of this policy tag's parent policy tag. If empty, this is a + * top level tag. If not set, defaults to an empty string. + * For example, for the "LatLong" policy tag in the example above, this field + * contains the resource name of the "Geolocation" policy tag, and, for + * "Geolocation", this field is empty. + * + * Generated from protobuf field string parent_policy_tag = 4; + * @param string $var + * @return $this + */ + public function setParentPolicyTag($var) + { + GPBUtil::checkString($var, True); + $this->parent_policy_tag = $var; + + return $this; + } + + /** + * Output only. Resource names of child policy tags of this policy tag. + * + * Generated from protobuf field repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChildPolicyTags() + { + return $this->child_policy_tags; + } + + /** + * Output only. Resource names of child policy tags of this policy tag. + * + * Generated from protobuf field repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChildPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->child_policy_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata.php new file mode 100644 index 000000000000..2a72e0e8e924 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata.php @@ -0,0 +1,107 @@ +google.cloud.datacatalog.v1.ReconcileTagsMetadata + */ +class ReconcileTagsMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * State of the reconciliation operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; + */ + protected $state = 0; + /** + * Maps the name of each tagged column (or empty string for a + * sole entry) to tagging operation [status][google.rpc.Status]. + * + * Generated from protobuf field map errors = 2; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * State of the reconciliation operation. + * @type array|\Google\Protobuf\Internal\MapField $errors + * Maps the name of each tagged column (or empty string for a + * sole entry) to tagging operation [status][google.rpc.Status]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * State of the reconciliation operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of the reconciliation operation. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ReconcileTagsMetadata\ReconciliationState::class); + $this->state = $var; + + return $this; + } + + /** + * Maps the name of each tagged column (or empty string for a + * sole entry) to tagging operation [status][google.rpc.Status]. + * + * Generated from protobuf field map errors = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Maps the name of each tagged column (or empty string for a + * sole entry) to tagging operation [status][google.rpc.Status]. + * + * Generated from protobuf field map errors = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata/ReconciliationState.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata/ReconciliationState.php new file mode 100644 index 000000000000..2f40d719bcfd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsMetadata/ReconciliationState.php @@ -0,0 +1,71 @@ +google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState + */ +class ReconciliationState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum RECONCILIATION_STATE_UNSPECIFIED = 0; + */ + const RECONCILIATION_STATE_UNSPECIFIED = 0; + /** + * The reconciliation has been queued and awaits for execution. + * + * Generated from protobuf enum RECONCILIATION_QUEUED = 1; + */ + const RECONCILIATION_QUEUED = 1; + /** + * The reconciliation is in progress. + * + * Generated from protobuf enum RECONCILIATION_IN_PROGRESS = 2; + */ + const RECONCILIATION_IN_PROGRESS = 2; + /** + * The reconciliation has been finished. + * + * Generated from protobuf enum RECONCILIATION_DONE = 3; + */ + const RECONCILIATION_DONE = 3; + + private static $valueToName = [ + self::RECONCILIATION_STATE_UNSPECIFIED => 'RECONCILIATION_STATE_UNSPECIFIED', + self::RECONCILIATION_QUEUED => 'RECONCILIATION_QUEUED', + self::RECONCILIATION_IN_PROGRESS => 'RECONCILIATION_IN_PROGRESS', + self::RECONCILIATION_DONE => 'RECONCILIATION_DONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReconciliationState::class, \Google\Cloud\DataCatalog\V1\ReconcileTagsMetadata_ReconciliationState::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsRequest.php new file mode 100644 index 000000000000..fbc95fd3d4eb --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsRequest.php @@ -0,0 +1,190 @@ +google.cloud.datacatalog.v1.ReconcileTagsRequest + */ +class ReconcileTagsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The name of the tag template, which is used for reconciliation. + * + * Generated from protobuf field string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $tag_template = ''; + /** + * If set to `true`, deletes entry tags related to a tag template + * not listed in the tags source from an entry. If set to `false`, + * unlisted tags are retained. + * + * Generated from protobuf field bool force_delete_missing = 3; + */ + protected $force_delete_missing = false; + /** + * A list of tags to apply to an entry. A tag can specify a + * tag template, which must be the template specified in the + * `ReconcileTagsRequest`. + * The sole entry and each of its columns must be mentioned at most once. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 4; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged. + * @type string $tag_template + * Required. The name of the tag template, which is used for reconciliation. + * @type bool $force_delete_missing + * If set to `true`, deletes entry tags related to a tag template + * not listed in the tags source from an entry. If set to `false`, + * unlisted tags are retained. + * @type array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $tags + * A list of tags to apply to an entry. A tag can specify a + * tag template, which must be the template specified in the + * `ReconcileTagsRequest`. + * The sole entry and each of its columns must be mentioned at most once. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged. + * + * Generated 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 [Entry][google.cloud.datacatalog.v1.Entry] to be tagged. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 tag template, which is used for reconciliation. + * + * Generated from protobuf field string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTagTemplate() + { + return $this->tag_template; + } + + /** + * Required. The name of the tag template, which is used for reconciliation. + * + * Generated from protobuf field string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTagTemplate($var) + { + GPBUtil::checkString($var, True); + $this->tag_template = $var; + + return $this; + } + + /** + * If set to `true`, deletes entry tags related to a tag template + * not listed in the tags source from an entry. If set to `false`, + * unlisted tags are retained. + * + * Generated from protobuf field bool force_delete_missing = 3; + * @return bool + */ + public function getForceDeleteMissing() + { + return $this->force_delete_missing; + } + + /** + * If set to `true`, deletes entry tags related to a tag template + * not listed in the tags source from an entry. If set to `false`, + * unlisted tags are retained. + * + * Generated from protobuf field bool force_delete_missing = 3; + * @param bool $var + * @return $this + */ + public function setForceDeleteMissing($var) + { + GPBUtil::checkBool($var); + $this->force_delete_missing = $var; + + return $this; + } + + /** + * A list of tags to apply to an entry. A tag can specify a + * tag template, which must be the template specified in the + * `ReconcileTagsRequest`. + * The sole entry and each of its columns must be mentioned at most once. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * A list of tags to apply to an entry. A tag can specify a + * tag template, which must be the template specified in the + * `ReconcileTagsRequest`. + * The sole entry and each of its columns must be mentioned at most once. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag tags = 4; + * @param array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsResponse.php new file mode 100644 index 000000000000..7847c76e8692 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReconcileTagsResponse.php @@ -0,0 +1,137 @@ +google.cloud.datacatalog.v1.ReconcileTagsResponse + */ +class ReconcileTagsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Number of tags created in the request. + * + * Generated from protobuf field int64 created_tags_count = 1; + */ + protected $created_tags_count = 0; + /** + * Number of tags updated in the request. + * + * Generated from protobuf field int64 updated_tags_count = 2; + */ + protected $updated_tags_count = 0; + /** + * Number of tags deleted in the request. + * + * Generated from protobuf field int64 deleted_tags_count = 3; + */ + protected $deleted_tags_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $created_tags_count + * Number of tags created in the request. + * @type int|string $updated_tags_count + * Number of tags updated in the request. + * @type int|string $deleted_tags_count + * Number of tags deleted in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Number of tags created in the request. + * + * Generated from protobuf field int64 created_tags_count = 1; + * @return int|string + */ + public function getCreatedTagsCount() + { + return $this->created_tags_count; + } + + /** + * Number of tags created in the request. + * + * Generated from protobuf field int64 created_tags_count = 1; + * @param int|string $var + * @return $this + */ + public function setCreatedTagsCount($var) + { + GPBUtil::checkInt64($var); + $this->created_tags_count = $var; + + return $this; + } + + /** + * Number of tags updated in the request. + * + * Generated from protobuf field int64 updated_tags_count = 2; + * @return int|string + */ + public function getUpdatedTagsCount() + { + return $this->updated_tags_count; + } + + /** + * Number of tags updated in the request. + * + * Generated from protobuf field int64 updated_tags_count = 2; + * @param int|string $var + * @return $this + */ + public function setUpdatedTagsCount($var) + { + GPBUtil::checkInt64($var); + $this->updated_tags_count = $var; + + return $this; + } + + /** + * Number of tags deleted in the request. + * + * Generated from protobuf field int64 deleted_tags_count = 3; + * @return int|string + */ + public function getDeletedTagsCount() + { + return $this->deleted_tags_count; + } + + /** + * Number of tags deleted in the request. + * + * Generated from protobuf field int64 deleted_tags_count = 3; + * @param int|string $var + * @return $this + */ + public function setDeletedTagsCount($var) + { + GPBUtil::checkInt64($var); + $this->deleted_tags_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldEnumValueRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldEnumValueRequest.php new file mode 100644 index 000000000000..2356d1f0e0a7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldEnumValueRequest.php @@ -0,0 +1,123 @@ +google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest + */ +class RenameTagTemplateFieldEnumValueRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the enum field value. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The new display name of the enum value. For example, + * `my_new_enum_value`. + * + * Generated from protobuf field string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_enum_value_display_name = ''; + + /** + * @param string $name Required. The name of the enum field value. Please see + * {@see DataCatalogClient::tagTemplateFieldEnumValueName()} for help formatting this field. + * @param string $newEnumValueDisplayName Required. The new display name of the enum value. For example, + * `my_new_enum_value`. + * + * @return \Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldEnumValueRequest + * + * @experimental + */ + public static function build(string $name, string $newEnumValueDisplayName): self + { + return (new self()) + ->setName($name) + ->setNewEnumValueDisplayName($newEnumValueDisplayName); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the enum field value. + * @type string $new_enum_value_display_name + * Required. The new display name of the enum value. For example, + * `my_new_enum_value`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the enum field value. + * + * Generated from 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 enum field value. + * + * Generated from protobuf field string name = 1 [(.google.api.field_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 new display name of the enum value. For example, + * `my_new_enum_value`. + * + * Generated from protobuf field string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewEnumValueDisplayName() + { + return $this->new_enum_value_display_name; + } + + /** + * Required. The new display name of the enum value. For example, + * `my_new_enum_value`. + * + * Generated from protobuf field string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewEnumValueDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->new_enum_value_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldRequest.php new file mode 100644 index 000000000000..385fb3e2b59c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RenameTagTemplateFieldRequest.php @@ -0,0 +1,123 @@ +google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest + */ +class RenameTagTemplateFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag template field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The new ID of this tag template field. For example, + * `my_new_field`. + * + * Generated from protobuf field string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_tag_template_field_id = ''; + + /** + * @param string $name Required. The name of the tag template field. Please see + * {@see DataCatalogClient::tagTemplateFieldName()} for help formatting this field. + * @param string $newTagTemplateFieldId Required. The new ID of this tag template field. For example, + * `my_new_field`. + * + * @return \Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldRequest + * + * @experimental + */ + public static function build(string $name, string $newTagTemplateFieldId): self + { + return (new self()) + ->setName($name) + ->setNewTagTemplateFieldId($newTagTemplateFieldId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the tag template field. + * @type string $new_tag_template_field_id + * Required. The new ID of this tag template field. For example, + * `my_new_field`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag template 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 tag template 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; + } + + /** + * Required. The new ID of this tag template field. For example, + * `my_new_field`. + * + * Generated from protobuf field string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewTagTemplateFieldId() + { + return $this->new_tag_template_field_id; + } + + /** + * Required. The new ID of this tag template field. For example, + * `my_new_field`. + * + * Generated from protobuf field string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewTagTemplateFieldId($var) + { + GPBUtil::checkString($var, True); + $this->new_tag_template_field_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReplaceTaxonomyRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReplaceTaxonomyRequest.php new file mode 100644 index 000000000000..67350fac7799 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ReplaceTaxonomyRequest.php @@ -0,0 +1,112 @@ +google.cloud.datacatalog.v1.ReplaceTaxonomyRequest + */ +class ReplaceTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the taxonomy to update. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Taxonomy to update along with its child policy tags. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $serialized_taxonomy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the taxonomy to update. + * @type \Google\Cloud\DataCatalog\V1\SerializedTaxonomy $serialized_taxonomy + * Required. Taxonomy to update along with its child policy tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the taxonomy to update. + * + * Generated 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 taxonomy to update. + * + * Generated from protobuf field string name = 1 [(.google.api.field_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. Taxonomy to update along with its child policy tags. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\SerializedTaxonomy|null + */ + public function getSerializedTaxonomy() + { + return $this->serialized_taxonomy; + } + + public function hasSerializedTaxonomy() + { + return isset($this->serialized_taxonomy); + } + + public function clearSerializedTaxonomy() + { + unset($this->serialized_taxonomy); + } + + /** + * Required. Taxonomy to update along with its child policy tags. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\SerializedTaxonomy $var + * @return $this + */ + public function setSerializedTaxonomy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SerializedTaxonomy::class); + $this->serialized_taxonomy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec.php new file mode 100644 index 000000000000..8c71b088c8ba --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec.php @@ -0,0 +1,262 @@ +google.cloud.datacatalog.v1.RoutineSpec + */ +class RoutineSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the routine. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; + */ + protected $routine_type = 0; + /** + * The language the routine is written in. The exact value depends on the + * source system. For BigQuery routines, possible values are: + * * `SQL` + * * `JAVASCRIPT` + * + * Generated from protobuf field string language = 2; + */ + protected $language = ''; + /** + * Arguments of the routine. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; + */ + private $routine_arguments; + /** + * Return type of the argument. The exact value depends on the source system + * and the language. + * + * Generated from protobuf field string return_type = 4; + */ + protected $return_type = ''; + /** + * The body of the routine. + * + * Generated from protobuf field string definition_body = 5; + */ + protected $definition_body = ''; + protected $system_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $routine_type + * The type of the routine. + * @type string $language + * The language the routine is written in. The exact value depends on the + * source system. For BigQuery routines, possible values are: + * * `SQL` + * * `JAVASCRIPT` + * @type array<\Google\Cloud\DataCatalog\V1\RoutineSpec\Argument>|\Google\Protobuf\Internal\RepeatedField $routine_arguments + * Arguments of the routine. + * @type string $return_type + * Return type of the argument. The exact value depends on the source system + * and the language. + * @type string $definition_body + * The body of the routine. + * @type \Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec $bigquery_routine_spec + * Fields specific for BigQuery routines. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The type of the routine. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; + * @return int + */ + public function getRoutineType() + { + return $this->routine_type; + } + + /** + * The type of the routine. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; + * @param int $var + * @return $this + */ + public function setRoutineType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\RoutineSpec\RoutineType::class); + $this->routine_type = $var; + + return $this; + } + + /** + * The language the routine is written in. The exact value depends on the + * source system. For BigQuery routines, possible values are: + * * `SQL` + * * `JAVASCRIPT` + * + * Generated from protobuf field string language = 2; + * @return string + */ + public function getLanguage() + { + return $this->language; + } + + /** + * The language the routine is written in. The exact value depends on the + * source system. For BigQuery routines, possible values are: + * * `SQL` + * * `JAVASCRIPT` + * + * Generated from protobuf field string language = 2; + * @param string $var + * @return $this + */ + public function setLanguage($var) + { + GPBUtil::checkString($var, True); + $this->language = $var; + + return $this; + } + + /** + * Arguments of the routine. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoutineArguments() + { + return $this->routine_arguments; + } + + /** + * Arguments of the routine. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; + * @param array<\Google\Cloud\DataCatalog\V1\RoutineSpec\Argument>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoutineArguments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\RoutineSpec\Argument::class); + $this->routine_arguments = $arr; + + return $this; + } + + /** + * Return type of the argument. The exact value depends on the source system + * and the language. + * + * Generated from protobuf field string return_type = 4; + * @return string + */ + public function getReturnType() + { + return $this->return_type; + } + + /** + * Return type of the argument. The exact value depends on the source system + * and the language. + * + * Generated from protobuf field string return_type = 4; + * @param string $var + * @return $this + */ + public function setReturnType($var) + { + GPBUtil::checkString($var, True); + $this->return_type = $var; + + return $this; + } + + /** + * The body of the routine. + * + * Generated from protobuf field string definition_body = 5; + * @return string + */ + public function getDefinitionBody() + { + return $this->definition_body; + } + + /** + * The body of the routine. + * + * Generated from protobuf field string definition_body = 5; + * @param string $var + * @return $this + */ + public function setDefinitionBody($var) + { + GPBUtil::checkString($var, True); + $this->definition_body = $var; + + return $this; + } + + /** + * Fields specific for BigQuery routines. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; + * @return \Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec|null + */ + public function getBigqueryRoutineSpec() + { + return $this->readOneof(6); + } + + public function hasBigqueryRoutineSpec() + { + return $this->hasOneof(6); + } + + /** + * Fields specific for BigQuery routines. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; + * @param \Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec $var + * @return $this + */ + public function setBigqueryRoutineSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument.php new file mode 100644 index 000000000000..8abcca2b8441 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument.php @@ -0,0 +1,146 @@ +google.cloud.datacatalog.v1.RoutineSpec.Argument + */ +class Argument extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the argument. A return argument of a function might not have + * a name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Specifies whether the argument is input or output. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; + */ + protected $mode = 0; + /** + * Type of the argument. The exact value depends on the source system and + * the language. + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the argument. A return argument of a function might not have + * a name. + * @type int $mode + * Specifies whether the argument is input or output. + * @type string $type + * Type of the argument. The exact value depends on the source system and + * the language. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The name of the argument. A return argument of a function might not have + * a name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the argument. A return argument of a function might not have + * a 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; + } + + /** + * Specifies whether the argument is input or output. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Specifies whether the argument is input or output. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\RoutineSpec\Argument\Mode::class); + $this->mode = $var; + + return $this; + } + + /** + * Type of the argument. The exact value depends on the source system and + * the language. + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the argument. The exact value depends on the source system and + * the language. + * + * 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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Argument::class, \Google\Cloud\DataCatalog\V1\RoutineSpec_Argument::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument/Mode.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument/Mode.php new file mode 100644 index 000000000000..894ff07fc297 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/Argument/Mode.php @@ -0,0 +1,71 @@ +google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode + */ +class Mode +{ + /** + * Unspecified mode. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * The argument is input-only. + * + * Generated from protobuf enum IN = 1; + */ + const IN = 1; + /** + * The argument is output-only. + * + * Generated from protobuf enum OUT = 2; + */ + const OUT = 2; + /** + * The argument is both an input and an output. + * + * Generated from protobuf enum INOUT = 3; + */ + const INOUT = 3; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::IN => 'IN', + self::OUT => 'OUT', + self::INOUT => 'INOUT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Mode::class, \Google\Cloud\DataCatalog\V1\RoutineSpec_Argument_Mode::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/RoutineType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/RoutineType.php new file mode 100644 index 000000000000..8778af7e281d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/RoutineSpec/RoutineType.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.v1.RoutineSpec.RoutineType + */ +class RoutineType +{ + /** + * Unspecified type. + * + * Generated from protobuf enum ROUTINE_TYPE_UNSPECIFIED = 0; + */ + const ROUTINE_TYPE_UNSPECIFIED = 0; + /** + * Non-builtin permanent scalar function. + * + * Generated from protobuf enum SCALAR_FUNCTION = 1; + */ + const SCALAR_FUNCTION = 1; + /** + * Stored procedure. + * + * Generated from protobuf enum PROCEDURE = 2; + */ + const PROCEDURE = 2; + + private static $valueToName = [ + self::ROUTINE_TYPE_UNSPECIFIED => 'ROUTINE_TYPE_UNSPECIFIED', + self::SCALAR_FUNCTION => 'SCALAR_FUNCTION', + self::PROCEDURE => 'PROCEDURE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoutineType::class, \Google\Cloud\DataCatalog\V1\RoutineSpec_RoutineType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Schema.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Schema.php new file mode 100644 index 000000000000..6596e4bdfdf4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Schema.php @@ -0,0 +1,75 @@ +google.cloud.datacatalog.v1.Schema + */ +class Schema extends \Google\Protobuf\Internal\Message +{ + /** + * The unified GoogleSQL-like schema of columns. + * The overall maximum number of columns and nested columns is 10,000. + * The maximum nested depth is 15 levels. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; + */ + private $columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\ColumnSchema>|\Google\Protobuf\Internal\RepeatedField $columns + * The unified GoogleSQL-like schema of columns. + * The overall maximum number of columns and nested columns is 10,000. + * The maximum nested depth is 15 levels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Schema::initOnce(); + parent::__construct($data); + } + + /** + * The unified GoogleSQL-like schema of columns. + * The overall maximum number of columns and nested columns is 10,000. + * The maximum nested depth is 15 levels. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * The unified GoogleSQL-like schema of columns. + * The overall maximum number of columns and nested columns is 10,000. + * The maximum nested depth is 15 levels. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; + * @param array<\Google\Cloud\DataCatalog\V1\ColumnSchema>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\ColumnSchema::class); + $this->columns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest.php new file mode 100644 index 000000000000..263700dffc14 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest.php @@ -0,0 +1,418 @@ +google.cloud.datacatalog.v1.SearchCatalogRequest + */ +class SearchCatalogRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The scope of this search request. + * The `scope` is invalid if `include_org_ids`, `include_project_ids` are + * empty AND `include_gcp_public_datasets` is set to `false`. In this case, + * the request returns an error. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scope = null; + /** + * Optional. The query string with a minimum of 3 characters and specific + * syntax. For more information, see [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * An empty query string returns all data assets (in the specified scope) + * that you have access to. + * A query string can be a simple `xyz` or qualified by predicates: + * * `name:x` + * * `column:y` + * * `description:z` + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query = ''; + /** + * Upper bound on the number of results you can get in a single response. + * Can't be negative or 0, defaults to 10 in this case. + * The maximum number is 1000. If exceeded, throws an "invalid argument" + * exception. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Optional. Pagination token that, if specified, returns the next page of + * search results. If empty, returns the first page. + * This token is returned in the + * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] + * field of the response to a previous + * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Specifies the order of results. + * Currently supported case-sensitive values are: + * * `relevance` that can only be descending + * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default + * * `default` that can only be descending + * Search queries don't guarantee full recall. Results that match your query + * might not be returned, even in subsequent result pages. Additionally, + * returned (and not returned) results can vary if you repeat search queries. + * If you are experiencing recall issues and you don't have to fetch the + * results in any specific order, consider setting this parameter to + * `default`. + * If this parameter is omitted, it defaults to the descending `relevance`. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + /** + * Optional. If set, use searchAll permission granted on organizations from + * `include_org_ids` and projects from `include_project_ids` instead of the + * fine grained per resource permissions when filtering the search results. + * The only allowed `order_by` criteria for admin_search mode is `default`. + * Using this flags guarantees a full recall of the search results. + * + * Generated from protobuf field bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $admin_search = false; + + /** + * @param \Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope $scope Required. The scope of this search request. + * + * The `scope` is invalid if `include_org_ids`, `include_project_ids` are + * empty AND `include_gcp_public_datasets` is set to `false`. In this case, + * the request returns an error. + * @param string $query Optional. The query string with a minimum of 3 characters and specific + * syntax. For more information, see [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * + * An empty query string returns all data assets (in the specified scope) + * that you have access to. + * + * A query string can be a simple `xyz` or qualified by predicates: + * + * * `name:x` + * * `column:y` + * * `description:z` + * + * @return \Google\Cloud\DataCatalog\V1\SearchCatalogRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope $scope, string $query): self + { + return (new self()) + ->setScope($scope) + ->setQuery($query); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope $scope + * Required. The scope of this search request. + * The `scope` is invalid if `include_org_ids`, `include_project_ids` are + * empty AND `include_gcp_public_datasets` is set to `false`. In this case, + * the request returns an error. + * @type string $query + * Optional. The query string with a minimum of 3 characters and specific + * syntax. For more information, see [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * An empty query string returns all data assets (in the specified scope) + * that you have access to. + * A query string can be a simple `xyz` or qualified by predicates: + * * `name:x` + * * `column:y` + * * `description:z` + * @type int $page_size + * Upper bound on the number of results you can get in a single response. + * Can't be negative or 0, defaults to 10 in this case. + * The maximum number is 1000. If exceeded, throws an "invalid argument" + * exception. + * @type string $page_token + * Optional. Pagination token that, if specified, returns the next page of + * search results. If empty, returns the first page. + * This token is returned in the + * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] + * field of the response to a previous + * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] + * call. + * @type string $order_by + * Specifies the order of results. + * Currently supported case-sensitive values are: + * * `relevance` that can only be descending + * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default + * * `default` that can only be descending + * Search queries don't guarantee full recall. Results that match your query + * might not be returned, even in subsequent result pages. Additionally, + * returned (and not returned) results can vary if you repeat search queries. + * If you are experiencing recall issues and you don't have to fetch the + * results in any specific order, consider setting this parameter to + * `default`. + * If this parameter is omitted, it defaults to the descending `relevance`. + * @type bool $admin_search + * Optional. If set, use searchAll permission granted on organizations from + * `include_org_ids` and projects from `include_project_ids` instead of the + * fine grained per resource permissions when filtering the search results. + * The only allowed `order_by` criteria for admin_search mode is `default`. + * Using this flags guarantees a full recall of the search results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The scope of this search request. + * The `scope` is invalid if `include_org_ids`, `include_project_ids` are + * empty AND `include_gcp_public_datasets` is set to `false`. In this case, + * the request returns an error. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope|null + */ + public function getScope() + { + return $this->scope; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * Required. The scope of this search request. + * The `scope` is invalid if `include_org_ids`, `include_project_ids` are + * empty AND `include_gcp_public_datasets` is set to `false`. In this case, + * the request returns an error. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SearchCatalogRequest\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. The query string with a minimum of 3 characters and specific + * syntax. For more information, see [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * An empty query string returns all data assets (in the specified scope) + * that you have access to. + * A query string can be a simple `xyz` or qualified by predicates: + * * `name:x` + * * `column:y` + * * `description:z` + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Optional. The query string with a minimum of 3 characters and specific + * syntax. For more information, see [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * An empty query string returns all data assets (in the specified scope) + * that you have access to. + * A query string can be a simple `xyz` or qualified by predicates: + * * `name:x` + * * `column:y` + * * `description:z` + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Upper bound on the number of results you can get in a single response. + * Can't be negative or 0, defaults to 10 in this case. + * The maximum number is 1000. If exceeded, throws an "invalid argument" + * exception. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Upper bound on the number of results you can get in a single response. + * Can't be negative or 0, defaults to 10 in this case. + * The maximum number is 1000. If exceeded, throws an "invalid argument" + * exception. + * + * 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. Pagination token that, if specified, returns the next page of + * search results. If empty, returns the first page. + * This token is returned in the + * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] + * field of the response to a previous + * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] + * call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Pagination token that, if specified, returns the next page of + * search results. If empty, returns the first page. + * This token is returned in the + * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] + * field of the response to a previous + * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] + * 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; + } + + /** + * Specifies the order of results. + * Currently supported case-sensitive values are: + * * `relevance` that can only be descending + * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default + * * `default` that can only be descending + * Search queries don't guarantee full recall. Results that match your query + * might not be returned, even in subsequent result pages. Additionally, + * returned (and not returned) results can vary if you repeat search queries. + * If you are experiencing recall issues and you don't have to fetch the + * results in any specific order, consider setting this parameter to + * `default`. + * If this parameter is omitted, it defaults to the descending `relevance`. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Specifies the order of results. + * Currently supported case-sensitive values are: + * * `relevance` that can only be descending + * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default + * * `default` that can only be descending + * Search queries don't guarantee full recall. Results that match your query + * might not be returned, even in subsequent result pages. Additionally, + * returned (and not returned) results can vary if you repeat search queries. + * If you are experiencing recall issues and you don't have to fetch the + * results in any specific order, consider setting this parameter to + * `default`. + * If this parameter is omitted, it defaults to the descending `relevance`. + * + * 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; + } + + /** + * Optional. If set, use searchAll permission granted on organizations from + * `include_org_ids` and projects from `include_project_ids` instead of the + * fine grained per resource permissions when filtering the search results. + * The only allowed `order_by` criteria for admin_search mode is `default`. + * Using this flags guarantees a full recall of the search results. + * + * Generated from protobuf field bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAdminSearch() + { + return $this->admin_search; + } + + /** + * Optional. If set, use searchAll permission granted on organizations from + * `include_org_ids` and projects from `include_project_ids` instead of the + * fine grained per resource permissions when filtering the search results. + * The only allowed `order_by` criteria for admin_search mode is `default`. + * Using this flags guarantees a full recall of the search results. + * + * Generated from protobuf field bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAdminSearch($var) + { + GPBUtil::checkBool($var); + $this->admin_search = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest/Scope.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest/Scope.php new file mode 100644 index 000000000000..a35f47cccbff --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogRequest/Scope.php @@ -0,0 +1,313 @@ +google.cloud.datacatalog.v1.SearchCatalogRequest.Scope + */ +class Scope extends \Google\Protobuf\Internal\Message +{ + /** + * The list of organization IDs to search within. + * To find your organization ID, follow the steps from + * [Creating and managing organizations] + * (/resource-manager/docs/creating-managing-organization). + * + * Generated from protobuf field repeated string include_org_ids = 2; + */ + private $include_org_ids; + /** + * The list of project IDs to search within. + * For more information on the distinction between project names, IDs, and + * numbers, see [Projects](/docs/overview/#projects). + * + * Generated from protobuf field repeated string include_project_ids = 3; + */ + private $include_project_ids; + /** + * If `true`, include Google Cloud public datasets in + * search results. By default, they are excluded. + * See [Google Cloud Public Datasets](/public-datasets) for more + * information. + * + * Generated from protobuf field bool include_gcp_public_datasets = 7; + */ + protected $include_gcp_public_datasets = false; + /** + * Optional. The list of locations to search within. If empty, all locations + * are searched. + * Returns an error if any location in the list isn't one of the [Supported + * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). + * If a location is unreachable, its name is returned in the + * `SearchCatalogResponse.unreachable` field. To get additional information + * on the error, repeat the search request and set the location name as the + * value of this parameter. + * + * Generated from protobuf field repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $restricted_locations; + /** + * Optional. If `true`, search only among starred entries. + * By default, all results are returned, starred or not. + * + * Generated from protobuf field bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $starred_only = false; + /** + * Optional. This field is deprecated. The search mechanism for public and + * private tag templates is the same. + * + * Generated from protobuf field bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $include_public_tag_templates = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $include_org_ids + * The list of organization IDs to search within. + * To find your organization ID, follow the steps from + * [Creating and managing organizations] + * (/resource-manager/docs/creating-managing-organization). + * @type array|\Google\Protobuf\Internal\RepeatedField $include_project_ids + * The list of project IDs to search within. + * For more information on the distinction between project names, IDs, and + * numbers, see [Projects](/docs/overview/#projects). + * @type bool $include_gcp_public_datasets + * If `true`, include Google Cloud public datasets in + * search results. By default, they are excluded. + * See [Google Cloud Public Datasets](/public-datasets) for more + * information. + * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_locations + * Optional. The list of locations to search within. If empty, all locations + * are searched. + * Returns an error if any location in the list isn't one of the [Supported + * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). + * If a location is unreachable, its name is returned in the + * `SearchCatalogResponse.unreachable` field. To get additional information + * on the error, repeat the search request and set the location name as the + * value of this parameter. + * @type bool $starred_only + * Optional. If `true`, search only among starred entries. + * By default, all results are returned, starred or not. + * @type bool $include_public_tag_templates + * Optional. This field is deprecated. The search mechanism for public and + * private tag templates is the same. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The list of organization IDs to search within. + * To find your organization ID, follow the steps from + * [Creating and managing organizations] + * (/resource-manager/docs/creating-managing-organization). + * + * Generated from protobuf field repeated string include_org_ids = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIncludeOrgIds() + { + return $this->include_org_ids; + } + + /** + * The list of organization IDs to search within. + * To find your organization ID, follow the steps from + * [Creating and managing organizations] + * (/resource-manager/docs/creating-managing-organization). + * + * Generated from protobuf field repeated string include_org_ids = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncludeOrgIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_org_ids = $arr; + + return $this; + } + + /** + * The list of project IDs to search within. + * For more information on the distinction between project names, IDs, and + * numbers, see [Projects](/docs/overview/#projects). + * + * Generated from protobuf field repeated string include_project_ids = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIncludeProjectIds() + { + return $this->include_project_ids; + } + + /** + * The list of project IDs to search within. + * For more information on the distinction between project names, IDs, and + * numbers, see [Projects](/docs/overview/#projects). + * + * Generated from protobuf field repeated string include_project_ids = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncludeProjectIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_project_ids = $arr; + + return $this; + } + + /** + * If `true`, include Google Cloud public datasets in + * search results. By default, they are excluded. + * See [Google Cloud Public Datasets](/public-datasets) for more + * information. + * + * Generated from protobuf field bool include_gcp_public_datasets = 7; + * @return bool + */ + public function getIncludeGcpPublicDatasets() + { + return $this->include_gcp_public_datasets; + } + + /** + * If `true`, include Google Cloud public datasets in + * search results. By default, they are excluded. + * See [Google Cloud Public Datasets](/public-datasets) for more + * information. + * + * Generated from protobuf field bool include_gcp_public_datasets = 7; + * @param bool $var + * @return $this + */ + public function setIncludeGcpPublicDatasets($var) + { + GPBUtil::checkBool($var); + $this->include_gcp_public_datasets = $var; + + return $this; + } + + /** + * Optional. The list of locations to search within. If empty, all locations + * are searched. + * Returns an error if any location in the list isn't one of the [Supported + * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). + * If a location is unreachable, its name is returned in the + * `SearchCatalogResponse.unreachable` field. To get additional information + * on the error, repeat the search request and set the location name as the + * value of this parameter. + * + * Generated from protobuf field repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestrictedLocations() + { + return $this->restricted_locations; + } + + /** + * Optional. The list of locations to search within. If empty, all locations + * are searched. + * Returns an error if any location in the list isn't one of the [Supported + * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). + * If a location is unreachable, its name is returned in the + * `SearchCatalogResponse.unreachable` field. To get additional information + * on the error, repeat the search request and set the location name as the + * value of this parameter. + * + * Generated from protobuf field repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestrictedLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->restricted_locations = $arr; + + return $this; + } + + /** + * Optional. If `true`, search only among starred entries. + * By default, all results are returned, starred or not. + * + * Generated from protobuf field bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getStarredOnly() + { + return $this->starred_only; + } + + /** + * Optional. If `true`, search only among starred entries. + * By default, all results are returned, starred or not. + * + * Generated from protobuf field bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setStarredOnly($var) + { + GPBUtil::checkBool($var); + $this->starred_only = $var; + + return $this; + } + + /** + * Optional. This field is deprecated. The search mechanism for public and + * private tag templates is the same. + * + * Generated from protobuf field bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return bool + * @deprecated + */ + public function getIncludePublicTagTemplates() + { + @trigger_error('include_public_tag_templates is deprecated.', E_USER_DEPRECATED); + return $this->include_public_tag_templates; + } + + /** + * Optional. This field is deprecated. The search mechanism for public and + * private tag templates is the same. + * + * Generated from protobuf field bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setIncludePublicTagTemplates($var) + { + @trigger_error('include_public_tag_templates is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->include_public_tag_templates = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scope::class, \Google\Cloud\DataCatalog\V1\SearchCatalogRequest_Scope::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResponse.php new file mode 100644 index 000000000000..bb2e4e0c3c8a --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResponse.php @@ -0,0 +1,190 @@ +google.cloud.datacatalog.v1.SearchCatalogResponse + */ +class SearchCatalogResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Search results. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; + */ + private $results; + /** + * The approximate total number of entries matched by the query. + * + * Generated from protobuf field int32 total_size = 2; + */ + protected $total_size = 0; + /** + * Pagination token that can be used in subsequent calls to retrieve the next + * page of results. + * + * Generated from protobuf field string next_page_token = 3; + */ + protected $next_page_token = ''; + /** + * Unreachable locations. Search results don't include data from those + * locations. + * To get additional information on an error, repeat the search request and + * restrict it to specific locations by setting the + * `SearchCatalogRequest.scope.restricted_locations` parameter. + * + * Generated from protobuf field repeated string unreachable = 6; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DataCatalog\V1\SearchCatalogResult>|\Google\Protobuf\Internal\RepeatedField $results + * Search results. + * @type int $total_size + * The approximate total number of entries matched by the query. + * @type string $next_page_token + * Pagination token that can be used in subsequent calls to retrieve the next + * page of results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unreachable locations. Search results don't include data from those + * locations. + * To get additional information on an error, repeat the search request and + * restrict it to specific locations by setting the + * `SearchCatalogRequest.scope.restricted_locations` parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Search results. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResults() + { + return $this->results; + } + + /** + * Search results. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; + * @param array<\Google\Cloud\DataCatalog\V1\SearchCatalogResult>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SearchCatalogResult::class); + $this->results = $arr; + + return $this; + } + + /** + * The approximate total number of entries matched by the query. + * + * Generated from protobuf field int32 total_size = 2; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * The approximate total number of entries matched by the query. + * + * Generated from protobuf field int32 total_size = 2; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + + /** + * Pagination token that can be used in subsequent calls to retrieve the next + * page of results. + * + * Generated from protobuf field string next_page_token = 3; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pagination token that can be used in subsequent calls to retrieve the next + * page of 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; + } + + /** + * Unreachable locations. Search results don't include data from those + * locations. + * To get additional information on an error, repeat the search request and + * restrict it to specific locations by setting the + * `SearchCatalogRequest.scope.restricted_locations` parameter. + * + * Generated from protobuf field repeated string unreachable = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unreachable locations. Search results don't include data from those + * locations. + * To get additional information on an error, repeat the search request and + * restrict it to specific locations by setting the + * `SearchCatalogRequest.scope.restricted_locations` parameter. + * + * Generated from protobuf field repeated string unreachable = 6; + * @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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResult.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResult.php new file mode 100644 index 000000000000..3e4c505fd6a7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchCatalogResult.php @@ -0,0 +1,474 @@ +google.cloud.datacatalog.v1.SearchCatalogResult + */ +class SearchCatalogResult extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the search result. + * You can use this field to determine which get method to call to fetch the + * full resource. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; + */ + protected $search_result_type = 0; + /** + * Sub-type of the search result. + * A dot-delimited full type of the resource. The same type you + * specify in the `type` search predicate. + * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. + * + * Generated from protobuf field string search_result_subtype = 2; + */ + protected $search_result_subtype = ''; + /** + * The relative name of the resource in URL format. + * Examples: + * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}` + * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}` + * + * Generated from protobuf field string relative_resource_name = 3; + */ + protected $relative_resource_name = ''; + /** + * The full name of the Google Cloud resource the entry belongs to. + * For more information, see [Full Resource Name] + * (/apis/design/resource_names#full_resource_name). + * Example: + * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` + * + * Generated from protobuf field string linked_resource = 4; + */ + protected $linked_resource = ''; + /** + * The last modification timestamp of the entry in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp modify_time = 7; + */ + protected $modify_time = null; + /** + * Fully qualified name (FQN) of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` + * + * Generated from protobuf field string fully_qualified_name = 10; + */ + protected $fully_qualified_name = ''; + /** + * The display name of the result. + * + * Generated from protobuf field string display_name = 12; + */ + protected $display_name = ''; + /** + * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + * + * Generated from protobuf field string description = 13; + */ + protected $description = ''; + protected $system; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $search_result_type + * Type of the search result. + * You can use this field to determine which get method to call to fetch the + * full resource. + * @type string $search_result_subtype + * Sub-type of the search result. + * A dot-delimited full type of the resource. The same type you + * specify in the `type` search predicate. + * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. + * @type string $relative_resource_name + * The relative name of the resource in URL format. + * Examples: + * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}` + * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}` + * @type string $linked_resource + * The full name of the Google Cloud resource the entry belongs to. + * For more information, see [Full Resource Name] + * (/apis/design/resource_names#full_resource_name). + * Example: + * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` + * @type \Google\Protobuf\Timestamp $modify_time + * The last modification timestamp of the entry in the source system. + * @type int $integrated_system + * Output only. The source system that Data Catalog automatically integrates + * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. + * @type string $user_specified_system + * Custom source system that you can manually integrate Data Catalog with. + * @type string $fully_qualified_name + * Fully qualified name (FQN) of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` + * @type string $display_name + * The display name of the result. + * @type string $description + * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Search::initOnce(); + parent::__construct($data); + } + + /** + * Type of the search result. + * You can use this field to determine which get method to call to fetch the + * full resource. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; + * @return int + */ + public function getSearchResultType() + { + return $this->search_result_type; + } + + /** + * Type of the search result. + * You can use this field to determine which get method to call to fetch the + * full resource. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; + * @param int $var + * @return $this + */ + public function setSearchResultType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\SearchResultType::class); + $this->search_result_type = $var; + + return $this; + } + + /** + * Sub-type of the search result. + * A dot-delimited full type of the resource. The same type you + * specify in the `type` search predicate. + * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. + * + * Generated from protobuf field string search_result_subtype = 2; + * @return string + */ + public function getSearchResultSubtype() + { + return $this->search_result_subtype; + } + + /** + * Sub-type of the search result. + * A dot-delimited full type of the resource. The same type you + * specify in the `type` search predicate. + * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. + * + * Generated from protobuf field string search_result_subtype = 2; + * @param string $var + * @return $this + */ + public function setSearchResultSubtype($var) + { + GPBUtil::checkString($var, True); + $this->search_result_subtype = $var; + + return $this; + } + + /** + * The relative name of the resource in URL format. + * Examples: + * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}` + * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}` + * + * Generated from protobuf field string relative_resource_name = 3; + * @return string + */ + public function getRelativeResourceName() + { + return $this->relative_resource_name; + } + + /** + * The relative name of the resource in URL format. + * Examples: + * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}` + * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}` + * + * Generated from protobuf field string relative_resource_name = 3; + * @param string $var + * @return $this + */ + public function setRelativeResourceName($var) + { + GPBUtil::checkString($var, True); + $this->relative_resource_name = $var; + + return $this; + } + + /** + * The full name of the Google Cloud resource the entry belongs to. + * For more information, see [Full Resource Name] + * (/apis/design/resource_names#full_resource_name). + * Example: + * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` + * + * Generated from protobuf field string linked_resource = 4; + * @return string + */ + public function getLinkedResource() + { + return $this->linked_resource; + } + + /** + * The full name of the Google Cloud resource the entry belongs to. + * For more information, see [Full Resource Name] + * (/apis/design/resource_names#full_resource_name). + * Example: + * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` + * + * Generated from protobuf field string linked_resource = 4; + * @param string $var + * @return $this + */ + public function setLinkedResource($var) + { + GPBUtil::checkString($var, True); + $this->linked_resource = $var; + + return $this; + } + + /** + * The last modification timestamp of the entry in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp modify_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getModifyTime() + { + return $this->modify_time; + } + + public function hasModifyTime() + { + return isset($this->modify_time); + } + + public function clearModifyTime() + { + unset($this->modify_time); + } + + /** + * The last modification timestamp of the entry in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp modify_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setModifyTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->modify_time = $var; + + return $this; + } + + /** + * Output only. The source system that Data Catalog automatically integrates + * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getIntegratedSystem() + { + return $this->readOneof(8); + } + + public function hasIntegratedSystem() + { + return $this->hasOneof(8); + } + + /** + * Output only. The source system that Data Catalog automatically integrates + * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setIntegratedSystem($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\IntegratedSystem::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Custom source system that you can manually integrate Data Catalog with. + * + * Generated from protobuf field string user_specified_system = 9; + * @return string + */ + public function getUserSpecifiedSystem() + { + return $this->readOneof(9); + } + + public function hasUserSpecifiedSystem() + { + return $this->hasOneof(9); + } + + /** + * Custom source system that you can manually integrate Data Catalog with. + * + * Generated from protobuf field string user_specified_system = 9; + * @param string $var + * @return $this + */ + public function setUserSpecifiedSystem($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Fully qualified name (FQN) of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` + * + * Generated from protobuf field string fully_qualified_name = 10; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->fully_qualified_name; + } + + /** + * Fully qualified name (FQN) of the resource. + * FQNs take two forms: + * * For non-regionalized resources: + * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * * For regionalized resources: + * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` + * Example for a DPMS table: + * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` + * + * Generated from protobuf field string fully_qualified_name = 10; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->fully_qualified_name = $var; + + return $this; + } + + /** + * The display name of the result. + * + * Generated from protobuf field string display_name = 12; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the result. + * + * Generated from protobuf field string display_name = 12; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + * + * Generated from protobuf field string description = 13; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + * + * Generated from protobuf field string description = 13; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * @return string + */ + public function getSystem() + { + return $this->whichOneof("system"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchResultType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchResultType.php new file mode 100644 index 000000000000..e388bd8d63d1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SearchResultType.php @@ -0,0 +1,68 @@ +google.cloud.datacatalog.v1.SearchResultType + */ +class SearchResultType +{ + /** + * Default unknown type. + * + * Generated from protobuf enum SEARCH_RESULT_TYPE_UNSPECIFIED = 0; + */ + const SEARCH_RESULT_TYPE_UNSPECIFIED = 0; + /** + * An [Entry][google.cloud.datacatalog.v1.Entry]. + * + * Generated from protobuf enum ENTRY = 1; + */ + const ENTRY = 1; + /** + * A [TagTemplate][google.cloud.datacatalog.v1.TagTemplate]. + * + * Generated from protobuf enum TAG_TEMPLATE = 2; + */ + const TAG_TEMPLATE = 2; + /** + * An [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]. + * + * Generated from protobuf enum ENTRY_GROUP = 3; + */ + const ENTRY_GROUP = 3; + + private static $valueToName = [ + self::SEARCH_RESULT_TYPE_UNSPECIFIED => 'SEARCH_RESULT_TYPE_UNSPECIFIED', + self::ENTRY => 'ENTRY', + self::TAG_TEMPLATE => 'TAG_TEMPLATE', + self::ENTRY_GROUP => 'ENTRY_GROUP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedPolicyTag.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedPolicyTag.php new file mode 100644 index 000000000000..aeeefe02d21f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedPolicyTag.php @@ -0,0 +1,186 @@ +google.cloud.datacatalog.v1.SerializedPolicyTag + */ +class SerializedPolicyTag extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the policy tag. + * This field is ignored when calling `ImportTaxonomies`. + * + * Generated from protobuf field string policy_tag = 1; + */ + protected $policy_tag = ''; + /** + * Required. Display name of the policy tag. At most 200 bytes when encoded + * in UTF-8. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Description of the serialized policy tag. At most + * 2000 bytes when encoded in UTF-8. If not set, defaults to an + * empty description. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Children of the policy tag, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; + */ + private $child_policy_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $policy_tag + * Resource name of the policy tag. + * This field is ignored when calling `ImportTaxonomies`. + * @type string $display_name + * Required. Display name of the policy tag. At most 200 bytes when encoded + * in UTF-8. + * @type string $description + * Description of the serialized policy tag. At most + * 2000 bytes when encoded in UTF-8. If not set, defaults to an + * empty description. + * @type array<\Google\Cloud\DataCatalog\V1\SerializedPolicyTag>|\Google\Protobuf\Internal\RepeatedField $child_policy_tags + * Children of the policy tag, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the policy tag. + * This field is ignored when calling `ImportTaxonomies`. + * + * Generated from protobuf field string policy_tag = 1; + * @return string + */ + public function getPolicyTag() + { + return $this->policy_tag; + } + + /** + * Resource name of the policy tag. + * This field is ignored when calling `ImportTaxonomies`. + * + * Generated from protobuf field string policy_tag = 1; + * @param string $var + * @return $this + */ + public function setPolicyTag($var) + { + GPBUtil::checkString($var, True); + $this->policy_tag = $var; + + return $this; + } + + /** + * Required. Display name of the policy tag. At most 200 bytes when encoded + * in UTF-8. + * + * 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 policy tag. At most 200 bytes when encoded + * in UTF-8. + * + * 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; + } + + /** + * Description of the serialized policy tag. At most + * 2000 bytes when encoded in UTF-8. If not set, defaults to an + * empty description. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the serialized policy tag. At most + * 2000 bytes when encoded in UTF-8. If not set, defaults to an + * empty 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; + } + + /** + * Children of the policy tag, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChildPolicyTags() + { + return $this->child_policy_tags; + } + + /** + * Children of the policy tag, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; + * @param array<\Google\Cloud\DataCatalog\V1\SerializedPolicyTag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChildPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SerializedPolicyTag::class); + $this->child_policy_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedTaxonomy.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedTaxonomy.php new file mode 100644 index 000000000000..f8186a5ec8bb --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SerializedTaxonomy.php @@ -0,0 +1,179 @@ +google.cloud.datacatalog.v1.SerializedTaxonomy + */ +class SerializedTaxonomy extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Display name of the taxonomy. At most 200 bytes when encoded in + * UTF-8. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Description of the serialized taxonomy. At most 2000 bytes when + * encoded in UTF-8. If not set, defaults to an empty description. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Top level policy tags associated with the taxonomy, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; + */ + private $policy_tags; + /** + * A list of policy types that are activated per taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; + */ + private $activated_policy_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. Display name of the taxonomy. At most 200 bytes when encoded in + * UTF-8. + * @type string $description + * Description of the serialized taxonomy. At most 2000 bytes when + * encoded in UTF-8. If not set, defaults to an empty description. + * @type array<\Google\Cloud\DataCatalog\V1\SerializedPolicyTag>|\Google\Protobuf\Internal\RepeatedField $policy_tags + * Top level policy tags associated with the taxonomy, if any. + * @type array|\Google\Protobuf\Internal\RepeatedField $activated_policy_types + * A list of policy types that are activated per taxonomy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce(); + parent::__construct($data); + } + + /** + * Required. Display name of the taxonomy. At most 200 bytes when encoded in + * UTF-8. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name of the taxonomy. At most 200 bytes when encoded in + * UTF-8. + * + * 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; + } + + /** + * Description of the serialized taxonomy. At most 2000 bytes when + * encoded in UTF-8. If not set, defaults to an empty description. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the serialized taxonomy. At most 2000 bytes when + * encoded in UTF-8. If not set, defaults to an empty description. + * + * 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; + } + + /** + * Top level policy tags associated with the taxonomy, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPolicyTags() + { + return $this->policy_tags; + } + + /** + * Top level policy tags associated with the taxonomy, if any. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; + * @param array<\Google\Cloud\DataCatalog\V1\SerializedPolicyTag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SerializedPolicyTag::class); + $this->policy_tags = $arr; + + return $this; + } + + /** + * A list of policy types that are activated per taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActivatedPolicyTypes() + { + return $this->activated_policy_types; + } + + /** + * A list of policy types that are activated per taxonomy. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActivatedPolicyTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DataCatalog\V1\Taxonomy\PolicyType::class); + $this->activated_policy_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ServiceSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ServiceSpec.php new file mode 100644 index 000000000000..8fbbf96c1866 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ServiceSpec.php @@ -0,0 +1,79 @@ +google.cloud.datacatalog.v1.ServiceSpec + */ +class ServiceSpec extends \Google\Protobuf\Internal\Message +{ + protected $system_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec $cloud_bigtable_instance_spec + * Specification that applies to Instance entries of `CLOUD_BIGTABLE` + * system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Specification that applies to Instance entries of `CLOUD_BIGTABLE` + * system. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; + * @return \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec|null + */ + public function getCloudBigtableInstanceSpec() + { + return $this->readOneof(1); + } + + public function hasCloudBigtableInstanceSpec() + { + return $this->hasOneof(1); + } + + /** + * Specification that applies to Instance entries of `CLOUD_BIGTABLE` + * system. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; + * @param \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec $var + * @return $this + */ + public function setCloudBigtableInstanceSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\CloudBigtableInstanceSpec::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getSystemSpec() + { + return $this->whichOneof("system_spec"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SqlDatabaseSystemSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SqlDatabaseSystemSpec.php new file mode 100644 index 000000000000..86661c30183d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SqlDatabaseSystemSpec.php @@ -0,0 +1,197 @@ +google.cloud.datacatalog.v1.SqlDatabaseSystemSpec + */ +class SqlDatabaseSystemSpec extends \Google\Protobuf\Internal\Message +{ + /** + * SQL Database Engine. + * enum SqlEngine { + * UNDEFINED = 0; + * MY_SQL = 1; + * POSTGRE_SQL = 2; + * SQL_SERVER = 3; + * } + * Engine of the enclosing database instance. + * + * Generated from protobuf field string sql_engine = 1; + */ + protected $sql_engine = ''; + /** + * Version of the database engine. + * + * Generated from protobuf field string database_version = 2; + */ + protected $database_version = ''; + /** + * Host of the SQL database + * enum InstanceHost { + * UNDEFINED = 0; + * SELF_HOSTED = 1; + * CLOUD_SQL = 2; + * AMAZON_RDS = 3; + * AZURE_SQL = 4; + * } + * Host of the enclousing database instance. + * + * Generated from protobuf field string instance_host = 3; + */ + protected $instance_host = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_engine + * SQL Database Engine. + * enum SqlEngine { + * UNDEFINED = 0; + * MY_SQL = 1; + * POSTGRE_SQL = 2; + * SQL_SERVER = 3; + * } + * Engine of the enclosing database instance. + * @type string $database_version + * Version of the database engine. + * @type string $instance_host + * Host of the SQL database + * enum InstanceHost { + * UNDEFINED = 0; + * SELF_HOSTED = 1; + * CLOUD_SQL = 2; + * AMAZON_RDS = 3; + * AZURE_SQL = 4; + * } + * Host of the enclousing database instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * SQL Database Engine. + * enum SqlEngine { + * UNDEFINED = 0; + * MY_SQL = 1; + * POSTGRE_SQL = 2; + * SQL_SERVER = 3; + * } + * Engine of the enclosing database instance. + * + * Generated from protobuf field string sql_engine = 1; + * @return string + */ + public function getSqlEngine() + { + return $this->sql_engine; + } + + /** + * SQL Database Engine. + * enum SqlEngine { + * UNDEFINED = 0; + * MY_SQL = 1; + * POSTGRE_SQL = 2; + * SQL_SERVER = 3; + * } + * Engine of the enclosing database instance. + * + * Generated from protobuf field string sql_engine = 1; + * @param string $var + * @return $this + */ + public function setSqlEngine($var) + { + GPBUtil::checkString($var, True); + $this->sql_engine = $var; + + return $this; + } + + /** + * Version of the database engine. + * + * Generated from protobuf field string database_version = 2; + * @return string + */ + public function getDatabaseVersion() + { + return $this->database_version; + } + + /** + * Version of the database engine. + * + * Generated from protobuf field string database_version = 2; + * @param string $var + * @return $this + */ + public function setDatabaseVersion($var) + { + GPBUtil::checkString($var, True); + $this->database_version = $var; + + return $this; + } + + /** + * Host of the SQL database + * enum InstanceHost { + * UNDEFINED = 0; + * SELF_HOSTED = 1; + * CLOUD_SQL = 2; + * AMAZON_RDS = 3; + * AZURE_SQL = 4; + * } + * Host of the enclousing database instance. + * + * Generated from protobuf field string instance_host = 3; + * @return string + */ + public function getInstanceHost() + { + return $this->instance_host; + } + + /** + * Host of the SQL database + * enum InstanceHost { + * UNDEFINED = 0; + * SELF_HOSTED = 1; + * CLOUD_SQL = 2; + * AMAZON_RDS = 3; + * AZURE_SQL = 4; + * } + * Host of the enclousing database instance. + * + * Generated from protobuf field string instance_host = 3; + * @param string $var + * @return $this + */ + public function setInstanceHost($var) + { + GPBUtil::checkString($var, True); + $this->instance_host = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryRequest.php new file mode 100644 index 000000000000..53f0422fc6a5 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.StarEntryRequest + */ +class StarEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry to mark as starred. + * + * 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 entry to mark as starred. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\StarEntryRequest + * + * @experimental + */ + public static function 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 entry to mark as starred. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry to mark as starred. + * + * Generated from 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 entry to mark as starred. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryResponse.php new file mode 100644 index 000000000000..b54212bdfbf4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StarEntryResponse.php @@ -0,0 +1,35 @@ +google.cloud.datacatalog.v1.StarEntryResponse + */ +class StarEntryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StorageProperties.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StorageProperties.php new file mode 100644 index 000000000000..f750dbc3b49a --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/StorageProperties.php @@ -0,0 +1,169 @@ +google.cloud.datacatalog.v1.StorageProperties + */ +class StorageProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Patterns to identify a set of files for this fileset. + * Examples of a valid `file_pattern`: + * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + * and all subdirectories recursively + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * + * Generated from protobuf field repeated string file_pattern = 1; + */ + private $file_pattern; + /** + * File type in MIME format, for example, `text/plain`. + * + * Generated from protobuf field string file_type = 2; + */ + protected $file_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $file_pattern + * Patterns to identify a set of files for this fileset. + * Examples of a valid `file_pattern`: + * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + * and all subdirectories recursively + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * @type string $file_type + * File type in MIME format, for example, `text/plain`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DataSource::initOnce(); + parent::__construct($data); + } + + /** + * Patterns to identify a set of files for this fileset. + * Examples of a valid `file_pattern`: + * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + * and all subdirectories recursively + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * + * Generated from protobuf field repeated string file_pattern = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilePattern() + { + return $this->file_pattern; + } + + /** + * Patterns to identify a set of files for this fileset. + * Examples of a valid `file_pattern`: + * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` + * directory + * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + * and all subdirectories recursively + * * `gs://bucket_name/file*`: matches files prefixed by `file` in + * `bucket_name` + * * `gs://bucket_name/??.txt`: matches files with two characters followed by + * `.txt` in `bucket_name` + * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + * vowel character followed by `.txt` in + * `bucket_name` + * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + * or `m` followed by `.txt` in `bucket_name` + * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * + * Generated from protobuf field repeated string file_pattern = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilePattern($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->file_pattern = $arr; + + return $this; + } + + /** + * File type in MIME format, for example, `text/plain`. + * + * Generated from protobuf field string file_type = 2; + * @return string + */ + public function getFileType() + { + return $this->file_type; + } + + /** + * File type in MIME format, for example, `text/plain`. + * + * Generated from protobuf field string file_type = 2; + * @param string $var + * @return $this + */ + public function setFileType($var) + { + GPBUtil::checkString($var, True); + $this->file_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SystemTimestamps.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SystemTimestamps.php new file mode 100644 index 000000000000..bdc1c3c65b38 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/SystemTimestamps.php @@ -0,0 +1,189 @@ +google.cloud.datacatalog.v1.SystemTimestamps + */ +class SystemTimestamps extends \Google\Protobuf\Internal\Message +{ + /** + * Creation timestamp of the resource within the given system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; + */ + protected $create_time = null; + /** + * Timestamp of the last modification of the resource or its metadata within + * a given system. + * Note: Depending on the source system, not every modification updates this + * timestamp. + * For example, BigQuery timestamps every metadata modification but not data + * or permission changes. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; + */ + protected $update_time = null; + /** + * Output only. Expiration timestamp of the resource within the given system. + * Currently only applicable to BigQuery resources. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Creation timestamp of the resource within the given system. + * @type \Google\Protobuf\Timestamp $update_time + * Timestamp of the last modification of the resource or its metadata within + * a given system. + * Note: Depending on the source system, not every modification updates this + * timestamp. + * For example, BigQuery timestamps every metadata modification but not data + * or permission changes. + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. Expiration timestamp of the resource within the given system. + * Currently only applicable to BigQuery resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Timestamps::initOnce(); + parent::__construct($data); + } + + /** + * Creation timestamp of the resource within the given system. + * + * 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); + } + + /** + * Creation timestamp of the resource within the given system. + * + * 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; + } + + /** + * Timestamp of the last modification of the resource or its metadata within + * a given system. + * Note: Depending on the source system, not every modification updates this + * timestamp. + * For example, BigQuery timestamps every metadata modification but not data + * or permission changes. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; + * @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); + } + + /** + * Timestamp of the last modification of the resource or its metadata within + * a given system. + * Note: Depending on the source system, not every modification updates this + * timestamp. + * For example, BigQuery timestamps every metadata modification but not data + * or permission changes. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; + * @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. Expiration timestamp of the resource within the given system. + * Currently only applicable to BigQuery resources. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.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. Expiration timestamp of the resource within the given system. + * Currently only applicable to BigQuery resources. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSourceType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSourceType.php new file mode 100644 index 000000000000..071a61c144cd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSourceType.php @@ -0,0 +1,68 @@ +google.cloud.datacatalog.v1.TableSourceType + */ +class TableSourceType +{ + /** + * Default unknown type. + * + * Generated from protobuf enum TABLE_SOURCE_TYPE_UNSPECIFIED = 0; + */ + const TABLE_SOURCE_TYPE_UNSPECIFIED = 0; + /** + * Table view. + * + * Generated from protobuf enum BIGQUERY_VIEW = 2; + */ + const BIGQUERY_VIEW = 2; + /** + * BigQuery native table. + * + * Generated from protobuf enum BIGQUERY_TABLE = 5; + */ + const BIGQUERY_TABLE = 5; + /** + * BigQuery materialized view. + * + * Generated from protobuf enum BIGQUERY_MATERIALIZED_VIEW = 7; + */ + const BIGQUERY_MATERIALIZED_VIEW = 7; + + private static $valueToName = [ + self::TABLE_SOURCE_TYPE_UNSPECIFIED => 'TABLE_SOURCE_TYPE_UNSPECIFIED', + self::BIGQUERY_VIEW => 'BIGQUERY_VIEW', + self::BIGQUERY_TABLE => 'BIGQUERY_TABLE', + self::BIGQUERY_MATERIALIZED_VIEW => 'BIGQUERY_MATERIALIZED_VIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSpec.php new file mode 100644 index 000000000000..79f7f99856fc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TableSpec.php @@ -0,0 +1,83 @@ +google.cloud.datacatalog.v1.TableSpec + */ +class TableSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. If the table is date-sharded, that is, it matches the + * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource + * name of the date-sharded grouped entry. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * Otherwise, `grouped_entry` is empty. + * + * Generated from protobuf field string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $grouped_entry = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $grouped_entry + * Output only. If the table is date-sharded, that is, it matches the + * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource + * name of the date-sharded grouped entry. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * Otherwise, `grouped_entry` is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\TableSpec::initOnce(); + parent::__construct($data); + } + + /** + * Output only. If the table is date-sharded, that is, it matches the + * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource + * name of the date-sharded grouped entry. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * Otherwise, `grouped_entry` is empty. + * + * Generated from protobuf field string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getGroupedEntry() + { + return $this->grouped_entry; + } + + /** + * Output only. If the table is date-sharded, that is, it matches the + * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource + * name of the date-sharded grouped entry. For example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * Otherwise, `grouped_entry` is empty. + * + * Generated from protobuf field string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setGroupedEntry($var) + { + GPBUtil::checkString($var, True); + $this->grouped_entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Tag.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Tag.php new file mode 100644 index 000000000000..54e7f6197639 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Tag.php @@ -0,0 +1,256 @@ +google.cloud.datacatalog.v1.Tag + */ +class Tag extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the tag in URL format where tag ID is a + * system-generated identifier. + * Note: The tag itself might not be stored in the location specified in its + * name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The resource name of the tag template this tag uses. Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` + * This field cannot be modified after creation. + * + * Generated from protobuf field string template = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $template = ''; + /** + * Output only. The display name of the tag template. + * + * Generated from protobuf field string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $template_display_name = ''; + /** + * Required. Maps the ID of a tag field to its value and additional + * information about that field. + * Tag template defines valid field IDs. A tag + * must have at least 1 field and at most 500 fields. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $fields; + protected $scope; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the tag in URL format where tag ID is a + * system-generated identifier. + * Note: The tag itself might not be stored in the location specified in its + * name. + * @type string $template + * Required. The resource name of the tag template this tag uses. Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` + * This field cannot be modified after creation. + * @type string $template_display_name + * Output only. The display name of the tag template. + * @type string $column + * Resources like entry can have schemas associated with them. This scope + * allows you to attach tags to an individual column based on that schema. + * To attach a tag to a nested column, separate column names with a dot + * (`.`). Example: `column.nested_column`. + * @type array|\Google\Protobuf\Internal\MapField $fields + * Required. Maps the ID of a tag field to its value and additional + * information about that field. + * Tag template defines valid field IDs. A tag + * must have at least 1 field and at most 500 fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the tag in URL format where tag ID is a + * system-generated identifier. + * Note: The tag itself might not be stored in the location specified in its + * name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the tag in URL format where tag ID is a + * system-generated identifier. + * Note: The tag itself might not be stored in the location specified in its + * 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; + } + + /** + * Required. The resource name of the tag template this tag uses. Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` + * This field cannot be modified after creation. + * + * Generated from protobuf field string template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTemplate() + { + return $this->template; + } + + /** + * Required. The resource name of the tag template this tag uses. Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` + * This field cannot be modified after creation. + * + * Generated from protobuf field string template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTemplate($var) + { + GPBUtil::checkString($var, True); + $this->template = $var; + + return $this; + } + + /** + * Output only. The display name of the tag template. + * + * Generated from protobuf field string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTemplateDisplayName() + { + return $this->template_display_name; + } + + /** + * Output only. The display name of the tag template. + * + * Generated from protobuf field string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTemplateDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->template_display_name = $var; + + return $this; + } + + /** + * Resources like entry can have schemas associated with them. This scope + * allows you to attach tags to an individual column based on that schema. + * To attach a tag to a nested column, separate column names with a dot + * (`.`). Example: `column.nested_column`. + * + * Generated from protobuf field string column = 4; + * @return string + */ + public function getColumn() + { + return $this->readOneof(4); + } + + public function hasColumn() + { + return $this->hasOneof(4); + } + + /** + * Resources like entry can have schemas associated with them. This scope + * allows you to attach tags to an individual column based on that schema. + * To attach a tag to a nested column, separate column names with a dot + * (`.`). Example: `column.nested_column`. + * + * Generated from protobuf field string column = 4; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. Maps the ID of a tag field to its value and additional + * information about that field. + * Tag template defines valid field IDs. A tag + * must have at least 1 field and at most 500 fields. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFields() + { + return $this->fields; + } + + /** + * Required. Maps the ID of a tag field to its value and additional + * information about that field. + * Tag template defines valid field IDs. A tag + * must have at least 1 field and at most 500 fields. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\TagField::class); + $this->fields = $arr; + + return $this; + } + + /** + * @return string + */ + public function getScope() + { + return $this->whichOneof("scope"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField.php new file mode 100644 index 000000000000..560ede287e87 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField.php @@ -0,0 +1,344 @@ +google.cloud.datacatalog.v1.TagField + */ +class TagField extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The display name of this field. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The order of this field with respect to other fields in this + * tag. Can be set by + * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order]. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order, and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $order = 0; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Output only. The display name of this field. + * @type float $double_value + * The value of a tag field with a double type. + * @type string $string_value + * The value of a tag field with a string type. + * The maximum length is 2000 UTF-8 characters. + * @type bool $bool_value + * The value of a tag field with a boolean type. + * @type \Google\Protobuf\Timestamp $timestamp_value + * The value of a tag field with a timestamp type. + * @type \Google\Cloud\DataCatalog\V1\TagField\EnumValue $enum_value + * The value of a tag field with an enum type. + * This value must be one of the allowed values listed in this enum. + * @type string $richtext_value + * The value of a tag field with a rich text type. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * @type int $order + * Output only. The order of this field with respect to other fields in this + * tag. Can be set by + * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order]. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order, and + * field orders within a tag don't have to be sequential. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The display name of this field. + * + * 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 this field. + * + * 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; + } + + /** + * The value of a tag field with a double type. + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * The value of a tag field with a double type. + * + * 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; + } + + /** + * The value of a tag field with a string type. + * The maximum length is 2000 UTF-8 characters. + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * The value of a tag field with a string type. + * The maximum length is 2000 UTF-8 characters. + * + * 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; + } + + /** + * The value of a tag field with a boolean type. + * + * Generated from protobuf field bool bool_value = 4; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(4); + } + + public function hasBoolValue() + { + return $this->hasOneof(4); + } + + /** + * The value of a tag field with a boolean type. + * + * 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; + } + + /** + * The value of a tag field with a timestamp type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampValue() + { + return $this->readOneof(5); + } + + public function hasTimestampValue() + { + return $this->hasOneof(5); + } + + /** + * The value of a tag field with a timestamp type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The value of a tag field with an enum type. + * This value must be one of the allowed values listed in this enum. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; + * @return \Google\Cloud\DataCatalog\V1\TagField\EnumValue|null + */ + public function getEnumValue() + { + return $this->readOneof(6); + } + + public function hasEnumValue() + { + return $this->hasOneof(6); + } + + /** + * The value of a tag field with an enum type. + * This value must be one of the allowed values listed in this enum. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; + * @param \Google\Cloud\DataCatalog\V1\TagField\EnumValue $var + * @return $this + */ + public function setEnumValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TagField\EnumValue::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The value of a tag field with a rich text type. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * + * Generated from protobuf field string richtext_value = 8; + * @return string + */ + public function getRichtextValue() + { + return $this->readOneof(8); + } + + public function hasRichtextValue() + { + return $this->hasOneof(8); + } + + /** + * The value of a tag field with a rich text type. + * The maximum length is 10 MiB as this value holds HTML descriptions + * including encoded images. The maximum length of the text without images + * is 100 KiB. + * + * Generated from protobuf field string richtext_value = 8; + * @param string $var + * @return $this + */ + public function setRichtextValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. The order of this field with respect to other fields in this + * tag. Can be set by + * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order]. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order, and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getOrder() + { + return $this->order; + } + + /** + * Output only. The order of this field with respect to other fields in this + * tag. Can be set by + * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order]. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order, and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setOrder($var) + { + GPBUtil::checkInt32($var); + $this->order = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField/EnumValue.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField/EnumValue.php new file mode 100644 index 000000000000..e2a3a5f748aa --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagField/EnumValue.php @@ -0,0 +1,70 @@ +google.cloud.datacatalog.v1.TagField.EnumValue + */ +class EnumValue extends \Google\Protobuf\Internal\Message +{ + /** + * The display name of the enum value. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The display name of the enum value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * The display name of the enum value. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the enum value. + * + * 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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EnumValue::class, \Google\Cloud\DataCatalog\V1\TagField_EnumValue::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplate.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplate.php new file mode 100644 index 000000000000..af1412783557 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplate.php @@ -0,0 +1,244 @@ +google.cloud.datacatalog.v1.TagTemplate + */ +class TagTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the tag template in URL format. + * Note: The tag template itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Display name for this template. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Indicates whether tags created with this template are public. Public tags + * do not require tag template access to appear in + * [ListTags][google.cloud.datacatalog.v1.ListTags] API response. + * Additionally, you can search for a public tag by value with a + * simple search query in addition to using a ``tag:`` predicate. + * + * Generated from protobuf field bool is_publicly_readable = 5; + */ + protected $is_publicly_readable = false; + /** + * Required. Map of tag template field IDs to the settings for the field. + * This map is an exhaustive list of the allowed fields. The map must contain + * at least one field and at most 500 fields. + * The keys to this map are tag template field IDs. The IDs have the + * following limitations: + * * Can contain uppercase and lowercase letters, numbers (0-9) and + * underscores (_). + * * Must be at least 1 character and at most 64 characters long. + * * Must start with a letter or underscore. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the tag template in URL format. + * Note: The tag template itself and its child resources might not be + * stored in the location specified in its name. + * @type string $display_name + * Display name for this template. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * @type bool $is_publicly_readable + * Indicates whether tags created with this template are public. Public tags + * do not require tag template access to appear in + * [ListTags][google.cloud.datacatalog.v1.ListTags] API response. + * Additionally, you can search for a public tag by value with a + * simple search query in addition to using a ``tag:`` predicate. + * @type array|\Google\Protobuf\Internal\MapField $fields + * Required. Map of tag template field IDs to the settings for the field. + * This map is an exhaustive list of the allowed fields. The map must contain + * at least one field and at most 500 fields. + * The keys to this map are tag template field IDs. The IDs have the + * following limitations: + * * Can contain uppercase and lowercase letters, numbers (0-9) and + * underscores (_). + * * Must be at least 1 character and at most 64 characters long. + * * Must start with a letter or underscore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the tag template in URL format. + * Note: The tag template itself and its child resources might not be + * stored in the location specified in its name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the tag template in URL format. + * Note: The tag template itself and its child resources might not be + * stored in the location specified in its 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; + } + + /** + * Display name for this template. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for this template. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 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; + } + + /** + * Indicates whether tags created with this template are public. Public tags + * do not require tag template access to appear in + * [ListTags][google.cloud.datacatalog.v1.ListTags] API response. + * Additionally, you can search for a public tag by value with a + * simple search query in addition to using a ``tag:`` predicate. + * + * Generated from protobuf field bool is_publicly_readable = 5; + * @return bool + */ + public function getIsPubliclyReadable() + { + return $this->is_publicly_readable; + } + + /** + * Indicates whether tags created with this template are public. Public tags + * do not require tag template access to appear in + * [ListTags][google.cloud.datacatalog.v1.ListTags] API response. + * Additionally, you can search for a public tag by value with a + * simple search query in addition to using a ``tag:`` predicate. + * + * Generated from protobuf field bool is_publicly_readable = 5; + * @param bool $var + * @return $this + */ + public function setIsPubliclyReadable($var) + { + GPBUtil::checkBool($var); + $this->is_publicly_readable = $var; + + return $this; + } + + /** + * Required. Map of tag template field IDs to the settings for the field. + * This map is an exhaustive list of the allowed fields. The map must contain + * at least one field and at most 500 fields. + * The keys to this map are tag template field IDs. The IDs have the + * following limitations: + * * Can contain uppercase and lowercase letters, numbers (0-9) and + * underscores (_). + * * Must be at least 1 character and at most 64 characters long. + * * Must start with a letter or underscore. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFields() + { + return $this->fields; + } + + /** + * Required. Map of tag template field IDs to the settings for the field. + * This map is an exhaustive list of the allowed fields. The map must contain + * at least one field and at most 500 fields. + * The keys to this map are tag template field IDs. The IDs have the + * following limitations: + * * Can contain uppercase and lowercase letters, numbers (0-9) and + * underscores (_). + * * Must be at least 1 character and at most 64 characters long. + * * Must start with a letter or underscore. + * + * Generated from protobuf field map fields = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\TagTemplateField::class); + $this->fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplateField.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplateField.php new file mode 100644 index 000000000000..679ab457c1d9 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TagTemplateField.php @@ -0,0 +1,303 @@ +google.cloud.datacatalog.v1.TagTemplateField + */ +class TagTemplateField extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the tag template field in URL format. + * Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` + * Note: The tag template field itself might not be stored in the location + * specified in its 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 64 characters. + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * The display name for this field. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * Required. The type of value this tag field can contain. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = null; + /** + * If true, this field is required. Defaults to false. + * + * Generated from protobuf field bool is_required = 3; + */ + protected $is_required = false; + /** + * The description for this field. Defaults to an empty string. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + /** + * The order of this field with respect to other fields in this tag + * template. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 5; + */ + protected $order = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the tag template field in URL format. + * Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` + * Note: The tag template field itself might not be stored in the location + * specified in its 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 64 characters. + * @type string $display_name + * The display name for this field. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * @type \Google\Cloud\DataCatalog\V1\FieldType $type + * Required. The type of value this tag field can contain. + * @type bool $is_required + * If true, this field is required. Defaults to false. + * @type string $description + * The description for this field. Defaults to an empty string. + * @type int $order + * The order of this field with respect to other fields in this tag + * template. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order and + * field orders within a tag don't have to be sequential. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Tags::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the tag template field in URL format. + * Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` + * Note: The tag template field itself might not be stored in the location + * specified in its 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 64 characters. + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the tag template field in URL format. + * Example: + * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` + * Note: The tag template field itself might not be stored in the location + * specified in its 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 64 characters. + * + * Generated from protobuf field 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; + } + + /** + * The display name for this field. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name for this field. Defaults to an empty string. + * The name must contain only Unicode letters, numbers (0-9), underscores (_), + * dashes (-), spaces ( ), and can't start or end with spaces. + * The maximum length is 200 characters. + * + * 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; + } + + /** + * Required. The type of value this tag field can contain. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\FieldType|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Required. The type of value this tag field can contain. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\FieldType $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\FieldType::class); + $this->type = $var; + + return $this; + } + + /** + * If true, this field is required. Defaults to false. + * + * Generated from protobuf field bool is_required = 3; + * @return bool + */ + public function getIsRequired() + { + return $this->is_required; + } + + /** + * If true, this field is required. Defaults to false. + * + * Generated from protobuf field bool is_required = 3; + * @param bool $var + * @return $this + */ + public function setIsRequired($var) + { + GPBUtil::checkBool($var); + $this->is_required = $var; + + return $this; + } + + /** + * The description for this field. Defaults to an empty string. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description for this field. Defaults to an empty string. + * + * 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; + } + + /** + * The order of this field with respect to other fields in this tag + * template. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 5; + * @return int + */ + public function getOrder() + { + return $this->order; + } + + /** + * The order of this field with respect to other fields in this tag + * template. + * For example, a higher value can indicate a more important field. + * The value can be negative. Multiple fields can have the same order and + * field orders within a tag don't have to be sequential. + * + * Generated from protobuf field int32 order = 5; + * @param int $var + * @return $this + */ + public function setOrder($var) + { + GPBUtil::checkInt32($var); + $this->order = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TaggedEntry.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TaggedEntry.php new file mode 100644 index 000000000000..4145479ad46e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/TaggedEntry.php @@ -0,0 +1,152 @@ +google.cloud.datacatalog.v1.TaggedEntry + */ +class TaggedEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Tags that should be ingested into the Data Catalog. + * Caller should populate template name, column and fields. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $present_tags; + /** + * Optional. Tags that should be deleted from the Data Catalog. + * Caller should populate template name and column only. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $absent_tags; + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\Entry $v1_entry + * Non-encrypted Data Catalog v1 Entry. + * @type array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $present_tags + * Optional. Tags that should be ingested into the Data Catalog. + * Caller should populate template name, column and fields. + * @type array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $absent_tags + * Optional. Tags that should be deleted from the Data Catalog. + * Caller should populate template name and column only. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\DumpContent::initOnce(); + parent::__construct($data); + } + + /** + * Non-encrypted Data Catalog v1 Entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry v1_entry = 1; + * @return \Google\Cloud\DataCatalog\V1\Entry|null + */ + public function getV1Entry() + { + return $this->readOneof(1); + } + + public function hasV1Entry() + { + return $this->hasOneof(1); + } + + /** + * Non-encrypted Data Catalog v1 Entry. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry v1_entry = 1; + * @param \Google\Cloud\DataCatalog\V1\Entry $var + * @return $this + */ + public function setV1Entry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Entry::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Tags that should be ingested into the Data Catalog. + * Caller should populate template name, column and fields. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPresentTags() + { + return $this->present_tags; + } + + /** + * Optional. Tags that should be ingested into the Data Catalog. + * Caller should populate template name, column and fields. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPresentTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->present_tags = $arr; + + return $this; + } + + /** + * Optional. Tags that should be deleted from the Data Catalog. + * Caller should populate template name and column only. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAbsentTags() + { + return $this->absent_tags; + } + + /** + * Optional. Tags that should be deleted from the Data Catalog. + * Caller should populate template name and column only. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DataCatalog\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAbsentTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->absent_tags = $arr; + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy.php new file mode 100644 index 000000000000..e7933040d619 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy.php @@ -0,0 +1,354 @@ +google.cloud.datacatalog.v1.Taxonomy + */ +class Taxonomy extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of this taxonomy in URL format. + * Note: Policy tag manager generates unique taxonomy IDs. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. User-defined name of this taxonomy. + * The name can't start or end with spaces, must contain only Unicode letters, + * numbers, underscores, dashes, and spaces, and be at most 200 bytes long + * when encoded in UTF-8. + * The taxonomy display name must be unique within an organization. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of this taxonomy. If not set, defaults to empty. + * The description must contain only Unicode characters, tabs, newlines, + * carriage returns, and page breaks, and be at most 2000 bytes long when + * encoded in UTF-8. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Number of policy tags in this taxonomy. + * + * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $policy_tag_count = 0; + /** + * Output only. Creation and modification timestamps of this taxonomy. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $taxonomy_timestamps = null; + /** + * Optional. A list of policy types that are activated for this taxonomy. If + * not set, defaults to an empty list. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $activated_policy_types; + /** + * Output only. Identity of the service which owns the Taxonomy. This field is + * only populated when the taxonomy is created by a Google Cloud service. + * Currently only 'DATAPLEX' is supported. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of this taxonomy in URL format. + * Note: Policy tag manager generates unique taxonomy IDs. + * @type string $display_name + * Required. User-defined name of this taxonomy. + * The name can't start or end with spaces, must contain only Unicode letters, + * numbers, underscores, dashes, and spaces, and be at most 200 bytes long + * when encoded in UTF-8. + * The taxonomy display name must be unique within an organization. + * @type string $description + * Optional. Description of this taxonomy. If not set, defaults to empty. + * The description must contain only Unicode characters, tabs, newlines, + * carriage returns, and page breaks, and be at most 2000 bytes long when + * encoded in UTF-8. + * @type int $policy_tag_count + * Output only. Number of policy tags in this taxonomy. + * @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $taxonomy_timestamps + * Output only. Creation and modification timestamps of this taxonomy. + * @type array|\Google\Protobuf\Internal\RepeatedField $activated_policy_types + * Optional. A list of policy types that are activated for this taxonomy. If + * not set, defaults to an empty list. + * @type \Google\Cloud\DataCatalog\V1\Taxonomy\Service $service + * Output only. Identity of the service which owns the Taxonomy. This field is + * only populated when the taxonomy is created by a Google Cloud service. + * Currently only 'DATAPLEX' is supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of this taxonomy in URL format. + * Note: Policy tag manager generates unique taxonomy IDs. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of this taxonomy in URL format. + * Note: Policy tag manager generates unique taxonomy IDs. + * + * 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. User-defined name of this taxonomy. + * The name can't start or end with spaces, must contain only Unicode letters, + * numbers, underscores, dashes, and spaces, and be at most 200 bytes long + * when encoded in UTF-8. + * The taxonomy display name must be unique within an organization. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User-defined name of this taxonomy. + * The name can't start or end with spaces, must contain only Unicode letters, + * numbers, underscores, dashes, and spaces, and be at most 200 bytes long + * when encoded in UTF-8. + * The taxonomy display name must be unique within an organization. + * + * 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 this taxonomy. If not set, defaults to empty. + * The description must contain only Unicode characters, tabs, newlines, + * carriage returns, and page breaks, and be at most 2000 bytes long when + * encoded in UTF-8. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of this taxonomy. If not set, defaults to empty. + * The description must contain only Unicode characters, tabs, newlines, + * carriage returns, and page breaks, and be at most 2000 bytes long when + * encoded in UTF-8. + * + * 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. Number of policy tags in this taxonomy. + * + * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getPolicyTagCount() + { + return $this->policy_tag_count; + } + + /** + * Output only. Number of policy tags in this taxonomy. + * + * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setPolicyTagCount($var) + { + GPBUtil::checkInt32($var); + $this->policy_tag_count = $var; + + return $this; + } + + /** + * Output only. Creation and modification timestamps of this taxonomy. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null + */ + public function getTaxonomyTimestamps() + { + return $this->taxonomy_timestamps; + } + + public function hasTaxonomyTimestamps() + { + return isset($this->taxonomy_timestamps); + } + + public function clearTaxonomyTimestamps() + { + unset($this->taxonomy_timestamps); + } + + /** + * Output only. Creation and modification timestamps of this taxonomy. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var + * @return $this + */ + public function setTaxonomyTimestamps($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class); + $this->taxonomy_timestamps = $var; + + return $this; + } + + /** + * Optional. A list of policy types that are activated for this taxonomy. If + * not set, defaults to an empty list. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActivatedPolicyTypes() + { + return $this->activated_policy_types; + } + + /** + * Optional. A list of policy types that are activated for this taxonomy. If + * not set, defaults to an empty list. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActivatedPolicyTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DataCatalog\V1\Taxonomy\PolicyType::class); + $this->activated_policy_types = $arr; + + return $this; + } + + /** + * Output only. Identity of the service which owns the Taxonomy. This field is + * only populated when the taxonomy is created by a Google Cloud service. + * Currently only 'DATAPLEX' is supported. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\DataCatalog\V1\Taxonomy\Service|null + */ + public function getService() + { + return $this->service; + } + + public function hasService() + { + return isset($this->service); + } + + public function clearService() + { + unset($this->service); + } + + /** + * Output only. Identity of the service which owns the Taxonomy. This field is + * only populated when the taxonomy is created by a Google Cloud service. + * Currently only 'DATAPLEX' is supported. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\DataCatalog\V1\Taxonomy\Service $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Taxonomy\Service::class); + $this->service = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/PolicyType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/PolicyType.php new file mode 100644 index 000000000000..45ad29d6aeac --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/PolicyType.php @@ -0,0 +1,58 @@ +google.cloud.datacatalog.v1.Taxonomy.PolicyType + */ +class PolicyType +{ + /** + * Unspecified policy type. + * + * Generated from protobuf enum POLICY_TYPE_UNSPECIFIED = 0; + */ + const POLICY_TYPE_UNSPECIFIED = 0; + /** + * Fine-grained access control policy that enables access control on + * tagged sub-resources. + * + * Generated from protobuf enum FINE_GRAINED_ACCESS_CONTROL = 1; + */ + const FINE_GRAINED_ACCESS_CONTROL = 1; + + private static $valueToName = [ + self::POLICY_TYPE_UNSPECIFIED => 'POLICY_TYPE_UNSPECIFIED', + self::FINE_GRAINED_ACCESS_CONTROL => 'FINE_GRAINED_ACCESS_CONTROL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PolicyType::class, \Google\Cloud\DataCatalog\V1\Taxonomy_PolicyType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/Service.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/Service.php new file mode 100644 index 000000000000..e7f275427ed8 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/Taxonomy/Service.php @@ -0,0 +1,104 @@ +google.cloud.datacatalog.v1.Taxonomy.Service + */ +class Service extends \Google\Protobuf\Internal\Message +{ + /** + * The Google Cloud service name. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ManagingSystem name = 1; + */ + protected $name = 0; + /** + * The service agent for the service. + * + * Generated from protobuf field string identity = 2; + */ + protected $identity = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $name + * The Google Cloud service name. + * @type string $identity + * The service agent for the service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * The Google Cloud service name. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ManagingSystem name = 1; + * @return int + */ + public function getName() + { + return $this->name; + } + + /** + * The Google Cloud service name. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ManagingSystem name = 1; + * @param int $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ManagingSystem::class); + $this->name = $var; + + return $this; + } + + /** + * The service agent for the service. + * + * Generated from protobuf field string identity = 2; + * @return string + */ + public function getIdentity() + { + return $this->identity; + } + + /** + * The service agent for the service. + * + * Generated from protobuf field string identity = 2; + * @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(Service::class, \Google\Cloud\DataCatalog\V1\Taxonomy_Service::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryRequest.php new file mode 100644 index 000000000000..df58071e2146 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.v1.UnstarEntryRequest + */ +class UnstarEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the entry to mark as **not** starred. + * + * 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 entry to mark as **not** starred. Please see + * {@see DataCatalogClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\V1\UnstarEntryRequest + * + * @experimental + */ + public static function 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 entry to mark as **not** starred. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the entry to mark as **not** starred. + * + * Generated from 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 entry to mark as **not** starred. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryResponse.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryResponse.php new file mode 100644 index 000000000000..e3dd7087e4f6 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UnstarEntryResponse.php @@ -0,0 +1,35 @@ +google.cloud.datacatalog.v1.UnstarEntryResponse + */ +class UnstarEntryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryGroupRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryGroupRequest.php new file mode 100644 index 000000000000..153557fc00c0 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryGroupRequest.php @@ -0,0 +1,166 @@ +google.cloud.datacatalog.v1.UpdateEntryGroupRequest + */ +class UpdateEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Updates for the entry group. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_group = null; + /** + * Names of fields whose values to overwrite on an entry group. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup Required. Updates for the entry group. The `name` field must be set. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateEntryGroupRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup): self + { + return (new self()) + ->setEntryGroup($entryGroup); + } + + /** + * @param \Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup Required. Updates for the entry group. The `name` field must be set. + * @param \Google\Protobuf\FieldMask $updateMask Names of fields whose values to overwrite on an entry group. + * + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateEntryGroupRequest + * + * @experimental + */ + public static function buildFromEntryGroupUpdateMask(\Google\Cloud\DataCatalog\V1\EntryGroup $entryGroup, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntryGroup($entryGroup) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\EntryGroup $entry_group + * Required. Updates for the entry group. The `name` field must be set. + * @type \Google\Protobuf\FieldMask $update_mask + * Names of fields whose values to overwrite on an entry group. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Updates for the entry group. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\EntryGroup|null + */ + public function getEntryGroup() + { + return $this->entry_group; + } + + public function hasEntryGroup() + { + return isset($this->entry_group); + } + + public function clearEntryGroup() + { + unset($this->entry_group); + } + + /** + * Required. Updates for the entry group. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\EntryGroup $var + * @return $this + */ + public function setEntryGroup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\EntryGroup::class); + $this->entry_group = $var; + + return $this; + } + + /** + * Names of fields whose values to overwrite on an entry group. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * 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); + } + + /** + * Names of fields whose values to overwrite on an entry group. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryRequest.php new file mode 100644 index 000000000000..c70ab4025380 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateEntryRequest.php @@ -0,0 +1,258 @@ +google.cloud.datacatalog.v1.UpdateEntryRequest + */ +class UpdateEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Updates for the entry. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry = null; + /** + * Names of fields whose values to overwrite on an entry. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * You can modify only the fields listed below. + * For entries with type `DATA_STREAM`: + * * `schema` + * For entries with type `FILESET`: + * * `schema` + * * `display_name` + * * `description` + * * `gcs_fileset_spec` + * * `gcs_fileset_spec.file_patterns` + * For entries with `user_specified_type`: + * * `schema` + * * `display_name` + * * `description` + * * `user_specified_type` + * * `user_specified_system` + * * `linked_resource` + * * `source_system_timestamps` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\Entry $entry Required. Updates for the entry. The `name` field must be set. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateEntryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\Entry $entry): self + { + return (new self()) + ->setEntry($entry); + } + + /** + * @param \Google\Cloud\DataCatalog\V1\Entry $entry Required. Updates for the entry. The `name` field must be set. + * @param \Google\Protobuf\FieldMask $updateMask Names of fields whose values to overwrite on an entry. + * + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * You can modify only the fields listed below. + * + * For entries with type `DATA_STREAM`: + * + * * `schema` + * + * For entries with type `FILESET`: + * + * * `schema` + * * `display_name` + * * `description` + * * `gcs_fileset_spec` + * * `gcs_fileset_spec.file_patterns` + * + * For entries with `user_specified_type`: + * + * * `schema` + * * `display_name` + * * `description` + * * `user_specified_type` + * * `user_specified_system` + * * `linked_resource` + * * `source_system_timestamps` + * + * @return \Google\Cloud\DataCatalog\V1\UpdateEntryRequest + * + * @experimental + */ + public static function buildFromEntryUpdateMask(\Google\Cloud\DataCatalog\V1\Entry $entry, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntry($entry) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\Entry $entry + * Required. Updates for the entry. The `name` field must be set. + * @type \Google\Protobuf\FieldMask $update_mask + * Names of fields whose values to overwrite on an entry. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * You can modify only the fields listed below. + * For entries with type `DATA_STREAM`: + * * `schema` + * For entries with type `FILESET`: + * * `schema` + * * `display_name` + * * `description` + * * `gcs_fileset_spec` + * * `gcs_fileset_spec.file_patterns` + * For entries with `user_specified_type`: + * * `schema` + * * `display_name` + * * `description` + * * `user_specified_type` + * * `user_specified_system` + * * `linked_resource` + * * `source_system_timestamps` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Updates for the entry. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Required. Updates for the entry. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Entry::class); + $this->entry = $var; + + return $this; + } + + /** + * Names of fields whose values to overwrite on an entry. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * You can modify only the fields listed below. + * For entries with type `DATA_STREAM`: + * * `schema` + * For entries with type `FILESET`: + * * `schema` + * * `display_name` + * * `description` + * * `gcs_fileset_spec` + * * `gcs_fileset_spec.file_patterns` + * For entries with `user_specified_type`: + * * `schema` + * * `display_name` + * * `description` + * * `user_specified_type` + * * `user_specified_system` + * * `linked_resource` + * * `source_system_timestamps` + * + * 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); + } + + /** + * Names of fields whose values to overwrite on an entry. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * You can modify only the fields listed below. + * For entries with type `DATA_STREAM`: + * * `schema` + * For entries with type `FILESET`: + * * `schema` + * * `display_name` + * * `description` + * * `gcs_fileset_spec` + * * `gcs_fileset_spec.file_patterns` + * For entries with `user_specified_type`: + * * `schema` + * * `display_name` + * * `description` + * * `user_specified_type` + * * `user_specified_system` + * * `linked_resource` + * * `source_system_timestamps` + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdatePolicyTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdatePolicyTagRequest.php new file mode 100644 index 000000000000..a51c4f876e53 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdatePolicyTagRequest.php @@ -0,0 +1,156 @@ +google.cloud.datacatalog.v1.UpdatePolicyTagRequest + */ +class UpdatePolicyTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The policy tag to update. You can update only its description, display + * name, and parent policy tag fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; + */ + protected $policy_tag = null; + /** + * Specifies the fields to update. + * You can update only display name, description, and parent policy tag. + * If not set, defaults to all updatable fields. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\PolicyTag $policyTag The policy tag to update. You can update only its description, display + * name, and parent policy tag fields. + * + * @return \Google\Cloud\DataCatalog\V1\UpdatePolicyTagRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\PolicyTag $policyTag): self + { + return (new self()) + ->setPolicyTag($policyTag); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\PolicyTag $policy_tag + * The policy tag to update. You can update only its description, display + * name, and parent policy tag fields. + * @type \Google\Protobuf\FieldMask $update_mask + * Specifies the fields to update. + * You can update only display name, description, and parent policy tag. + * If not set, defaults to all updatable fields. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * The policy tag to update. You can update only its description, display + * name, and parent policy tag fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; + * @return \Google\Cloud\DataCatalog\V1\PolicyTag|null + */ + public function getPolicyTag() + { + return $this->policy_tag; + } + + public function hasPolicyTag() + { + return isset($this->policy_tag); + } + + public function clearPolicyTag() + { + unset($this->policy_tag); + } + + /** + * The policy tag to update. You can update only its description, display + * name, and parent policy tag fields. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; + * @param \Google\Cloud\DataCatalog\V1\PolicyTag $var + * @return $this + */ + public function setPolicyTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\PolicyTag::class); + $this->policy_tag = $var; + + return $this; + } + + /** + * Specifies the fields to update. + * You can update only display name, description, and parent policy tag. + * If not set, defaults to all updatable fields. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * 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); + } + + /** + * Specifies the fields to update. + * You can update only display name, description, and parent policy tag. + * If not set, defaults to all updatable fields. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagRequest.php new file mode 100644 index 000000000000..3be100dbab9f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagRequest.php @@ -0,0 +1,171 @@ +google.cloud.datacatalog.v1.UpdateTagRequest + */ +class UpdateTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The updated tag. The "name" field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag = null; + /** + * Names of fields whose values to overwrite on a tag. Currently, a tag has + * the only modifiable field with the name `fields`. + * In general, if this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\Tag $tag Required. The updated tag. The "name" field must be set. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\Tag $tag): self + { + return (new self()) + ->setTag($tag); + } + + /** + * @param \Google\Cloud\DataCatalog\V1\Tag $tag Required. The updated tag. The "name" field must be set. + * @param \Google\Protobuf\FieldMask $updateMask Names of fields whose values to overwrite on a tag. Currently, a tag has + * the only modifiable field with the name `fields`. + * + * In general, if this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagRequest + * + * @experimental + */ + public static function buildFromTagUpdateMask(\Google\Cloud\DataCatalog\V1\Tag $tag, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTag($tag) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\Tag $tag + * Required. The updated tag. The "name" field must be set. + * @type \Google\Protobuf\FieldMask $update_mask + * Names of fields whose values to overwrite on a tag. Currently, a tag has + * the only modifiable field with the name `fields`. + * In general, if this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The updated tag. The "name" field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\Tag|null + */ + public function getTag() + { + return $this->tag; + } + + public function hasTag() + { + return isset($this->tag); + } + + public function clearTag() + { + unset($this->tag); + } + + /** + * Required. The updated tag. The "name" field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\Tag $var + * @return $this + */ + public function setTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Tag::class); + $this->tag = $var; + + return $this; + } + + /** + * Names of fields whose values to overwrite on a tag. Currently, a tag has + * the only modifiable field with the name `fields`. + * In general, if this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * 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); + } + + /** + * Names of fields whose values to overwrite on a tag. Currently, a tag has + * the only modifiable field with the name `fields`. + * In general, if this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateFieldRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateFieldRequest.php new file mode 100644 index 000000000000..2886ab41f940 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateFieldRequest.php @@ -0,0 +1,253 @@ +google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest + */ +class UpdateTagTemplateFieldRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the tag template field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The template to update. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template_field = null; + /** + * Optional. Names of fields whose values to overwrite on an individual field + * of a tag template. The following fields are modifiable: + * * `display_name` + * * `type.enum_type` + * * `is_required` + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the request + * body, their values are emptied with one exception: when updating an enum + * type, the provided values are merged with the existing values. Therefore, + * enum values can only be added, existing enum values cannot be deleted or + * renamed. + * Additionally, updating a template field from optional to required is + * *not* allowed. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param string $name Required. The name of the tag template field. Please see + * {@see DataCatalogClient::tagTemplateFieldName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField Required. The template to update. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagTemplateFieldRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField): self + { + return (new self()) + ->setName($name) + ->setTagTemplateField($tagTemplateField); + } + + /** + * @param string $name Required. The name of the tag template field. Please see + * {@see DataCatalogClient::tagTemplateFieldName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField Required. The template to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Names of fields whose values to overwrite on an individual field + * of a tag template. The following fields are modifiable: + * + * * `display_name` + * * `type.enum_type` + * * `is_required` + * + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the request + * body, their values are emptied with one exception: when updating an enum + * type, the provided values are merged with the existing values. Therefore, + * enum values can only be added, existing enum values cannot be deleted or + * renamed. + * + * Additionally, updating a template field from optional to required is + * *not* allowed. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagTemplateFieldRequest + * + * @experimental + */ + public static function buildFromNameTagTemplateFieldUpdateMask(string $name, \Google\Cloud\DataCatalog\V1\TagTemplateField $tagTemplateField, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setTagTemplateField($tagTemplateField) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the tag template field. + * @type \Google\Cloud\DataCatalog\V1\TagTemplateField $tag_template_field + * Required. The template to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Names of fields whose values to overwrite on an individual field + * of a tag template. The following fields are modifiable: + * * `display_name` + * * `type.enum_type` + * * `is_required` + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the request + * body, their values are emptied with one exception: when updating an enum + * type, the provided values are merged with the existing values. Therefore, + * enum values can only be added, existing enum values cannot be deleted or + * renamed. + * Additionally, updating a template field from optional to required is + * *not* allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the tag template 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 tag template 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; + } + + /** + * Required. The template to update. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\TagTemplateField|null + */ + public function getTagTemplateField() + { + return $this->tag_template_field; + } + + public function hasTagTemplateField() + { + return isset($this->tag_template_field); + } + + public function clearTagTemplateField() + { + unset($this->tag_template_field); + } + + /** + * Required. The template to update. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\TagTemplateField $var + * @return $this + */ + public function setTagTemplateField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TagTemplateField::class); + $this->tag_template_field = $var; + + return $this; + } + + /** + * Optional. Names of fields whose values to overwrite on an individual field + * of a tag template. The following fields are modifiable: + * * `display_name` + * * `type.enum_type` + * * `is_required` + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the request + * body, their values are emptied with one exception: when updating an enum + * type, the provided values are merged with the existing values. Therefore, + * enum values can only be added, existing enum values cannot be deleted or + * renamed. + * Additionally, updating a template field from optional to required is + * *not* allowed. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field + * of a tag template. The following fields are modifiable: + * * `display_name` + * * `type.enum_type` + * * `is_required` + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the request + * body, their values are emptied with one exception: when updating an enum + * type, the provided values are merged with the existing values. Therefore, + * enum values can only be added, existing enum values cannot be deleted or + * renamed. + * Additionally, updating a template field from optional to required is + * *not* allowed. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateRequest.php new file mode 100644 index 000000000000..8fe3da4bcd3b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTagTemplateRequest.php @@ -0,0 +1,182 @@ +google.cloud.datacatalog.v1.UpdateTagTemplateRequest + */ +class UpdateTagTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The template to update. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_template = null; + /** + * Names of fields whose values to overwrite on a tag template. Currently, + * only `display_name` and `is_publicly_readable` can be overwritten. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate Required. The template to update. The `name` field must be set. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagTemplateRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate): self + { + return (new self()) + ->setTagTemplate($tagTemplate); + } + + /** + * @param \Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate Required. The template to update. The `name` field must be set. + * @param \Google\Protobuf\FieldMask $updateMask Names of fields whose values to overwrite on a tag template. Currently, + * only `display_name` and `is_publicly_readable` can be overwritten. + * + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTagTemplateRequest + * + * @experimental + */ + public static function buildFromTagTemplateUpdateMask(\Google\Cloud\DataCatalog\V1\TagTemplate $tagTemplate, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTagTemplate($tagTemplate) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\TagTemplate $tag_template + * Required. The template to update. The `name` field must be set. + * @type \Google\Protobuf\FieldMask $update_mask + * Names of fields whose values to overwrite on a tag template. Currently, + * only `display_name` and `is_publicly_readable` can be overwritten. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The template to update. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\V1\TagTemplate|null + */ + public function getTagTemplate() + { + return $this->tag_template; + } + + public function hasTagTemplate() + { + return isset($this->tag_template); + } + + public function clearTagTemplate() + { + unset($this->tag_template); + } + + /** + * Required. The template to update. The `name` field must be set. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\V1\TagTemplate $var + * @return $this + */ + public function setTagTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\TagTemplate::class); + $this->tag_template = $var; + + return $this; + } + + /** + * Names of fields whose values to overwrite on a tag template. Currently, + * only `display_name` and `is_publicly_readable` can be overwritten. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. + * + * 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); + } + + /** + * Names of fields whose values to overwrite on a tag template. Currently, + * only `display_name` and `is_publicly_readable` can be overwritten. + * If this parameter is absent or empty, all modifiable fields + * are overwritten. If such fields are non-required and omitted in the + * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTaxonomyRequest.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTaxonomyRequest.php new file mode 100644 index 000000000000..ce0a2830e873 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UpdateTaxonomyRequest.php @@ -0,0 +1,152 @@ +google.cloud.datacatalog.v1.UpdateTaxonomyRequest + */ +class UpdateTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The taxonomy to update. You can update only its description, display name, + * and activated policy types. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; + */ + protected $taxonomy = null; + /** + * Specifies fields to update. If not set, defaults to all fields you can + * update. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy The taxonomy to update. You can update only its description, display name, + * and activated policy types. + * + * @return \Google\Cloud\DataCatalog\V1\UpdateTaxonomyRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy): self + { + return (new self()) + ->setTaxonomy($taxonomy); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\V1\Taxonomy $taxonomy + * The taxonomy to update. You can update only its description, display name, + * and activated policy types. + * @type \Google\Protobuf\FieldMask $update_mask + * Specifies fields to update. If not set, defaults to all fields you can + * update. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce(); + parent::__construct($data); + } + + /** + * The taxonomy to update. You can update only its description, display name, + * and activated policy types. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; + * @return \Google\Cloud\DataCatalog\V1\Taxonomy|null + */ + public function getTaxonomy() + { + return $this->taxonomy; + } + + public function hasTaxonomy() + { + return isset($this->taxonomy); + } + + public function clearTaxonomy() + { + unset($this->taxonomy); + } + + /** + * The taxonomy to update. You can update only its description, display name, + * and activated policy types. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; + * @param \Google\Cloud\DataCatalog\V1\Taxonomy $var + * @return $this + */ + public function setTaxonomy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Taxonomy::class); + $this->taxonomy = $var; + + return $this; + } + + /** + * Specifies fields to update. If not set, defaults to all fields you can + * update. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * 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); + } + + /** + * Specifies fields to update. If not set, defaults to all fields you can + * update. + * For more information, see [FieldMask] + * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). + * + * 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/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageSignal.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageSignal.php new file mode 100644 index 000000000000..55f5ad1161dd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageSignal.php @@ -0,0 +1,203 @@ +google.cloud.datacatalog.v1.UsageSignal + */ +class UsageSignal extends \Google\Protobuf\Internal\Message +{ + /** + * The end timestamp of the duration of usage statistics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + */ + protected $update_time = null; + /** + * Output only. BigQuery usage statistics over each of the predefined time + * ranges. + * Supported time ranges are `{"24H", "7D", "30D"}`. + * + * Generated from protobuf field map usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $usage_within_time_range; + /** + * Common usage statistics over each of the predefined time ranges. + * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * + * Generated from protobuf field map common_usage_within_time_range = 3; + */ + private $common_usage_within_time_range; + /** + * Favorite count in the source system. + * + * Generated from protobuf field optional int64 favorite_count = 4; + */ + protected $favorite_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $update_time + * The end timestamp of the duration of usage statistics. + * @type array|\Google\Protobuf\Internal\MapField $usage_within_time_range + * Output only. BigQuery usage statistics over each of the predefined time + * ranges. + * Supported time ranges are `{"24H", "7D", "30D"}`. + * @type array|\Google\Protobuf\Internal\MapField $common_usage_within_time_range + * Common usage statistics over each of the predefined time ranges. + * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * @type int|string $favorite_count + * Favorite count in the source system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Usage::initOnce(); + parent::__construct($data); + } + + /** + * The end timestamp of the duration of usage statistics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + * @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 end timestamp of the duration of usage statistics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + * @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. BigQuery usage statistics over each of the predefined time + * ranges. + * Supported time ranges are `{"24H", "7D", "30D"}`. + * + * Generated from protobuf field map usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getUsageWithinTimeRange() + { + return $this->usage_within_time_range; + } + + /** + * Output only. BigQuery usage statistics over each of the predefined time + * ranges. + * Supported time ranges are `{"24H", "7D", "30D"}`. + * + * Generated from protobuf field map usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setUsageWithinTimeRange($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\UsageStats::class); + $this->usage_within_time_range = $arr; + + return $this; + } + + /** + * Common usage statistics over each of the predefined time ranges. + * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * + * Generated from protobuf field map common_usage_within_time_range = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getCommonUsageWithinTimeRange() + { + return $this->common_usage_within_time_range; + } + + /** + * Common usage statistics over each of the predefined time ranges. + * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * + * Generated from protobuf field map common_usage_within_time_range = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setCommonUsageWithinTimeRange($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\CommonUsageStats::class); + $this->common_usage_within_time_range = $arr; + + return $this; + } + + /** + * Favorite count in the source system. + * + * Generated from protobuf field optional int64 favorite_count = 4; + * @return int|string + */ + public function getFavoriteCount() + { + return isset($this->favorite_count) ? $this->favorite_count : 0; + } + + public function hasFavoriteCount() + { + return isset($this->favorite_count); + } + + public function clearFavoriteCount() + { + unset($this->favorite_count); + } + + /** + * Favorite count in the source system. + * + * Generated from protobuf field optional int64 favorite_count = 4; + * @param int|string $var + * @return $this + */ + public function setFavoriteCount($var) + { + GPBUtil::checkInt64($var); + $this->favorite_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageStats.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageStats.php new file mode 100644 index 000000000000..c98875850054 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/UsageStats.php @@ -0,0 +1,176 @@ +google.cloud.datacatalog.v1.UsageStats + */ +class UsageStats extends \Google\Protobuf\Internal\Message +{ + /** + * The number of successful uses of the underlying entry. + * + * Generated from protobuf field float total_completions = 1; + */ + protected $total_completions = 0.0; + /** + * The number of failed attempts to use the underlying entry. + * + * Generated from protobuf field float total_failures = 2; + */ + protected $total_failures = 0.0; + /** + * The number of cancelled attempts to use the underlying entry. + * + * Generated from protobuf field float total_cancellations = 3; + */ + protected $total_cancellations = 0.0; + /** + * Total time spent only on successful uses, in milliseconds. + * + * Generated from protobuf field float total_execution_time_for_completions_millis = 4; + */ + protected $total_execution_time_for_completions_millis = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $total_completions + * The number of successful uses of the underlying entry. + * @type float $total_failures + * The number of failed attempts to use the underlying entry. + * @type float $total_cancellations + * The number of cancelled attempts to use the underlying entry. + * @type float $total_execution_time_for_completions_millis + * Total time spent only on successful uses, in milliseconds. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Usage::initOnce(); + parent::__construct($data); + } + + /** + * The number of successful uses of the underlying entry. + * + * Generated from protobuf field float total_completions = 1; + * @return float + */ + public function getTotalCompletions() + { + return $this->total_completions; + } + + /** + * The number of successful uses of the underlying entry. + * + * Generated from protobuf field float total_completions = 1; + * @param float $var + * @return $this + */ + public function setTotalCompletions($var) + { + GPBUtil::checkFloat($var); + $this->total_completions = $var; + + return $this; + } + + /** + * The number of failed attempts to use the underlying entry. + * + * Generated from protobuf field float total_failures = 2; + * @return float + */ + public function getTotalFailures() + { + return $this->total_failures; + } + + /** + * The number of failed attempts to use the underlying entry. + * + * Generated from protobuf field float total_failures = 2; + * @param float $var + * @return $this + */ + public function setTotalFailures($var) + { + GPBUtil::checkFloat($var); + $this->total_failures = $var; + + return $this; + } + + /** + * The number of cancelled attempts to use the underlying entry. + * + * Generated from protobuf field float total_cancellations = 3; + * @return float + */ + public function getTotalCancellations() + { + return $this->total_cancellations; + } + + /** + * The number of cancelled attempts to use the underlying entry. + * + * Generated from protobuf field float total_cancellations = 3; + * @param float $var + * @return $this + */ + public function setTotalCancellations($var) + { + GPBUtil::checkFloat($var); + $this->total_cancellations = $var; + + return $this; + } + + /** + * Total time spent only on successful uses, in milliseconds. + * + * Generated from protobuf field float total_execution_time_for_completions_millis = 4; + * @return float + */ + public function getTotalExecutionTimeForCompletionsMillis() + { + return $this->total_execution_time_for_completions_millis; + } + + /** + * Total time spent only on successful uses, in milliseconds. + * + * Generated from protobuf field float total_execution_time_for_completions_millis = 4; + * @param float $var + * @return $this + */ + public function setTotalExecutionTimeForCompletionsMillis($var) + { + GPBUtil::checkFloat($var); + $this->total_execution_time_for_completions_millis = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec.php new file mode 100644 index 000000000000..e81f1f14226e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec.php @@ -0,0 +1,105 @@ +google.cloud.datacatalog.v1.VertexDatasetSpec + */ +class VertexDatasetSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The number of DataItems in this Dataset. Only apply for non-structured + * Dataset. + * + * Generated from protobuf field int64 data_item_count = 1; + */ + protected $data_item_count = 0; + /** + * Type of the dataset. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; + */ + protected $data_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $data_item_count + * The number of DataItems in this Dataset. Only apply for non-structured + * Dataset. + * @type int $data_type + * Type of the dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The number of DataItems in this Dataset. Only apply for non-structured + * Dataset. + * + * Generated from protobuf field int64 data_item_count = 1; + * @return int|string + */ + public function getDataItemCount() + { + return $this->data_item_count; + } + + /** + * The number of DataItems in this Dataset. Only apply for non-structured + * Dataset. + * + * Generated from protobuf field int64 data_item_count = 1; + * @param int|string $var + * @return $this + */ + public function setDataItemCount($var) + { + GPBUtil::checkInt64($var); + $this->data_item_count = $var; + + return $this; + } + + /** + * Type of the dataset. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; + * @return int + */ + public function getDataType() + { + return $this->data_type; + } + + /** + * Type of the dataset. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; + * @param int $var + * @return $this + */ + public function setDataType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\VertexDatasetSpec\DataType::class); + $this->data_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec/DataType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec/DataType.php new file mode 100644 index 000000000000..a5372cf15e3b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexDatasetSpec/DataType.php @@ -0,0 +1,138 @@ +google.cloud.datacatalog.v1.VertexDatasetSpec.DataType + */ +class DataType +{ + /** + * Should not be used. + * + * Generated from protobuf enum DATA_TYPE_UNSPECIFIED = 0; + */ + const DATA_TYPE_UNSPECIFIED = 0; + /** + * Structured data dataset. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * Image dataset which supports ImageClassification, ImageObjectDetection + * and ImageSegmentation problems. + * + * Generated from protobuf enum IMAGE = 2; + */ + const IMAGE = 2; + /** + * Document dataset which supports TextClassification, TextExtraction and + * TextSentiment problems. + * + * Generated from protobuf enum TEXT = 3; + */ + const TEXT = 3; + /** + * Video dataset which supports VideoClassification, VideoObjectTracking and + * VideoActionRecognition problems. + * + * Generated from protobuf enum VIDEO = 4; + */ + const VIDEO = 4; + /** + * Conversation dataset which supports conversation problems. + * + * Generated from protobuf enum CONVERSATION = 5; + */ + const CONVERSATION = 5; + /** + * TimeSeries dataset. + * + * Generated from protobuf enum TIME_SERIES = 6; + */ + const TIME_SERIES = 6; + /** + * Document dataset which supports DocumentAnnotation problems. + * + * Generated from protobuf enum DOCUMENT = 7; + */ + const DOCUMENT = 7; + /** + * TextToSpeech dataset which supports TextToSpeech problems. + * + * Generated from protobuf enum TEXT_TO_SPEECH = 8; + */ + const TEXT_TO_SPEECH = 8; + /** + * Translation dataset which supports Translation problems. + * + * Generated from protobuf enum TRANSLATION = 9; + */ + const TRANSLATION = 9; + /** + * Store Vision dataset which is used for HITL integration. + * + * Generated from protobuf enum STORE_VISION = 10; + */ + const STORE_VISION = 10; + /** + * Enterprise Knowledge Graph dataset which is used for HITL labeling + * integration. + * + * Generated from protobuf enum ENTERPRISE_KNOWLEDGE_GRAPH = 11; + */ + const ENTERPRISE_KNOWLEDGE_GRAPH = 11; + /** + * Text prompt dataset which supports Large Language Models. + * + * Generated from protobuf enum TEXT_PROMPT = 12; + */ + const TEXT_PROMPT = 12; + + private static $valueToName = [ + self::DATA_TYPE_UNSPECIFIED => 'DATA_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::IMAGE => 'IMAGE', + self::TEXT => 'TEXT', + self::VIDEO => 'VIDEO', + self::CONVERSATION => 'CONVERSATION', + self::TIME_SERIES => 'TIME_SERIES', + self::DOCUMENT => 'DOCUMENT', + self::TEXT_TO_SPEECH => 'TEXT_TO_SPEECH', + self::TRANSLATION => 'TRANSLATION', + self::STORE_VISION => 'STORE_VISION', + self::ENTERPRISE_KNOWLEDGE_GRAPH => 'ENTERPRISE_KNOWLEDGE_GRAPH', + self::TEXT_PROMPT => 'TEXT_PROMPT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataCatalog\V1\VertexDatasetSpec_DataType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo.php new file mode 100644 index 000000000000..276df35d3029 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo.php @@ -0,0 +1,109 @@ +google.cloud.datacatalog.v1.VertexModelSourceInfo + */ +class VertexModelSourceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the model source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; + */ + protected $source_type = 0; + /** + * If this Model is copy of another Model. If true then + * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type] + * pertains to the original. + * + * Generated from protobuf field bool copy = 2; + */ + protected $copy = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $source_type + * Type of the model source. + * @type bool $copy + * If this Model is copy of another Model. If true then + * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type] + * pertains to the original. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * Type of the model source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * Type of the model source. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo\ModelSourceType::class); + $this->source_type = $var; + + return $this; + } + + /** + * If this Model is copy of another Model. If true then + * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type] + * pertains to the original. + * + * Generated from protobuf field bool copy = 2; + * @return bool + */ + public function getCopy() + { + return $this->copy; + } + + /** + * If this Model is copy of another Model. If true then + * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type] + * pertains to the original. + * + * Generated from protobuf field bool copy = 2; + * @param bool $var + * @return $this + */ + public function setCopy($var) + { + GPBUtil::checkBool($var); + $this->copy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo/ModelSourceType.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo/ModelSourceType.php new file mode 100644 index 000000000000..7b0e1d42765c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSourceInfo/ModelSourceType.php @@ -0,0 +1,78 @@ +google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType + */ +class ModelSourceType +{ + /** + * Should not be used. + * + * Generated from protobuf enum MODEL_SOURCE_TYPE_UNSPECIFIED = 0; + */ + const MODEL_SOURCE_TYPE_UNSPECIFIED = 0; + /** + * The Model is uploaded by automl training pipeline. + * + * Generated from protobuf enum AUTOML = 1; + */ + const AUTOML = 1; + /** + * The Model is uploaded by user or custom training pipeline. + * + * Generated from protobuf enum CUSTOM = 2; + */ + const CUSTOM = 2; + /** + * The Model is registered and sync'ed from BigQuery ML. + * + * Generated from protobuf enum BQML = 3; + */ + const BQML = 3; + /** + * The Model is saved or tuned from Model Garden. + * + * Generated from protobuf enum MODEL_GARDEN = 4; + */ + const MODEL_GARDEN = 4; + + private static $valueToName = [ + self::MODEL_SOURCE_TYPE_UNSPECIFIED => 'MODEL_SOURCE_TYPE_UNSPECIFIED', + self::AUTOML => 'AUTOML', + self::CUSTOM => 'CUSTOM', + self::BQML => 'BQML', + self::MODEL_GARDEN => 'MODEL_GARDEN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ModelSourceType::class, \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo_ModelSourceType::class); + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSpec.php new file mode 100644 index 000000000000..649d11443130 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/VertexModelSpec.php @@ -0,0 +1,221 @@ +google.cloud.datacatalog.v1.VertexModelSpec + */ +class VertexModelSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The version ID of the model. + * + * Generated from protobuf field string version_id = 1; + */ + protected $version_id = ''; + /** + * User provided version aliases so that a model version can be referenced via + * alias + * + * Generated from protobuf field repeated string version_aliases = 2; + */ + private $version_aliases; + /** + * The description of this version. + * + * Generated from protobuf field string version_description = 3; + */ + protected $version_description = ''; + /** + * Source of a Vertex model. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; + */ + protected $vertex_model_source_info = null; + /** + * URI of the Docker image to be used as the custom container for serving + * predictions. + * + * Generated from protobuf field string container_image_uri = 5; + */ + protected $container_image_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version_id + * The version ID of the model. + * @type array|\Google\Protobuf\Internal\RepeatedField $version_aliases + * User provided version aliases so that a model version can be referenced via + * alias + * @type string $version_description + * The description of this version. + * @type \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo $vertex_model_source_info + * Source of a Vertex model. + * @type string $container_image_uri + * URI of the Docker image to be used as the custom container for serving + * predictions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce(); + parent::__construct($data); + } + + /** + * The version ID of the model. + * + * Generated from protobuf field string version_id = 1; + * @return string + */ + public function getVersionId() + { + return $this->version_id; + } + + /** + * The version ID of the model. + * + * Generated from protobuf field string version_id = 1; + * @param string $var + * @return $this + */ + public function setVersionId($var) + { + GPBUtil::checkString($var, True); + $this->version_id = $var; + + return $this; + } + + /** + * User provided version aliases so that a model version can be referenced via + * alias + * + * Generated from protobuf field repeated string version_aliases = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVersionAliases() + { + return $this->version_aliases; + } + + /** + * User provided version aliases so that a model version can be referenced via + * alias + * + * Generated from protobuf field repeated string version_aliases = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVersionAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->version_aliases = $arr; + + return $this; + } + + /** + * The description of this version. + * + * Generated from protobuf field string version_description = 3; + * @return string + */ + public function getVersionDescription() + { + return $this->version_description; + } + + /** + * The description of this version. + * + * Generated from protobuf field string version_description = 3; + * @param string $var + * @return $this + */ + public function setVersionDescription($var) + { + GPBUtil::checkString($var, True); + $this->version_description = $var; + + return $this; + } + + /** + * Source of a Vertex model. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; + * @return \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo|null + */ + public function getVertexModelSourceInfo() + { + return $this->vertex_model_source_info; + } + + public function hasVertexModelSourceInfo() + { + return isset($this->vertex_model_source_info); + } + + public function clearVertexModelSourceInfo() + { + unset($this->vertex_model_source_info); + } + + /** + * Source of a Vertex model. + * + * Generated from protobuf field .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; + * @param \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo $var + * @return $this + */ + public function setVertexModelSourceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\VertexModelSourceInfo::class); + $this->vertex_model_source_info = $var; + + return $this; + } + + /** + * URI of the Docker image to be used as the custom container for serving + * predictions. + * + * Generated from protobuf field string container_image_uri = 5; + * @return string + */ + public function getContainerImageUri() + { + return $this->container_image_uri; + } + + /** + * URI of the Docker image to be used as the custom container for serving + * predictions. + * + * Generated from protobuf field string container_image_uri = 5; + * @param string $var + * @return $this + */ + public function setContainerImageUri($var) + { + GPBUtil::checkString($var, True); + $this->container_image_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ViewSpec.php b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ViewSpec.php new file mode 100644 index 000000000000..644575cef61f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/proto/src/Google/Cloud/DataCatalog/V1/ViewSpec.php @@ -0,0 +1,67 @@ +google.cloud.datacatalog.v1.ViewSpec + */ +class ViewSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The query that defines the table view. + * + * Generated from protobuf field string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $view_query = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $view_query + * Output only. The query that defines the table view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\TableSpec::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The query that defines the table view. + * + * Generated from protobuf field string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getViewQuery() + { + return $this->view_query; + } + + /** + * Output only. The query that defines the table view. + * + * Generated from protobuf field string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setViewQuery($var) + { + GPBUtil::checkString($var, True); + $this->view_query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry.php new file mode 100644 index 000000000000..4dd1d3277a7f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry.php @@ -0,0 +1,93 @@ +setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $dataCatalogClient->createEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataCatalogClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = '[ENTRY_ID]'; + + create_entry_sample($formattedParent, $entryId); +} +// [END datacatalog_v1_generated_DataCatalog_CreateEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry_group.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry_group.php new file mode 100644 index 000000000000..761af51e7844 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_entry_group.php @@ -0,0 +1,108 @@ +setParent($formattedParent) + ->setEntryGroupId($entryGroupId); + + // Call the API and handle any network failures. + try { + /** @var EntryGroup $response */ + $response = $dataCatalogClient->createEntryGroup($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataCatalogClient::locationName('[PROJECT]', '[LOCATION]'); + $entryGroupId = '[ENTRY_GROUP_ID]'; + + create_entry_group_sample($formattedParent, $entryGroupId); +} +// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag.php new file mode 100644 index 000000000000..4061327f5863 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag.php @@ -0,0 +1,104 @@ +setTemplate($tagTemplate) + ->setFields($tagFields); + $request = (new CreateTagRequest()) + ->setParent($formattedParent) + ->setTag($tag); + + // Call the API and handle any network failures. + try { + /** @var Tag $response */ + $response = $dataCatalogClient->createTag($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + $tagTemplate = '[TEMPLATE]'; + + create_tag_sample($formattedParent, $tagTemplate); +} +// [END datacatalog_v1_generated_DataCatalog_CreateTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template.php new file mode 100644 index 000000000000..bc9de5a75d2c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template.php @@ -0,0 +1,88 @@ +setFields($tagTemplateFields); + $request = (new CreateTagTemplateRequest()) + ->setParent($formattedParent) + ->setTagTemplateId($tagTemplateId) + ->setTagTemplate($tagTemplate); + + // Call the API and handle any network failures. + try { + /** @var TagTemplate $response */ + $response = $dataCatalogClient->createTagTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataCatalogClient::locationName('[PROJECT]', '[LOCATION]'); + $tagTemplateId = '[TAG_TEMPLATE_ID]'; + + create_tag_template_sample($formattedParent, $tagTemplateId); +} +// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template_field.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template_field.php new file mode 100644 index 000000000000..5f451e37bb57 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/create_tag_template_field.php @@ -0,0 +1,93 @@ +setType($tagTemplateFieldType); + $request = (new CreateTagTemplateFieldRequest()) + ->setParent($formattedParent) + ->setTagTemplateFieldId($tagTemplateFieldId) + ->setTagTemplateField($tagTemplateField); + + // Call the API and handle any network failures. + try { + /** @var TagTemplateField $response */ + $response = $dataCatalogClient->createTagTemplateField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataCatalogClient::tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $tagTemplateFieldId = '[TAG_TEMPLATE_FIELD_ID]'; + + create_tag_template_field_sample($formattedParent, $tagTemplateFieldId); +} +// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry.php new file mode 100644 index 000000000000..3167594c9fec --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry.php @@ -0,0 +1,83 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataCatalogClient->deleteEntry($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 = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + delete_entry_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry_group.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry_group.php new file mode 100644 index 000000000000..8a07f05ee423 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_entry_group.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataCatalogClient->deleteEntryGroup($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 = DataCatalogClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + delete_entry_group_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag.php new file mode 100644 index 000000000000..3e26ffd7d0ed --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataCatalogClient->deleteTag($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 = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + delete_tag_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_DeleteTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template.php new file mode 100644 index 000000000000..deb0e563d495 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template.php @@ -0,0 +1,78 @@ +setName($formattedName) + ->setForce($force); + + // Call the API and handle any network failures. + try { + $dataCatalogClient->deleteTagTemplate($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 = DataCatalogClient::tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $force = false; + + delete_tag_template_sample($formattedName, $force); +} +// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template_field.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template_field.php new file mode 100644 index 000000000000..edf3fb3d8e5f --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/delete_tag_template_field.php @@ -0,0 +1,84 @@ +setName($formattedName) + ->setForce($force); + + // Call the API and handle any network failures. + try { + $dataCatalogClient->deleteTagTemplateField($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 = DataCatalogClient::tagTemplateFieldName( + '[PROJECT]', + '[LOCATION]', + '[TAG_TEMPLATE]', + '[FIELD]' + ); + $force = false; + + delete_tag_template_field_sample($formattedName, $force); +} +// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry.php new file mode 100644 index 000000000000..14162f257d67 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $dataCatalogClient->getEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + get_entry_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_GetEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry_group.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry_group.php new file mode 100644 index 000000000000..1b7207067afc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_entry_group.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntryGroup $response */ + $response = $dataCatalogClient->getEntryGroup($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + get_entry_group_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_iam_policy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_iam_policy.php new file mode 100644 index 000000000000..54bdb4a9b0aa --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_iam_policy.php @@ -0,0 +1,91 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataCatalogClient->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 datacatalog_v1_generated_DataCatalog_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_tag_template.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_tag_template.php new file mode 100644 index 000000000000..5bb5bf4d3020 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/get_tag_template.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TagTemplate $response */ + $response = $dataCatalogClient->getTagTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + + get_tag_template_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/import_entries.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/import_entries.php new file mode 100644 index 000000000000..1a926d1498ed --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/import_entries.php @@ -0,0 +1,100 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataCatalogClient->importEntries($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ImportEntriesResponse $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 = DataCatalogClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + import_entries_sample($formattedParent); +} +// [END datacatalog_v1_generated_DataCatalog_ImportEntries_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entries.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entries.php new file mode 100644 index 000000000000..2147a84e8383 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entries.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataCatalogClient->listEntries($request); + + /** @var Entry $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 = DataCatalogClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + list_entries_sample($formattedParent); +} +// [END datacatalog_v1_generated_DataCatalog_ListEntries_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entry_groups.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entry_groups.php new file mode 100644 index 000000000000..c41deda94967 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_entry_groups.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataCatalogClient->listEntryGroups($request); + + /** @var EntryGroup $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 = DataCatalogClient::locationName('[PROJECT]', '[LOCATION]'); + + list_entry_groups_sample($formattedParent); +} +// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_tags.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_tags.php new file mode 100644 index 000000000000..5ad2673d22cd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/list_tags.php @@ -0,0 +1,87 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataCatalogClient->listTags($request); + + /** @var Tag $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 = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + list_tags_sample($formattedParent); +} +// [END datacatalog_v1_generated_DataCatalog_ListTags_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/lookup_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/lookup_entry.php new file mode 100644 index 000000000000..5bbe2a87b29a --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/lookup_entry.php @@ -0,0 +1,59 @@ +lookupEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_DataCatalog_LookupEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_contacts.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_contacts.php new file mode 100644 index 000000000000..8927dbe7fb60 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_contacts.php @@ -0,0 +1,82 @@ +setName($formattedName) + ->setContacts($contacts); + + // Call the API and handle any network failures. + try { + /** @var Contacts $response */ + $response = $dataCatalogClient->modifyEntryContacts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + modify_entry_contacts_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_overview.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_overview.php new file mode 100644 index 000000000000..f52dace8fdcc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/modify_entry_overview.php @@ -0,0 +1,82 @@ +setName($formattedName) + ->setEntryOverview($entryOverview); + + // Call the API and handle any network failures. + try { + /** @var EntryOverview $response */ + $response = $dataCatalogClient->modifyEntryOverview($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + modify_entry_overview_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/reconcile_tags.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/reconcile_tags.php new file mode 100644 index 000000000000..22bddd479e30 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/reconcile_tags.php @@ -0,0 +1,108 @@ +setParent($formattedParent) + ->setTagTemplate($formattedTagTemplate); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataCatalogClient->reconcileTags($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ReconcileTagsResponse $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 = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + $formattedTagTemplate = DataCatalogClient::tagTemplateName( + '[PROJECT]', + '[LOCATION]', + '[TAG_TEMPLATE]' + ); + + reconcile_tags_sample($formattedParent, $formattedTagTemplate); +} +// [END datacatalog_v1_generated_DataCatalog_ReconcileTags_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field.php new file mode 100644 index 000000000000..4581efa721a7 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field.php @@ -0,0 +1,86 @@ +setName($formattedName) + ->setNewTagTemplateFieldId($newTagTemplateFieldId); + + // Call the API and handle any network failures. + try { + /** @var TagTemplateField $response */ + $response = $dataCatalogClient->renameTagTemplateField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::tagTemplateFieldName( + '[PROJECT]', + '[LOCATION]', + '[TAG_TEMPLATE]', + '[FIELD]' + ); + $newTagTemplateFieldId = '[NEW_TAG_TEMPLATE_FIELD_ID]'; + + rename_tag_template_field_sample($formattedName, $newTagTemplateFieldId); +} +// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field_enum_value.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field_enum_value.php new file mode 100644 index 000000000000..39f19f957110 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/rename_tag_template_field_enum_value.php @@ -0,0 +1,85 @@ +setName($formattedName) + ->setNewEnumValueDisplayName($newEnumValueDisplayName); + + // Call the API and handle any network failures. + try { + /** @var TagTemplateField $response */ + $response = $dataCatalogClient->renameTagTemplateFieldEnumValue($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::tagTemplateFieldEnumValueName( + '[PROJECT]', + '[LOCATION]', + '[TAG_TEMPLATE]', + '[TAG_TEMPLATE_FIELD_ID]', + '[ENUM_VALUE_DISPLAY_NAME]' + ); + $newEnumValueDisplayName = '[NEW_ENUM_VALUE_DISPLAY_NAME]'; + + rename_tag_template_field_enum_value_sample($formattedName, $newEnumValueDisplayName); +} +// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/search_catalog.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/search_catalog.php new file mode 100644 index 000000000000..1035bf2e885d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/search_catalog.php @@ -0,0 +1,103 @@ +setScope($scope) + ->setQuery($query); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataCatalogClient->searchCatalog($request); + + /** @var SearchCatalogResult $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_catalog_sample($query); +} +// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/set_iam_policy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/set_iam_policy.php new file mode 100644 index 000000000000..6c20d2af5444 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/set_iam_policy.php @@ -0,0 +1,89 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataCatalogClient->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 datacatalog_v1_generated_DataCatalog_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/star_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/star_entry.php new file mode 100644 index 000000000000..e7977c4e447b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/star_entry.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var StarEntryResponse $response */ + $response = $dataCatalogClient->starEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + star_entry_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_StarEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/test_iam_permissions.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/test_iam_permissions.php new file mode 100644 index 000000000000..2917991507d4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/test_iam_permissions.php @@ -0,0 +1,91 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataCatalogClient->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 datacatalog_v1_generated_DataCatalog_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/unstar_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/unstar_entry.php new file mode 100644 index 000000000000..2e9c9e3102c1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/unstar_entry.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var UnstarEntryResponse $response */ + $response = $dataCatalogClient->unstarEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + unstar_entry_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_UnstarEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry.php new file mode 100644 index 000000000000..52bcb75026b2 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry.php @@ -0,0 +1,64 @@ +setEntry($entry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $dataCatalogClient->updateEntry($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry_group.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry_group.php new file mode 100644 index 000000000000..d8cc9a6a0f99 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_entry_group.php @@ -0,0 +1,64 @@ +setEntryGroup($entryGroup); + + // Call the API and handle any network failures. + try { + /** @var EntryGroup $response */ + $response = $dataCatalogClient->updateEntryGroup($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag.php new file mode 100644 index 000000000000..2d355163a80e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag.php @@ -0,0 +1,78 @@ +setTemplate($tagTemplate) + ->setFields($tagFields); + $request = (new UpdateTagRequest()) + ->setTag($tag); + + // Call the API and handle any network failures. + try { + /** @var Tag $response */ + $response = $dataCatalogClient->updateTag($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $tagTemplate = '[TEMPLATE]'; + + update_tag_sample($tagTemplate); +} +// [END datacatalog_v1_generated_DataCatalog_UpdateTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template.php new file mode 100644 index 000000000000..063c43ec7c34 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template.php @@ -0,0 +1,69 @@ +setFields($tagTemplateFields); + $request = (new UpdateTagTemplateRequest()) + ->setTagTemplate($tagTemplate); + + // Call the API and handle any network failures. + try { + /** @var TagTemplate $response */ + $response = $dataCatalogClient->updateTagTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template_field.php b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template_field.php new file mode 100644 index 000000000000..eadd6100895c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/DataCatalogClient/update_tag_template_field.php @@ -0,0 +1,88 @@ +setType($tagTemplateFieldType); + $request = (new UpdateTagTemplateFieldRequest()) + ->setName($formattedName) + ->setTagTemplateField($tagTemplateField); + + // Call the API and handle any network failures. + try { + /** @var TagTemplateField $response */ + $response = $dataCatalogClient->updateTagTemplateField($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataCatalogClient::tagTemplateFieldName( + '[PROJECT]', + '[LOCATION]', + '[TAG_TEMPLATE]', + '[FIELD]' + ); + + update_tag_template_field_sample($formattedName); +} +// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_policy_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_policy_tag.php new file mode 100644 index 000000000000..b55f3aa145c0 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_policy_tag.php @@ -0,0 +1,71 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PolicyTag $response */ + $response = $policyTagManagerClient->createPolicyTag($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PolicyTagManagerClient::taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + + create_policy_tag_sample($formattedParent); +} +// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_taxonomy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_taxonomy.php new file mode 100644 index 000000000000..2297b2bace11 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/create_taxonomy.php @@ -0,0 +1,73 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var Taxonomy $response */ + $response = $policyTagManagerClient->createTaxonomy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PolicyTagManagerClient::locationName('[PROJECT]', '[LOCATION]'); + + create_taxonomy_sample($formattedParent); +} +// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_policy_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_policy_tag.php new file mode 100644 index 000000000000..24d5fbaa5de8 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_policy_tag.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $policyTagManagerClient->deletePolicyTag($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 = PolicyTagManagerClient::policyTagName( + '[PROJECT]', + '[LOCATION]', + '[TAXONOMY]', + '[POLICY_TAG]' + ); + + delete_policy_tag_sample($formattedName); +} +// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_taxonomy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_taxonomy.php new file mode 100644 index 000000000000..332e1d05e10d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/delete_taxonomy.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $policyTagManagerClient->deleteTaxonomy($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 = PolicyTagManagerClient::taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + + delete_taxonomy_sample($formattedName); +} +// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_iam_policy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_iam_policy.php new file mode 100644 index 000000000000..d9b104d5531c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_iam_policy.php @@ -0,0 +1,71 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $policyTagManagerClient->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 datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_policy_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_policy_tag.php new file mode 100644 index 000000000000..fafde96fa062 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_policy_tag.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PolicyTag $response */ + $response = $policyTagManagerClient->getPolicyTag($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PolicyTagManagerClient::policyTagName( + '[PROJECT]', + '[LOCATION]', + '[TAXONOMY]', + '[POLICY_TAG]' + ); + + get_policy_tag_sample($formattedName); +} +// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_taxonomy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_taxonomy.php new file mode 100644 index 000000000000..7958be7f7594 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/get_taxonomy.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Taxonomy $response */ + $response = $policyTagManagerClient->getTaxonomy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PolicyTagManagerClient::taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + + get_taxonomy_sample($formattedName); +} +// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_policy_tags.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_policy_tags.php new file mode 100644 index 000000000000..be2e0b3af801 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_policy_tags.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $policyTagManagerClient->listPolicyTags($request); + + /** @var PolicyTag $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 = PolicyTagManagerClient::taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + + list_policy_tags_sample($formattedParent); +} +// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_taxonomies.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_taxonomies.php new file mode 100644 index 000000000000..e3a043ecd47d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/list_taxonomies.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $policyTagManagerClient->listTaxonomies($request); + + /** @var Taxonomy $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 = PolicyTagManagerClient::locationName('[PROJECT]', '[LOCATION]'); + + list_taxonomies_sample($formattedParent); +} +// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/set_iam_policy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/set_iam_policy.php new file mode 100644 index 000000000000..8189a8162704 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/set_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $policyTagManagerClient->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 datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/test_iam_permissions.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/test_iam_permissions.php new file mode 100644 index 000000000000..ca75b4550cca --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/test_iam_permissions.php @@ -0,0 +1,79 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $policyTagManagerClient->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 datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_policy_tag.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_policy_tag.php new file mode 100644 index 000000000000..e5fe0710f74b --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_policy_tag.php @@ -0,0 +1,58 @@ +updatePolicyTag($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_taxonomy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_taxonomy.php new file mode 100644 index 000000000000..85e7f4a3e623 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerClient/update_taxonomy.php @@ -0,0 +1,58 @@ +updateTaxonomy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/export_taxonomies.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/export_taxonomies.php new file mode 100644 index 000000000000..8c745f1d0b14 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/export_taxonomies.php @@ -0,0 +1,88 @@ +setParent($formattedParent) + ->setTaxonomies($formattedTaxonomies); + + // Call the API and handle any network failures. + try { + /** @var ExportTaxonomiesResponse $response */ + $response = $policyTagManagerSerializationClient->exportTaxonomies($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PolicyTagManagerSerializationClient::locationName('[PROJECT]', '[LOCATION]'); + $formattedTaxonomiesElement = PolicyTagManagerSerializationClient::taxonomyName( + '[PROJECT]', + '[LOCATION]', + '[TAXONOMY]' + ); + + export_taxonomies_sample($formattedParent, $formattedTaxonomiesElement); +} +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/import_taxonomies.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/import_taxonomies.php new file mode 100644 index 000000000000..fdb35e91ec7c --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/import_taxonomies.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ImportTaxonomiesResponse $response */ + $response = $policyTagManagerSerializationClient->importTaxonomies($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PolicyTagManagerSerializationClient::locationName('[PROJECT]', '[LOCATION]'); + + import_taxonomies_sample($formattedParent); +} +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/replace_taxonomy.php b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/replace_taxonomy.php new file mode 100644 index 000000000000..12f6f74ba561 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/samples/V1/PolicyTagManagerSerializationClient/replace_taxonomy.php @@ -0,0 +1,96 @@ +setDisplayName($serializedTaxonomyDisplayName); + $request = (new ReplaceTaxonomyRequest()) + ->setName($formattedName) + ->setSerializedTaxonomy($serializedTaxonomy); + + // Call the API and handle any network failures. + try { + /** @var Taxonomy $response */ + $response = $policyTagManagerSerializationClient->replaceTaxonomy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PolicyTagManagerSerializationClient::taxonomyName( + '[PROJECT]', + '[LOCATION]', + '[TAXONOMY]' + ); + $serializedTaxonomyDisplayName = '[DISPLAY_NAME]'; + + replace_taxonomy_sample($formattedName, $serializedTaxonomyDisplayName); +} +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_sync] diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/Client/DataCatalogClient.php b/owl-bot-staging/DataCatalog/v1/src/V1/Client/DataCatalogClient.php new file mode 100644 index 000000000000..3519acefb3eb --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/Client/DataCatalogClient.php @@ -0,0 +1,1574 @@ + createEntryAsync(CreateEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntryGroupAsync(CreateEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTagAsync(CreateTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTagTemplateAsync(CreateTagTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTagTemplateFieldAsync(CreateTagTemplateFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryAsync(DeleteEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryGroupAsync(DeleteEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTagAsync(DeleteTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTagTemplateAsync(DeleteTagTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTagTemplateFieldAsync(DeleteTagTemplateFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryAsync(GetEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryGroupAsync(GetEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTagTemplateAsync(GetTagTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface importEntriesAsync(ImportEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntriesAsync(ListEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntryGroupsAsync(ListEntryGroupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTagsAsync(ListTagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupEntryAsync(LookupEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface modifyEntryContactsAsync(ModifyEntryContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface modifyEntryOverviewAsync(ModifyEntryOverviewRequest $request, array $optionalArgs = []) + * @method PromiseInterface reconcileTagsAsync(ReconcileTagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface renameTagTemplateFieldAsync(RenameTagTemplateFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface renameTagTemplateFieldEnumValueAsync(RenameTagTemplateFieldEnumValueRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchCatalogAsync(SearchCatalogRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface starEntryAsync(StarEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface unstarEntryAsync(UnstarEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryAsync(UpdateEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryGroupAsync(UpdateEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTagAsync(UpdateTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTagTemplateAsync(UpdateTagTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTagTemplateFieldAsync(UpdateTagTemplateFieldRequest $request, array $optionalArgs = []) + */ +final class DataCatalogClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.datacatalog.v1.DataCatalog'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'datacatalog.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'datacatalog.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/data_catalog_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_catalog_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_catalog_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_catalog_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 entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_group + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * + * @return string The formatted entry_group resource. + */ + public static function entryGroupName(string $project, string $location, string $entryGroup): string + { + return self::getPathTemplate('entryGroup')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + ]); + } + + /** + * 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 tag + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * @param string $tag + * + * @return string The formatted tag resource. + */ + public static function tagName(string $project, string $location, string $entryGroup, string $entry, string $tag): string + { + return self::getPathTemplate('tag')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + 'tag' => $tag, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a tag_template + * resource. + * + * @param string $project + * @param string $location + * @param string $tagTemplate + * + * @return string The formatted tag_template resource. + */ + public static function tagTemplateName(string $project, string $location, string $tagTemplate): string + { + return self::getPathTemplate('tagTemplate')->render([ + 'project' => $project, + 'location' => $location, + 'tag_template' => $tagTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * tag_template_field resource. + * + * @param string $project + * @param string $location + * @param string $tagTemplate + * @param string $field + * + * @return string The formatted tag_template_field resource. + */ + public static function tagTemplateFieldName(string $project, string $location, string $tagTemplate, string $field): string + { + return self::getPathTemplate('tagTemplateField')->render([ + 'project' => $project, + 'location' => $location, + 'tag_template' => $tagTemplate, + 'field' => $field, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * tag_template_field_enum_value resource. + * + * @param string $project + * @param string $location + * @param string $tagTemplate + * @param string $tagTemplateFieldId + * @param string $enumValueDisplayName + * + * @return string The formatted tag_template_field_enum_value resource. + */ + public static function tagTemplateFieldEnumValueName(string $project, string $location, string $tagTemplate, string $tagTemplateFieldId, string $enumValueDisplayName): string + { + return self::getPathTemplate('tagTemplateFieldEnumValue')->render([ + 'project' => $project, + 'location' => $location, + 'tag_template' => $tagTemplate, + 'tag_template_field_id' => $tagTemplateFieldId, + 'enum_value_display_name' => $enumValueDisplayName, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} + * - location: projects/{project}/locations/{location} + * - tag: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag} + * - tagTemplate: projects/{project}/locations/{location}/tagTemplates/{tag_template} + * - tagTemplateField: projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field} + * - tagTemplateFieldEnumValue: projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name} + * + * 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 'datacatalog.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 entry. + * + * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', + * or custom types. Data Catalog automatically creates entries with other + * types during metadata ingestion from integrated systems. + * + * You must enable the Data Catalog API in the project identified by + * the `parent` parameter. For more information, see [Data Catalog resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * An entry group can have a maximum of 100,000 entries. + * + * The async variant is {@see DataCatalogClient::createEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/create_entry.php + * + * @param CreateEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntry(CreateEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('CreateEntry', $request, $callOptions)->wait(); + } + + /** + * Creates an entry group. + * + * An entry group contains logically related entries together with [Cloud + * Identity and Access Management](/data-catalog/docs/concepts/iam) policies. + * These policies specify users who can create, edit, and view entries + * within entry groups. + * + * Data Catalog automatically creates entry groups with names that start with + * the `@` symbol for the following resources: + * + * * BigQuery entries (`@bigquery`) + * * Pub/Sub topics (`@pubsub`) + * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`) + * + * You can create your own entry groups for Cloud Storage fileset entries + * and custom entries together with the corresponding IAM policies. + * User-created entry groups can't contain the `@` symbol, it is reserved + * for automatically created groups. + * + * Entry groups, like entries, can be searched. + * + * A maximum of 10,000 entry groups may be created per organization across all + * locations. + * + * You must enable the Data Catalog API in the project identified by + * the `parent` parameter. For more information, see [Data Catalog resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::createEntryGroupAsync()} . + * + * @example samples/V1/DataCatalogClient/create_entry_group.php + * + * @param CreateEntryGroupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntryGroup + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntryGroup(CreateEntryGroupRequest $request, array $callOptions = []): EntryGroup + { + return $this->startApiCall('CreateEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Creates a tag and assigns it to: + * + * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is + * `projects.locations.entryGroups.entries.tags.create`. + * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method + * name is `projects.locations.entryGroups.tags.create`. + * + * Note: The project identified by the `parent` parameter for the [tag] + * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) + * and the [tag template] + * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) + * used to create the tag must be in the same organization. + * + * The async variant is {@see DataCatalogClient::createTagAsync()} . + * + * @example samples/V1/DataCatalogClient/create_tag.php + * + * @param CreateTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Tag + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTag(CreateTagRequest $request, array $callOptions = []): Tag + { + return $this->startApiCall('CreateTag', $request, $callOptions)->wait(); + } + + /** + * Creates a tag template. + * + * You must enable the Data Catalog API in the project identified by the + * `parent` parameter. + * For more information, see [Data Catalog resource project] + * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::createTagTemplateAsync()} . + * + * @example samples/V1/DataCatalogClient/create_tag_template.php + * + * @param CreateTagTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTagTemplate(CreateTagTemplateRequest $request, array $callOptions = []): TagTemplate + { + return $this->startApiCall('CreateTagTemplate', $request, $callOptions)->wait(); + } + + /** + * Creates a field in a tag template. + * + * You must enable the Data Catalog API in the project identified by + * the `parent` parameter. For more information, see [Data Catalog resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::createTagTemplateFieldAsync()} . + * + * @example samples/V1/DataCatalogClient/create_tag_template_field.php + * + * @param CreateTagTemplateFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplateField + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTagTemplateField(CreateTagTemplateFieldRequest $request, array $callOptions = []): TagTemplateField + { + return $this->startApiCall('CreateTagTemplateField', $request, $callOptions)->wait(); + } + + /** + * Deletes an existing entry. + * + * You can delete only the entries created by the + * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] + * method. + * + * You must enable the Data Catalog API in the project identified by + * the `name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::deleteEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/delete_entry.php + * + * @param DeleteEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteEntry(DeleteEntryRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteEntry', $request, $callOptions)->wait(); + } + + /** + * Deletes an entry group. + * + * You must enable the Data Catalog API in the project + * identified by the `name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::deleteEntryGroupAsync()} . + * + * @example samples/V1/DataCatalogClient/delete_entry_group.php + * + * @param DeleteEntryGroupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteEntryGroup(DeleteEntryGroupRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Deletes a tag. + * + * The async variant is {@see DataCatalogClient::deleteTagAsync()} . + * + * @example samples/V1/DataCatalogClient/delete_tag.php + * + * @param DeleteTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteTag(DeleteTagRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTag', $request, $callOptions)->wait(); + } + + /** + * Deletes a tag template and all tags that use it. + * + * You must enable the Data Catalog API in the project identified by + * the `name` parameter. For more information, see [Data Catalog resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::deleteTagTemplateAsync()} . + * + * @example samples/V1/DataCatalogClient/delete_tag_template.php + * + * @param DeleteTagTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteTagTemplate(DeleteTagTemplateRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTagTemplate', $request, $callOptions)->wait(); + } + + /** + * Deletes a field in a tag template and all uses of this field from the tags + * based on this template. + * + * You must enable the Data Catalog API in the project identified by + * the `name` parameter. For more information, see [Data Catalog resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::deleteTagTemplateFieldAsync()} . + * + * @example samples/V1/DataCatalogClient/delete_tag_template_field.php + * + * @param DeleteTagTemplateFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteTagTemplateField(DeleteTagTemplateFieldRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTagTemplateField', $request, $callOptions)->wait(); + } + + /** + * Gets an entry. + * + * The async variant is {@see DataCatalogClient::getEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/get_entry.php + * + * @param GetEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntry(GetEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('GetEntry', $request, $callOptions)->wait(); + } + + /** + * Gets an entry group. + * + * The async variant is {@see DataCatalogClient::getEntryGroupAsync()} . + * + * @example samples/V1/DataCatalogClient/get_entry_group.php + * + * @param GetEntryGroupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntryGroup + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntryGroup(GetEntryGroupRequest $request, array $callOptions = []): EntryGroup + { + return $this->startApiCall('GetEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for a resource. + * + * May return: + * + * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the + * permission to view it. + * * An empty policy if the resource exists but doesn't have a set policy. + * + * Supported resources are: + * + * - Tag templates + * - Entry groups + * + * Note: This method doesn't get policies from Google Cloud Platform + * resources ingested into Data Catalog. + * + * To call this method, you must have the following Google IAM permissions: + * + * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag + * templates. + * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + * + * The async variant is {@see DataCatalogClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataCatalogClient/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(); + } + + /** + * Gets a tag template. + * + * The async variant is {@see DataCatalogClient::getTagTemplateAsync()} . + * + * @example samples/V1/DataCatalogClient/get_tag_template.php + * + * @param GetTagTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTagTemplate(GetTagTemplateRequest $request, array $callOptions = []): TagTemplate + { + return $this->startApiCall('GetTagTemplate', $request, $callOptions)->wait(); + } + + /** + * Imports entries from a source, such as data previously dumped into a + * Cloud Storage bucket, into Data Catalog. Import of entries + * is a sync operation that reconciles the state of the third-party system + * with the Data Catalog. + * + * `ImportEntries` accepts source data snapshots of a third-party system. + * Snapshot should be delivered as a .wire or base65-encoded .txt file + * containing a sequence of Protocol Buffer messages of + * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. + * + * `ImportEntries` returns a [long-running operation] + * [google.longrunning.Operation] resource that can be queried with + * [Operations.GetOperation][google.longrunning.Operations.GetOperation] + * to return + * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] + * and an + * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] + * message. + * + * The async variant is {@see DataCatalogClient::importEntriesAsync()} . + * + * @example samples/V1/DataCatalogClient/import_entries.php + * + * @param ImportEntriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 importEntries(ImportEntriesRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ImportEntries', $request, $callOptions)->wait(); + } + + /** + * Lists entries. + * + * Note: Currently, this method can list only custom entries. + * To get a list of both custom and automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * + * The async variant is {@see DataCatalogClient::listEntriesAsync()} . + * + * @example samples/V1/DataCatalogClient/list_entries.php + * + * @param ListEntriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listEntries(ListEntriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntries', $request, $callOptions); + } + + /** + * Lists entry groups. + * + * The async variant is {@see DataCatalogClient::listEntryGroupsAsync()} . + * + * @example samples/V1/DataCatalogClient/list_entry_groups.php + * + * @param ListEntryGroupsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listEntryGroups(ListEntryGroupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntryGroups', $request, $callOptions); + } + + /** + * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. + * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are + * lowercased. + * + * The async variant is {@see DataCatalogClient::listTagsAsync()} . + * + * @example samples/V1/DataCatalogClient/list_tags.php + * + * @param ListTagsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listTags(ListTagsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTags', $request, $callOptions); + } + + /** + * Gets an entry by its target resource name. + * + * The resource name comes from the source Google Cloud Platform service. + * + * The async variant is {@see DataCatalogClient::lookupEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/lookup_entry.php + * + * @param LookupEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function lookupEntry(LookupEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('LookupEntry', $request, $callOptions)->wait(); + } + + /** + * Modifies contacts, part of the business context of an + * [Entry][google.cloud.datacatalog.v1.Entry]. + * + * To call this method, you must have the `datacatalog.entries.updateContacts` + * IAM permission on the corresponding project. + * + * The async variant is {@see DataCatalogClient::modifyEntryContactsAsync()} . + * + * @example samples/V1/DataCatalogClient/modify_entry_contacts.php + * + * @param ModifyEntryContactsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Contacts + * + * @throws ApiException Thrown if the API call fails. + */ + public function modifyEntryContacts(ModifyEntryContactsRequest $request, array $callOptions = []): Contacts + { + return $this->startApiCall('ModifyEntryContacts', $request, $callOptions)->wait(); + } + + /** + * Modifies entry overview, part of the business context of an + * [Entry][google.cloud.datacatalog.v1.Entry]. + * + * To call this method, you must have the `datacatalog.entries.updateOverview` + * IAM permission on the corresponding project. + * + * The async variant is {@see DataCatalogClient::modifyEntryOverviewAsync()} . + * + * @example samples/V1/DataCatalogClient/modify_entry_overview.php + * + * @param ModifyEntryOverviewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntryOverview + * + * @throws ApiException Thrown if the API call fails. + */ + public function modifyEntryOverview(ModifyEntryOverviewRequest $request, array $callOptions = []): EntryOverview + { + return $this->startApiCall('ModifyEntryOverview', $request, $callOptions)->wait(); + } + + /** + * `ReconcileTags` creates or updates a list of tags on the entry. + * If the + * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] + * parameter is set, the operation deletes tags not included in the input tag + * list. + * + * `ReconcileTags` returns a [long-running operation] + * [google.longrunning.Operation] resource that can be queried with + * [Operations.GetOperation][google.longrunning.Operations.GetOperation] + * to return [ReconcileTagsMetadata] + * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and + * a [ReconcileTagsResponse] + * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message. + * + * The async variant is {@see DataCatalogClient::reconcileTagsAsync()} . + * + * @example samples/V1/DataCatalogClient/reconcile_tags.php + * + * @param ReconcileTagsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 reconcileTags(ReconcileTagsRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('ReconcileTags', $request, $callOptions)->wait(); + } + + /** + * Renames a field in a tag template. + * + * You must enable the Data Catalog API in the project identified by the + * `name` parameter. For more information, see [Data Catalog resource project] + * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::renameTagTemplateFieldAsync()} . + * + * @example samples/V1/DataCatalogClient/rename_tag_template_field.php + * + * @param RenameTagTemplateFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplateField + * + * @throws ApiException Thrown if the API call fails. + */ + public function renameTagTemplateField(RenameTagTemplateFieldRequest $request, array $callOptions = []): TagTemplateField + { + return $this->startApiCall('RenameTagTemplateField', $request, $callOptions)->wait(); + } + + /** + * Renames an enum value in a tag template. + * + * Within a single enum field, enum values must be unique. + * + * The async variant is + * {@see DataCatalogClient::renameTagTemplateFieldEnumValueAsync()} . + * + * @example samples/V1/DataCatalogClient/rename_tag_template_field_enum_value.php + * + * @param RenameTagTemplateFieldEnumValueRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplateField + * + * @throws ApiException Thrown if the API call fails. + */ + public function renameTagTemplateFieldEnumValue(RenameTagTemplateFieldEnumValueRequest $request, array $callOptions = []): TagTemplateField + { + return $this->startApiCall('RenameTagTemplateFieldEnumValue', $request, $callOptions)->wait(); + } + + /** + * Searches Data Catalog for multiple resources like entries and tags that + * match a query. + * + * This is a [Custom Method] + * (https://cloud.google.com/apis/design/custom_methods) that doesn't return + * all information on a resource, only its ID and high level fields. To get + * more information, you can subsequently call specific get methods. + * + * Note: Data Catalog search queries don't guarantee full recall. Results + * that match your query might not be returned, even in subsequent + * result pages. Additionally, returned (and not returned) results can vary + * if you repeat search queries. + * + * For more information, see [Data Catalog search syntax] + * (https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * + * The async variant is {@see DataCatalogClient::searchCatalogAsync()} . + * + * @example samples/V1/DataCatalogClient/search_catalog.php + * + * @param SearchCatalogRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 searchCatalog(SearchCatalogRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchCatalog', $request, $callOptions); + } + + /** + * Sets an access control policy for a resource. Replaces any existing + * policy. + * + * Supported resources are: + * + * - Tag templates + * - Entry groups + * + * Note: This method sets policies only within Data Catalog and can't be + * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any + * external Google Cloud Platform resources synced with the Data Catalog. + * + * To call this method, you must have the following Google IAM permissions: + * + * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag + * templates. + * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + * + * The async variant is {@see DataCatalogClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataCatalogClient/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(); + } + + /** + * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by + * the current user. Starring information is private to each user. + * + * The async variant is {@see DataCatalogClient::starEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/star_entry.php + * + * @param StarEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return StarEntryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function starEntry(StarEntryRequest $request, array $callOptions = []): StarEntryResponse + { + return $this->startApiCall('StarEntry', $request, $callOptions)->wait(); + } + + /** + * Gets your permissions on a resource. + * + * Returns an empty set of permissions if the resource doesn't exist. + * + * Supported resources are: + * + * - Tag templates + * - Entry groups + * + * Note: This method gets policies only within Data Catalog and can't be + * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any + * external Google Cloud Platform resources ingested into Data Catalog. + * + * No Google IAM permissions are required to call this method. + * + * The async variant is {@see DataCatalogClient::testIamPermissionsAsync()} . + * + * @example samples/V1/DataCatalogClient/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(); + } + + /** + * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by + * the current user. Starring information is private to each user. + * + * The async variant is {@see DataCatalogClient::unstarEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/unstar_entry.php + * + * @param UnstarEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UnstarEntryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function unstarEntry(UnstarEntryRequest $request, array $callOptions = []): UnstarEntryResponse + { + return $this->startApiCall('UnstarEntry', $request, $callOptions)->wait(); + } + + /** + * Updates an existing entry. + * + * You must enable the Data Catalog API in the project identified by + * the `entry.name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::updateEntryAsync()} . + * + * @example samples/V1/DataCatalogClient/update_entry.php + * + * @param UpdateEntryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntry(UpdateEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('UpdateEntry', $request, $callOptions)->wait(); + } + + /** + * Updates an entry group. + * + * You must enable the Data Catalog API in the project identified by + * the `entry_group.name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::updateEntryGroupAsync()} . + * + * @example samples/V1/DataCatalogClient/update_entry_group.php + * + * @param UpdateEntryGroupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EntryGroup + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntryGroup(UpdateEntryGroupRequest $request, array $callOptions = []): EntryGroup + { + return $this->startApiCall('UpdateEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Updates an existing tag. + * + * The async variant is {@see DataCatalogClient::updateTagAsync()} . + * + * @example samples/V1/DataCatalogClient/update_tag.php + * + * @param UpdateTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Tag + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTag(UpdateTagRequest $request, array $callOptions = []): Tag + { + return $this->startApiCall('UpdateTag', $request, $callOptions)->wait(); + } + + /** + * Updates a tag template. + * + * You can't update template fields with this method. These fields are + * separate resources with their own create, update, and delete methods. + * + * You must enable the Data Catalog API in the project identified by + * the `tag_template.name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::updateTagTemplateAsync()} . + * + * @example samples/V1/DataCatalogClient/update_tag_template.php + * + * @param UpdateTagTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTagTemplate(UpdateTagTemplateRequest $request, array $callOptions = []): TagTemplate + { + return $this->startApiCall('UpdateTagTemplate', $request, $callOptions)->wait(); + } + + /** + * Updates a field in a tag template. + * + * You can't update the field type with this method. + * + * You must enable the Data Catalog API in the project + * identified by the `name` parameter. For more information, see [Data Catalog + * resource + * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * + * The async variant is {@see DataCatalogClient::updateTagTemplateFieldAsync()} . + * + * @example samples/V1/DataCatalogClient/update_tag_template_field.php + * + * @param UpdateTagTemplateFieldRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TagTemplateField + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTagTemplateField(UpdateTagTemplateFieldRequest $request, array $callOptions = []): TagTemplateField + { + return $this->startApiCall('UpdateTagTemplateField', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerClient.php b/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerClient.php new file mode 100644 index 000000000000..0dc3c488b484 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerClient.php @@ -0,0 +1,633 @@ + createPolicyTagAsync(CreatePolicyTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTaxonomyAsync(CreateTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePolicyTagAsync(DeletePolicyTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTaxonomyAsync(DeleteTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPolicyTagAsync(GetPolicyTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTaxonomyAsync(GetTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPolicyTagsAsync(ListPolicyTagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTaxonomiesAsync(ListTaxonomiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePolicyTagAsync(UpdatePolicyTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTaxonomyAsync(UpdateTaxonomyRequest $request, array $optionalArgs = []) + */ +final class PolicyTagManagerClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.datacatalog.v1.PolicyTagManager'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'datacatalog.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'datacatalog.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/policy_tag_manager_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/policy_tag_manager_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/policy_tag_manager_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/policy_tag_manager_rest_client_config.php', + ], + ], + ]; + } + + /** + * 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 policy_tag + * resource. + * + * @param string $project + * @param string $location + * @param string $taxonomy + * @param string $policyTag + * + * @return string The formatted policy_tag resource. + */ + public static function policyTagName(string $project, string $location, string $taxonomy, string $policyTag): string + { + return self::getPathTemplate('policyTag')->render([ + 'project' => $project, + 'location' => $location, + 'taxonomy' => $taxonomy, + 'policy_tag' => $policyTag, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a taxonomy + * resource. + * + * @param string $project + * @param string $location + * @param string $taxonomy + * + * @return string The formatted taxonomy resource. + */ + public static function taxonomyName(string $project, string $location, string $taxonomy): string + { + return self::getPathTemplate('taxonomy')->render([ + 'project' => $project, + 'location' => $location, + 'taxonomy' => $taxonomy, + ]); + } + + /** + * 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} + * - policyTag: projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag} + * - taxonomy: projects/{project}/locations/{location}/taxonomies/{taxonomy} + * + * 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 'datacatalog.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 policy tag in a taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::createPolicyTagAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/create_policy_tag.php + * + * @param CreatePolicyTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PolicyTag + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPolicyTag(CreatePolicyTagRequest $request, array $callOptions = []): PolicyTag + { + return $this->startApiCall('CreatePolicyTag', $request, $callOptions)->wait(); + } + + /** + * Creates a taxonomy in a specified project. + * + * The taxonomy is initially empty, that is, it doesn't contain policy tags. + * + * The async variant is {@see PolicyTagManagerClient::createTaxonomyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/create_taxonomy.php + * + * @param CreateTaxonomyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Taxonomy + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTaxonomy(CreateTaxonomyRequest $request, array $callOptions = []): Taxonomy + { + return $this->startApiCall('CreateTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Deletes a policy tag together with the following: + * + * * All of its descendant policy tags, if any + * * Policies associated with the policy tag and its descendants + * * References from BigQuery table schema of the policy tag and its + * descendants + * + * The async variant is {@see PolicyTagManagerClient::deletePolicyTagAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/delete_policy_tag.php + * + * @param DeletePolicyTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deletePolicyTag(DeletePolicyTagRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeletePolicyTag', $request, $callOptions)->wait(); + } + + /** + * Deletes a taxonomy, including all policy tags in this + * taxonomy, their associated policies, and the policy tags references from + * BigQuery columns. + * + * The async variant is {@see PolicyTagManagerClient::deleteTaxonomyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/delete_taxonomy.php + * + * @param DeleteTaxonomyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteTaxonomy(DeleteTaxonomyRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Gets the IAM policy for a policy tag or a taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::getIamPolicyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/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(); + } + + /** + * Gets a policy tag. + * + * The async variant is {@see PolicyTagManagerClient::getPolicyTagAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/get_policy_tag.php + * + * @param GetPolicyTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PolicyTag + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPolicyTag(GetPolicyTagRequest $request, array $callOptions = []): PolicyTag + { + return $this->startApiCall('GetPolicyTag', $request, $callOptions)->wait(); + } + + /** + * Gets a taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::getTaxonomyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/get_taxonomy.php + * + * @param GetTaxonomyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Taxonomy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTaxonomy(GetTaxonomyRequest $request, array $callOptions = []): Taxonomy + { + return $this->startApiCall('GetTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Lists all policy tags in a taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::listPolicyTagsAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/list_policy_tags.php + * + * @param ListPolicyTagsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listPolicyTags(ListPolicyTagsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPolicyTags', $request, $callOptions); + } + + /** + * Lists all taxonomies in a project in a particular location that you + * have a permission to view. + * + * The async variant is {@see PolicyTagManagerClient::listTaxonomiesAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/list_taxonomies.php + * + * @param ListTaxonomiesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listTaxonomies(ListTaxonomiesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTaxonomies', $request, $callOptions); + } + + /** + * Sets the IAM policy for a policy tag or a taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::setIamPolicyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/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 your permissions on a specified policy tag or + * taxonomy. + * + * The async variant is {@see PolicyTagManagerClient::testIamPermissionsAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/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(); + } + + /** + * Updates a policy tag, including its display + * name, description, and parent policy tag. + * + * The async variant is {@see PolicyTagManagerClient::updatePolicyTagAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/update_policy_tag.php + * + * @param UpdatePolicyTagRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PolicyTag + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePolicyTag(UpdatePolicyTagRequest $request, array $callOptions = []): PolicyTag + { + return $this->startApiCall('UpdatePolicyTag', $request, $callOptions)->wait(); + } + + /** + * Updates a taxonomy, including its display name, + * description, and activated policy types. + * + * The async variant is {@see PolicyTagManagerClient::updateTaxonomyAsync()} . + * + * @example samples/V1/PolicyTagManagerClient/update_taxonomy.php + * + * @param UpdateTaxonomyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Taxonomy + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTaxonomy(UpdateTaxonomyRequest $request, array $callOptions = []): Taxonomy + { + return $this->startApiCall('UpdateTaxonomy', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerSerializationClient.php b/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerSerializationClient.php new file mode 100644 index 000000000000..50515d05a885 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/Client/PolicyTagManagerSerializationClient.php @@ -0,0 +1,345 @@ + exportTaxonomiesAsync(ExportTaxonomiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface importTaxonomiesAsync(ImportTaxonomiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface replaceTaxonomyAsync(ReplaceTaxonomyRequest $request, array $optionalArgs = []) + */ +final class PolicyTagManagerSerializationClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.datacatalog.v1.PolicyTagManagerSerialization'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'datacatalog.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'datacatalog.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/policy_tag_manager_serialization_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/policy_tag_manager_serialization_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/policy_tag_manager_serialization_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/policy_tag_manager_serialization_rest_client_config.php', + ], + ], + ]; + } + + /** + * 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 taxonomy + * resource. + * + * @param string $project + * @param string $location + * @param string $taxonomy + * + * @return string The formatted taxonomy resource. + */ + public static function taxonomyName(string $project, string $location, string $taxonomy): string + { + return self::getPathTemplate('taxonomy')->render([ + 'project' => $project, + 'location' => $location, + 'taxonomy' => $taxonomy, + ]); + } + + /** + * 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} + * - taxonomy: projects/{project}/locations/{location}/taxonomies/{taxonomy} + * + * 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 'datacatalog.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); + } + + /** + * Exports taxonomies in the requested type and returns them, + * including their policy tags. The requested taxonomies must belong to the + * same project. + * + * This method generates `SerializedTaxonomy` protocol buffers with nested + * policy tags that can be used as input for `ImportTaxonomies` calls. + * + * The async variant is + * {@see PolicyTagManagerSerializationClient::exportTaxonomiesAsync()} . + * + * @example samples/V1/PolicyTagManagerSerializationClient/export_taxonomies.php + * + * @param ExportTaxonomiesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExportTaxonomiesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportTaxonomies(ExportTaxonomiesRequest $request, array $callOptions = []): ExportTaxonomiesResponse + { + return $this->startApiCall('ExportTaxonomies', $request, $callOptions)->wait(); + } + + /** + * Creates new taxonomies (including their policy tags) in a given project + * by importing from inlined or cross-regional sources. + * + * For a cross-regional source, new taxonomies are created by copying + * from a source in another region. + * + * For an inlined source, taxonomies and policy tags are created in bulk using + * nested protocol buffer structures. + * + * The async variant is + * {@see PolicyTagManagerSerializationClient::importTaxonomiesAsync()} . + * + * @example samples/V1/PolicyTagManagerSerializationClient/import_taxonomies.php + * + * @param ImportTaxonomiesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ImportTaxonomiesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function importTaxonomies(ImportTaxonomiesRequest $request, array $callOptions = []): ImportTaxonomiesResponse + { + return $this->startApiCall('ImportTaxonomies', $request, $callOptions)->wait(); + } + + /** + * Replaces (updates) a taxonomy and all its policy tags. + * + * The taxonomy and its entire hierarchy of policy tags must be + * represented literally by `SerializedTaxonomy` and the nested + * `SerializedPolicyTag` messages. + * + * This operation automatically does the following: + * + * - Deletes the existing policy tags that are missing from the + * `SerializedPolicyTag`. + * - Creates policy tags that don't have resource names. They are considered + * new. + * - Updates policy tags with valid resources names accordingly. + * + * The async variant is + * {@see PolicyTagManagerSerializationClient::replaceTaxonomyAsync()} . + * + * @example samples/V1/PolicyTagManagerSerializationClient/replace_taxonomy.php + * + * @param ReplaceTaxonomyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Taxonomy + * + * @throws ApiException Thrown if the API call fails. + */ + public function replaceTaxonomy(ReplaceTaxonomyRequest $request, array $callOptions = []): Taxonomy + { + return $this->startApiCall('ReplaceTaxonomy', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DataCatalog/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..bf1807d340fc --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/gapic_metadata.json @@ -0,0 +1,286 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.datacatalog.v1", + "libraryPackage": "Google\\Cloud\\DataCatalog\\V1", + "services": { + "DataCatalog": { + "clients": { + "grpc": { + "libraryClient": "DataCatalogGapicClient", + "rpcs": { + "CreateEntry": { + "methods": [ + "createEntry" + ] + }, + "CreateEntryGroup": { + "methods": [ + "createEntryGroup" + ] + }, + "CreateTag": { + "methods": [ + "createTag" + ] + }, + "CreateTagTemplate": { + "methods": [ + "createTagTemplate" + ] + }, + "CreateTagTemplateField": { + "methods": [ + "createTagTemplateField" + ] + }, + "DeleteEntry": { + "methods": [ + "deleteEntry" + ] + }, + "DeleteEntryGroup": { + "methods": [ + "deleteEntryGroup" + ] + }, + "DeleteTag": { + "methods": [ + "deleteTag" + ] + }, + "DeleteTagTemplate": { + "methods": [ + "deleteTagTemplate" + ] + }, + "DeleteTagTemplateField": { + "methods": [ + "deleteTagTemplateField" + ] + }, + "GetEntry": { + "methods": [ + "getEntry" + ] + }, + "GetEntryGroup": { + "methods": [ + "getEntryGroup" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetTagTemplate": { + "methods": [ + "getTagTemplate" + ] + }, + "ImportEntries": { + "methods": [ + "importEntries" + ] + }, + "ListEntries": { + "methods": [ + "listEntries" + ] + }, + "ListEntryGroups": { + "methods": [ + "listEntryGroups" + ] + }, + "ListTags": { + "methods": [ + "listTags" + ] + }, + "LookupEntry": { + "methods": [ + "lookupEntry" + ] + }, + "ModifyEntryContacts": { + "methods": [ + "modifyEntryContacts" + ] + }, + "ModifyEntryOverview": { + "methods": [ + "modifyEntryOverview" + ] + }, + "ReconcileTags": { + "methods": [ + "reconcileTags" + ] + }, + "RenameTagTemplateField": { + "methods": [ + "renameTagTemplateField" + ] + }, + "RenameTagTemplateFieldEnumValue": { + "methods": [ + "renameTagTemplateFieldEnumValue" + ] + }, + "SearchCatalog": { + "methods": [ + "searchCatalog" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "StarEntry": { + "methods": [ + "starEntry" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UnstarEntry": { + "methods": [ + "unstarEntry" + ] + }, + "UpdateEntry": { + "methods": [ + "updateEntry" + ] + }, + "UpdateEntryGroup": { + "methods": [ + "updateEntryGroup" + ] + }, + "UpdateTag": { + "methods": [ + "updateTag" + ] + }, + "UpdateTagTemplate": { + "methods": [ + "updateTagTemplate" + ] + }, + "UpdateTagTemplateField": { + "methods": [ + "updateTagTemplateField" + ] + } + } + } + } + }, + "PolicyTagManager": { + "clients": { + "grpc": { + "libraryClient": "PolicyTagManagerGapicClient", + "rpcs": { + "CreatePolicyTag": { + "methods": [ + "createPolicyTag" + ] + }, + "CreateTaxonomy": { + "methods": [ + "createTaxonomy" + ] + }, + "DeletePolicyTag": { + "methods": [ + "deletePolicyTag" + ] + }, + "DeleteTaxonomy": { + "methods": [ + "deleteTaxonomy" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetPolicyTag": { + "methods": [ + "getPolicyTag" + ] + }, + "GetTaxonomy": { + "methods": [ + "getTaxonomy" + ] + }, + "ListPolicyTags": { + "methods": [ + "listPolicyTags" + ] + }, + "ListTaxonomies": { + "methods": [ + "listTaxonomies" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdatePolicyTag": { + "methods": [ + "updatePolicyTag" + ] + }, + "UpdateTaxonomy": { + "methods": [ + "updateTaxonomy" + ] + } + } + } + } + }, + "PolicyTagManagerSerialization": { + "clients": { + "grpc": { + "libraryClient": "PolicyTagManagerSerializationGapicClient", + "rpcs": { + "ExportTaxonomies": { + "methods": [ + "exportTaxonomies" + ] + }, + "ImportTaxonomies": { + "methods": [ + "importTaxonomies" + ] + }, + "ReplaceTaxonomy": { + "methods": [ + "replaceTaxonomy" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_client_config.json b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_client_config.json new file mode 100644 index 000000000000..df0536489ab1 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_client_config.json @@ -0,0 +1,206 @@ +{ + "interfaces": { + "google.cloud.datacatalog.v1.DataCatalog": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "RESOURCE_EXHAUSTED", + "INTERNAL" + ] + }, + "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": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateTag": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateTagTemplate": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateTagTemplateField": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteTag": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteTagTemplate": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteTagTemplateField": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTagTemplate": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportEntries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEntries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEntryGroups": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListTags": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "LookupEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ModifyEntryContacts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ModifyEntryOverview": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ReconcileTags": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RenameTagTemplateField": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RenameTagTemplateFieldEnumValue": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchCatalog": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "StarEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UnstarEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateTag": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateTagTemplate": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateTagTemplateField": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_descriptor_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_descriptor_config.php new file mode 100644 index 000000000000..f33442a300df --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_descriptor_config.php @@ -0,0 +1,479 @@ + [ + 'google.cloud.datacatalog.v1.DataCatalog' => [ + 'ImportEntries' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\DataCatalog\V1\ImportEntriesResponse', + 'metadataReturnType' => '\Google\Cloud\DataCatalog\V1\ImportEntriesMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ReconcileTags' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\DataCatalog\V1\ReconcileTagsResponse', + 'metadataReturnType' => '\Google\Cloud\DataCatalog\V1\ReconcileTagsMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntryGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\EntryGroup', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Tag', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTagTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplate', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTagTemplateField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplateField', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTagTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTagTemplateField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\EntryGroup', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetTagTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListEntries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ListEntriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntryGroups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ListEntryGroupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTags' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTags', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ListTagsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'LookupEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Entry', + ], + 'ModifyEntryContacts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Contacts', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ModifyEntryOverview' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\EntryOverview', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RenameTagTemplateField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplateField', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RenameTagTemplateFieldEnumValue' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplateField', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SearchCatalog' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\SearchCatalogResponse', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'StarEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\StarEntryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UnstarEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\UnstarEntryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'entry.name', + 'fieldAccessors' => [ + 'getEntry', + 'getName', + ], + ], + ], + ], + 'UpdateEntryGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\EntryGroup', + 'headerParams' => [ + [ + 'keyName' => 'entry_group.name', + 'fieldAccessors' => [ + 'getEntryGroup', + 'getName', + ], + ], + ], + ], + 'UpdateTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Tag', + 'headerParams' => [ + [ + 'keyName' => 'tag.name', + 'fieldAccessors' => [ + 'getTag', + 'getName', + ], + ], + ], + ], + 'UpdateTagTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplate', + 'headerParams' => [ + [ + 'keyName' => 'tag_template.name', + 'fieldAccessors' => [ + 'getTagTemplate', + 'getName', + ], + ], + ], + ], + 'UpdateTagTemplateField' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\TagTemplateField', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', + 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', + 'location' => 'projects/{project}/locations/{location}', + 'tag' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}', + 'tagTemplate' => 'projects/{project}/locations/{location}/tagTemplates/{tag_template}', + 'tagTemplateField' => 'projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}', + 'tagTemplateFieldEnumValue' => 'projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}', + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_rest_client_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_rest_client_config.php new file mode 100644 index 000000000000..6cfbc6216468 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/data_catalog_rest_client_config.php @@ -0,0 +1,535 @@ + [ + 'google.cloud.datacatalog.v1.DataCatalog' => [ + 'CreateEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', + 'body' => 'entry', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_id', + ], + ], + 'CreateEntryGroup' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', + 'body' => 'entry_group', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_group_id', + ], + ], + 'CreateTag' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags', + 'body' => 'tag', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/tags', + 'body' => 'tag', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTagTemplate' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/tagTemplates', + 'body' => 'tag_template', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'tag_template_id', + ], + ], + 'CreateTagTemplateField' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/tagTemplates/*}/fields', + 'body' => 'tag_template_field', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'tag_template_field_id', + ], + ], + 'DeleteEntry' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryGroup' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTag' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/tags/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTagTemplate' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'force', + ], + ], + 'DeleteTagTemplateField' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'force', + ], + ], + 'GetEntry' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryGroup' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetTagTemplate' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportEntries' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryGroups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTags' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/tags', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'LookupEntry' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/entries:lookup', + ], + 'ModifyEntryContacts' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryContacts', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ModifyEntryOverview' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryOverview', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ReconcileTags' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:reconcile', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RenameTagTemplateField' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'RenameTagTemplateFieldEnumValue' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchCatalog' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/catalog:search', + 'body' => '*', + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'StarEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:star', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UnstarEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:unstar', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateEntry' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}', + 'body' => 'entry', + 'placeholders' => [ + 'entry.name' => [ + 'getters' => [ + 'getEntry', + 'getName', + ], + ], + ], + ], + 'UpdateEntryGroup' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}', + 'body' => 'entry_group', + 'placeholders' => [ + 'entry_group.name' => [ + 'getters' => [ + 'getEntryGroup', + 'getName', + ], + ], + ], + ], + 'UpdateTag' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}', + 'body' => 'tag', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}', + 'body' => 'tag', + ], + ], + 'placeholders' => [ + 'tag.name' => [ + 'getters' => [ + 'getTag', + 'getName', + ], + ], + ], + ], + 'UpdateTagTemplate' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{tag_template.name=projects/*/locations/*/tagTemplates/*}', + 'body' => 'tag_template', + 'placeholders' => [ + 'tag_template.name' => [ + 'getters' => [ + 'getTagTemplate', + 'getName', + ], + ], + ], + ], + 'UpdateTagTemplateField' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}', + 'body' => 'tag_template_field', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + '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', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_client_config.json b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_client_config.json new file mode 100644 index 000000000000..748b34c429bd --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_client_config.json @@ -0,0 +1,107 @@ +{ + "interfaces": { + "google.cloud.datacatalog.v1.PolicyTagManager": { + "retry_codes": { + "no_retry_codes": [], + "no_retry_1_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_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 + }, + "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": { + "CreatePolicyTag": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeletePolicyTag": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetPolicyTag": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListPolicyTags": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListTaxonomies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdatePolicyTag": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_descriptor_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_descriptor_config.php new file mode 100644 index 000000000000..a89d289f0b67 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_descriptor_config.php @@ -0,0 +1,207 @@ + [ + 'google.cloud.datacatalog.v1.PolicyTagManager' => [ + 'CreatePolicyTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\PolicyTag', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Taxonomy', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeletePolicyTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetPolicyTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\PolicyTag', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Taxonomy', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListPolicyTags' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPolicyTags', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ListPolicyTagsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTaxonomies' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTaxonomies', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ListTaxonomiesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdatePolicyTag' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\PolicyTag', + 'headerParams' => [ + [ + 'keyName' => 'policy_tag.name', + 'fieldAccessors' => [ + 'getPolicyTag', + 'getName', + ], + ], + ], + ], + 'UpdateTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Taxonomy', + 'headerParams' => [ + [ + 'keyName' => 'taxonomy.name', + 'fieldAccessors' => [ + 'getTaxonomy', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'location' => 'projects/{project}/locations/{location}', + 'policyTag' => 'projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}', + 'taxonomy' => 'projects/{project}/locations/{location}/taxonomies/{taxonomy}', + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_rest_client_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_rest_client_config.php new file mode 100644 index 000000000000..9492ed0d1fb9 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_rest_client_config.php @@ -0,0 +1,247 @@ + [ + 'google.cloud.datacatalog.v1.PolicyTagManager' => [ + 'CreatePolicyTag' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags', + 'body' => 'policy_tag', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTaxonomy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/taxonomies', + 'body' => 'taxonomy', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeletePolicyTag' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTaxonomy' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/taxonomies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetPolicyTag' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTaxonomy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/taxonomies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListPolicyTags' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTaxonomies' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/taxonomies', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdatePolicyTag' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{policy_tag.name=projects/*/locations/*/taxonomies/*/policyTags/*}', + 'body' => 'policy_tag', + 'placeholders' => [ + 'policy_tag.name' => [ + 'getters' => [ + 'getPolicyTag', + 'getName', + ], + ], + ], + ], + 'UpdateTaxonomy' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{taxonomy.name=projects/*/locations/*/taxonomies/*}', + 'body' => 'taxonomy', + 'placeholders' => [ + 'taxonomy.name' => [ + 'getters' => [ + 'getTaxonomy', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + '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', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_client_config.json b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_client_config.json new file mode 100644 index 000000000000..0777dd90f04d --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_client_config.json @@ -0,0 +1,47 @@ +{ + "interfaces": { + "google.cloud.datacatalog.v1.PolicyTagManagerSerialization": { + "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": { + "ExportTaxonomies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ImportTaxonomies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ReplaceTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_descriptor_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_descriptor_config.php new file mode 100644 index 000000000000..52717a0a49be --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_descriptor_config.php @@ -0,0 +1,68 @@ + [ + 'google.cloud.datacatalog.v1.PolicyTagManagerSerialization' => [ + 'ExportTaxonomies' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ExportTaxonomiesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ImportTaxonomies' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\ImportTaxonomiesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ReplaceTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\V1\Taxonomy', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'location' => 'projects/{project}/locations/{location}', + 'taxonomy' => 'projects/{project}/locations/{location}/taxonomies/{taxonomy}', + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_rest_client_config.php b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_rest_client_config.php new file mode 100644 index 000000000000..e7f1ba4e670e --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/src/V1/resources/policy_tag_manager_serialization_rest_client_config.php @@ -0,0 +1,109 @@ + [ + 'google.cloud.datacatalog.v1.PolicyTagManagerSerialization' => [ + 'ExportTaxonomies' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/taxonomies:export', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ImportTaxonomies' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/taxonomies:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ReplaceTaxonomy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/taxonomies/*}:replace', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + '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', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/DataCatalogClientTest.php b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/DataCatalogClientTest.php new file mode 100644 index 000000000000..e60a0ace3cc4 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/DataCatalogClientTest.php @@ -0,0 +1,2770 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataCatalogClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataCatalogClient($options); + } + + /** @test */ + public function createEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $linkedResource = 'linkedResource1544625012'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $userSpecifiedType = 'userSpecifiedType-940364963'; + $userSpecifiedSystem = 'userSpecifiedSystem-1776119406'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setLinkedResource($linkedResource); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $expectedResponse->setUserSpecifiedType($userSpecifiedType); + $expectedResponse->setUserSpecifiedSystem($userSpecifiedSystem); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = 'entryId-2093663224'; + $entry = new Entry(); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + $response = $gapicClient->createEntry($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.datacatalog.v1.DataCatalog/CreateEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntryId(); + $this->assertProtobufEquals($entryId, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = 'entryId-2093663224'; + $entry = new Entry(); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + try { + $gapicClient->createEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $entryGroupId = 'entryGroupId-43122680'; + $request = (new CreateEntryGroupRequest()) + ->setParent($formattedParent) + ->setEntryGroupId($entryGroupId); + $response = $gapicClient->createEntryGroup($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.datacatalog.v1.DataCatalog/CreateEntryGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntryGroupId(); + $this->assertProtobufEquals($entryGroupId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $entryGroupId = 'entryGroupId-43122680'; + $request = (new CreateEntryGroupRequest()) + ->setParent($formattedParent) + ->setEntryGroupId($entryGroupId); + try { + $gapicClient->createEntryGroup($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $template = 'template-1321546630'; + $templateDisplayName = 'templateDisplayName-532252787'; + $column = 'column-1354837162'; + $expectedResponse = new Tag(); + $expectedResponse->setName($name); + $expectedResponse->setTemplate($template); + $expectedResponse->setTemplateDisplayName($templateDisplayName); + $expectedResponse->setColumn($column); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $tag = new Tag(); + $tagTemplate = 'tagTemplate1678947892'; + $tag->setTemplate($tagTemplate); + $fieldsValue = new TagField(); + $tagFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tag->setFields($tagFields); + $request = (new CreateTagRequest()) + ->setParent($formattedParent) + ->setTag($tag); + $response = $gapicClient->createTag($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.datacatalog.v1.DataCatalog/CreateTag', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTag(); + $this->assertProtobufEquals($tag, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $tag = new Tag(); + $tagTemplate = 'tagTemplate1678947892'; + $tag->setTemplate($tagTemplate); + $fieldsValue = new TagField(); + $tagFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tag->setFields($tagFields); + $request = (new CreateTagRequest()) + ->setParent($formattedParent) + ->setTag($tag); + try { + $gapicClient->createTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $isPubliclyReadable = true; + $expectedResponse = new TagTemplate(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsPubliclyReadable($isPubliclyReadable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $tagTemplateId = 'tagTemplateId-2020335141'; + $tagTemplate = new TagTemplate(); + $fieldsValue = new TagTemplateField(); + $valueType = new FieldType(); + $fieldsValue->setType($valueType); + $tagTemplateFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tagTemplate->setFields($tagTemplateFields); + $request = (new CreateTagTemplateRequest()) + ->setParent($formattedParent) + ->setTagTemplateId($tagTemplateId) + ->setTagTemplate($tagTemplate); + $response = $gapicClient->createTagTemplate($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.datacatalog.v1.DataCatalog/CreateTagTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTagTemplateId(); + $this->assertProtobufEquals($tagTemplateId, $actualValue); + $actualValue = $actualRequestObject->getTagTemplate(); + $this->assertProtobufEquals($tagTemplate, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $tagTemplateId = 'tagTemplateId-2020335141'; + $tagTemplate = new TagTemplate(); + $fieldsValue = new TagTemplateField(); + $valueType = new FieldType(); + $fieldsValue->setType($valueType); + $tagTemplateFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tagTemplate->setFields($tagTemplateFields); + $request = (new CreateTagTemplateRequest()) + ->setParent($formattedParent) + ->setTagTemplateId($tagTemplateId) + ->setTagTemplate($tagTemplate); + try { + $gapicClient->createTagTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagTemplateFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $isRequired = true; + $description = 'description-1724546052'; + $order = 106006350; + $expectedResponse = new TagTemplateField(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsRequired($isRequired); + $expectedResponse->setDescription($description); + $expectedResponse->setOrder($order); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $tagTemplateFieldId = 'tagTemplateFieldId-92144832'; + $tagTemplateField = new TagTemplateField(); + $tagTemplateFieldType = new FieldType(); + $tagTemplateField->setType($tagTemplateFieldType); + $request = (new CreateTagTemplateFieldRequest()) + ->setParent($formattedParent) + ->setTagTemplateFieldId($tagTemplateFieldId) + ->setTagTemplateField($tagTemplateField); + $response = $gapicClient->createTagTemplateField($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.datacatalog.v1.DataCatalog/CreateTagTemplateField', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTagTemplateFieldId(); + $this->assertProtobufEquals($tagTemplateFieldId, $actualValue); + $actualValue = $actualRequestObject->getTagTemplateField(); + $this->assertProtobufEquals($tagTemplateField, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTagTemplateFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $tagTemplateFieldId = 'tagTemplateFieldId-92144832'; + $tagTemplateField = new TagTemplateField(); + $tagTemplateFieldType = new FieldType(); + $tagTemplateField->setType($tagTemplateFieldType); + $request = (new CreateTagTemplateFieldRequest()) + ->setParent($formattedParent) + ->setTagTemplateFieldId($tagTemplateFieldId) + ->setTagTemplateField($tagTemplateField); + try { + $gapicClient->createTagTemplateField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteEntryRequest()) + ->setName($formattedName); + $gapicClient->deleteEntry($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/DeleteEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new DeleteEntryGroupRequest()) + ->setName($formattedName); + $gapicClient->deleteEntryGroup($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/DeleteEntryGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new DeleteEntryGroupRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteEntryGroup($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteTagRequest()) + ->setName($formattedName); + $gapicClient->deleteTag($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/DeleteTag', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteTagRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $force = false; + $request = (new DeleteTagTemplateRequest()) + ->setName($formattedName) + ->setForce($force); + $gapicClient->deleteTagTemplate($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getForce(); + $this->assertProtobufEquals($force, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $force = false; + $request = (new DeleteTagTemplateRequest()) + ->setName($formattedName) + ->setForce($force); + try { + $gapicClient->deleteTagTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagTemplateFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $force = false; + $request = (new DeleteTagTemplateFieldRequest()) + ->setName($formattedName) + ->setForce($force); + $gapicClient->deleteTagTemplateField($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplateField', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getForce(); + $this->assertProtobufEquals($force, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTagTemplateFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $force = false; + $request = (new DeleteTagTemplateFieldRequest()) + ->setName($formattedName) + ->setForce($force); + try { + $gapicClient->deleteTagTemplateField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $linkedResource = 'linkedResource1544625012'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $userSpecifiedType = 'userSpecifiedType-940364963'; + $userSpecifiedSystem = 'userSpecifiedSystem-1776119406'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setLinkedResource($linkedResource); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $expectedResponse->setUserSpecifiedType($userSpecifiedType); + $expectedResponse->setUserSpecifiedSystem($userSpecifiedSystem); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new GetEntryRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntry($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.datacatalog.v1.DataCatalog/GetEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new GetEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new GetEntryGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntryGroup($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.datacatalog.v1.DataCatalog/GetEntryGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new GetEntryGroupRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntryGroup($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.cloud.datacatalog.v1.DataCatalog/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 getTagTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isPubliclyReadable = true; + $expectedResponse = new TagTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsPubliclyReadable($isPubliclyReadable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $request = (new GetTagTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->getTagTemplate($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.datacatalog.v1.DataCatalog/GetTagTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTagTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $request = (new GetTagTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->getTagTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importEntriesTest() + { + $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/importEntriesTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $upsertedEntriesCount = 250168367; + $deletedEntriesCount = 167383302; + $expectedResponse = new ImportEntriesResponse(); + $expectedResponse->setUpsertedEntriesCount($upsertedEntriesCount); + $expectedResponse->setDeletedEntriesCount($deletedEntriesCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/importEntriesTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ImportEntriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->importEntries($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.datacatalog.v1.DataCatalog/ImportEntries', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importEntriesTest'); + $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 importEntriesExceptionTest() + { + $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/importEntriesTest'); + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ImportEntriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->importEntries($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importEntriesTest'); + 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 listEntriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new Entry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new ListEntriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ListEntriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/ListEntries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ListEntriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntries($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntryGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entryGroupsElement = new EntryGroup(); + $entryGroups = [ + $entryGroupsElement, + ]; + $expectedResponse = new ListEntryGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntryGroups($entryGroups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntryGroupsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntryGroups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntryGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/ListEntryGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntryGroupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListEntryGroupsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntryGroups($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTagsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tagsElement = new Tag(); + $tags = [ + $tagsElement, + ]; + $expectedResponse = new ListTagsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTags($tags); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new ListTagsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTags($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTags()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.DataCatalog/ListTags', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTagsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new ListTagsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTags($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $linkedResource2 = 'linkedResource2-1674044889'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $userSpecifiedType = 'userSpecifiedType-940364963'; + $userSpecifiedSystem = 'userSpecifiedSystem-1776119406'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setLinkedResource($linkedResource2); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $expectedResponse->setUserSpecifiedType($userSpecifiedType); + $expectedResponse->setUserSpecifiedSystem($userSpecifiedSystem); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + $request = new LookupEntryRequest(); + $response = $gapicClient->lookupEntry($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.datacatalog.v1.DataCatalog/LookupEntry', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->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 LookupEntryRequest(); + try { + $gapicClient->lookupEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryContactsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new Contacts(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $contacts = new Contacts(); + $request = (new ModifyEntryContactsRequest()) + ->setName($formattedName) + ->setContacts($contacts); + $response = $gapicClient->modifyEntryContacts($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.datacatalog.v1.DataCatalog/ModifyEntryContacts', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getContacts(); + $this->assertProtobufEquals($contacts, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryContactsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $contacts = new Contacts(); + $request = (new ModifyEntryContactsRequest()) + ->setName($formattedName) + ->setContacts($contacts); + try { + $gapicClient->modifyEntryContacts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryOverviewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $overview = 'overview530115961'; + $expectedResponse = new EntryOverview(); + $expectedResponse->setOverview($overview); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $entryOverview = new EntryOverview(); + $request = (new ModifyEntryOverviewRequest()) + ->setName($formattedName) + ->setEntryOverview($entryOverview); + $response = $gapicClient->modifyEntryOverview($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.datacatalog.v1.DataCatalog/ModifyEntryOverview', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getEntryOverview(); + $this->assertProtobufEquals($entryOverview, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryOverviewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $entryOverview = new EntryOverview(); + $request = (new ModifyEntryOverviewRequest()) + ->setName($formattedName) + ->setEntryOverview($entryOverview); + try { + $gapicClient->modifyEntryOverview($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reconcileTagsTest() + { + $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/reconcileTagsTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $createdTagsCount = 986601696; + $updatedTagsCount = 344847213; + $deletedTagsCount = 59637071; + $expectedResponse = new ReconcileTagsResponse(); + $expectedResponse->setCreatedTagsCount($createdTagsCount); + $expectedResponse->setUpdatedTagsCount($updatedTagsCount); + $expectedResponse->setDeletedTagsCount($deletedTagsCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/reconcileTagsTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $formattedTagTemplate = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $request = (new ReconcileTagsRequest()) + ->setParent($formattedParent) + ->setTagTemplate($formattedTagTemplate); + $response = $gapicClient->reconcileTags($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.datacatalog.v1.DataCatalog/ReconcileTags', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTagTemplate(); + $this->assertProtobufEquals($formattedTagTemplate, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/reconcileTagsTest'); + $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 reconcileTagsExceptionTest() + { + $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/reconcileTagsTest'); + $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->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $formattedTagTemplate = $gapicClient->tagTemplateName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]'); + $request = (new ReconcileTagsRequest()) + ->setParent($formattedParent) + ->setTagTemplate($formattedTagTemplate); + $response = $gapicClient->reconcileTags($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/reconcileTagsTest'); + 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 renameTagTemplateFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isRequired = true; + $description = 'description-1724546052'; + $order = 106006350; + $expectedResponse = new TagTemplateField(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsRequired($isRequired); + $expectedResponse->setDescription($description); + $expectedResponse->setOrder($order); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $newTagTemplateFieldId = 'newTagTemplateFieldId-1668354591'; + $request = (new RenameTagTemplateFieldRequest()) + ->setName($formattedName) + ->setNewTagTemplateFieldId($newTagTemplateFieldId); + $response = $gapicClient->renameTagTemplateField($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.datacatalog.v1.DataCatalog/RenameTagTemplateField', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getNewTagTemplateFieldId(); + $this->assertProtobufEquals($newTagTemplateFieldId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function renameTagTemplateFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $newTagTemplateFieldId = 'newTagTemplateFieldId-1668354591'; + $request = (new RenameTagTemplateFieldRequest()) + ->setName($formattedName) + ->setNewTagTemplateFieldId($newTagTemplateFieldId); + try { + $gapicClient->renameTagTemplateField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function renameTagTemplateFieldEnumValueTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isRequired = true; + $description = 'description-1724546052'; + $order = 106006350; + $expectedResponse = new TagTemplateField(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsRequired($isRequired); + $expectedResponse->setDescription($description); + $expectedResponse->setOrder($order); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldEnumValueName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[TAG_TEMPLATE_FIELD_ID]', '[ENUM_VALUE_DISPLAY_NAME]'); + $newEnumValueDisplayName = 'newEnumValueDisplayName2138960469'; + $request = (new RenameTagTemplateFieldEnumValueRequest()) + ->setName($formattedName) + ->setNewEnumValueDisplayName($newEnumValueDisplayName); + $response = $gapicClient->renameTagTemplateFieldEnumValue($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.datacatalog.v1.DataCatalog/RenameTagTemplateFieldEnumValue', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getNewEnumValueDisplayName(); + $this->assertProtobufEquals($newEnumValueDisplayName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function renameTagTemplateFieldEnumValueExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldEnumValueName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[TAG_TEMPLATE_FIELD_ID]', '[ENUM_VALUE_DISPLAY_NAME]'); + $newEnumValueDisplayName = 'newEnumValueDisplayName2138960469'; + $request = (new RenameTagTemplateFieldEnumValueRequest()) + ->setName($formattedName) + ->setNewEnumValueDisplayName($newEnumValueDisplayName); + try { + $gapicClient->renameTagTemplateFieldEnumValue($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchCatalogTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $totalSize = 705419236; + $nextPageToken = ''; + $resultsElement = new SearchCatalogResult(); + $results = [ + $resultsElement, + ]; + $expectedResponse = new SearchCatalogResponse(); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResults($results); + $transport->addResponse($expectedResponse); + // Mock request + $scope = new Scope(); + $query = 'query107944136'; + $request = (new SearchCatalogRequest()) + ->setScope($scope) + ->setQuery($query); + $response = $gapicClient->searchCatalog($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.datacatalog.v1.DataCatalog/SearchCatalog', $actualFuncCall); + $actualValue = $actualRequestObject->getScope(); + $this->assertProtobufEquals($scope, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchCatalogExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = new Scope(); + $query = 'query107944136'; + $request = (new SearchCatalogRequest()) + ->setScope($scope) + ->setQuery($query); + try { + $gapicClient->searchCatalog($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.cloud.datacatalog.v1.DataCatalog/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 starEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new StarEntryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new StarEntryRequest()) + ->setName($formattedName); + $response = $gapicClient->starEntry($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.datacatalog.v1.DataCatalog/StarEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function starEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new StarEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->starEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.cloud.datacatalog.v1.DataCatalog/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 unstarEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new UnstarEntryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new UnstarEntryRequest()) + ->setName($formattedName); + $response = $gapicClient->unstarEntry($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.datacatalog.v1.DataCatalog/UnstarEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function unstarEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new UnstarEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->unstarEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $linkedResource = 'linkedResource1544625012'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $userSpecifiedType = 'userSpecifiedType-940364963'; + $userSpecifiedSystem = 'userSpecifiedSystem-1776119406'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setLinkedResource($linkedResource); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $expectedResponse->setUserSpecifiedType($userSpecifiedType); + $expectedResponse->setUserSpecifiedSystem($userSpecifiedSystem); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $entry = new Entry(); + $request = (new UpdateEntryRequest()) + ->setEntry($entry); + $response = $gapicClient->updateEntry($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.datacatalog.v1.DataCatalog/UpdateEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $entry = new Entry(); + $request = (new UpdateEntryRequest()) + ->setEntry($entry); + try { + $gapicClient->updateEntry($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $entryGroup = new EntryGroup(); + $request = (new UpdateEntryGroupRequest()) + ->setEntryGroup($entryGroup); + $response = $gapicClient->updateEntryGroup($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.datacatalog.v1.DataCatalog/UpdateEntryGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getEntryGroup(); + $this->assertProtobufEquals($entryGroup, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $entryGroup = new EntryGroup(); + $request = (new UpdateEntryGroupRequest()) + ->setEntryGroup($entryGroup); + try { + $gapicClient->updateEntryGroup($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $template = 'template-1321546630'; + $templateDisplayName = 'templateDisplayName-532252787'; + $column = 'column-1354837162'; + $expectedResponse = new Tag(); + $expectedResponse->setName($name); + $expectedResponse->setTemplate($template); + $expectedResponse->setTemplateDisplayName($templateDisplayName); + $expectedResponse->setColumn($column); + $transport->addResponse($expectedResponse); + // Mock request + $tag = new Tag(); + $tagTemplate = 'tagTemplate1678947892'; + $tag->setTemplate($tagTemplate); + $fieldsValue = new TagField(); + $tagFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tag->setFields($tagFields); + $request = (new UpdateTagRequest()) + ->setTag($tag); + $response = $gapicClient->updateTag($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.datacatalog.v1.DataCatalog/UpdateTag', $actualFuncCall); + $actualValue = $actualRequestObject->getTag(); + $this->assertProtobufEquals($tag, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $tag = new Tag(); + $tagTemplate = 'tagTemplate1678947892'; + $tag->setTemplate($tagTemplate); + $fieldsValue = new TagField(); + $tagFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tag->setFields($tagFields); + $request = (new UpdateTagRequest()) + ->setTag($tag); + try { + $gapicClient->updateTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $isPubliclyReadable = true; + $expectedResponse = new TagTemplate(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsPubliclyReadable($isPubliclyReadable); + $transport->addResponse($expectedResponse); + // Mock request + $tagTemplate = new TagTemplate(); + $fieldsValue = new TagTemplateField(); + $valueType = new FieldType(); + $fieldsValue->setType($valueType); + $tagTemplateFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tagTemplate->setFields($tagTemplateFields); + $request = (new UpdateTagTemplateRequest()) + ->setTagTemplate($tagTemplate); + $response = $gapicClient->updateTagTemplate($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.datacatalog.v1.DataCatalog/UpdateTagTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getTagTemplate(); + $this->assertProtobufEquals($tagTemplate, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $tagTemplate = new TagTemplate(); + $fieldsValue = new TagTemplateField(); + $valueType = new FieldType(); + $fieldsValue->setType($valueType); + $tagTemplateFields = [ + 'fieldsKey' => $fieldsValue, + ]; + $tagTemplate->setFields($tagTemplateFields); + $request = (new UpdateTagTemplateRequest()) + ->setTagTemplate($tagTemplate); + try { + $gapicClient->updateTagTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagTemplateFieldTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isRequired = true; + $description = 'description-1724546052'; + $order = 106006350; + $expectedResponse = new TagTemplateField(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsRequired($isRequired); + $expectedResponse->setDescription($description); + $expectedResponse->setOrder($order); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $tagTemplateField = new TagTemplateField(); + $tagTemplateFieldType = new FieldType(); + $tagTemplateField->setType($tagTemplateFieldType); + $request = (new UpdateTagTemplateFieldRequest()) + ->setName($formattedName) + ->setTagTemplateField($tagTemplateField); + $response = $gapicClient->updateTagTemplateField($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.datacatalog.v1.DataCatalog/UpdateTagTemplateField', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getTagTemplateField(); + $this->assertProtobufEquals($tagTemplateField, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTagTemplateFieldExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tagTemplateFieldName('[PROJECT]', '[LOCATION]', '[TAG_TEMPLATE]', '[FIELD]'); + $tagTemplateField = new TagTemplateField(); + $tagTemplateFieldType = new FieldType(); + $tagTemplateField->setType($tagTemplateFieldType); + $request = (new UpdateTagTemplateFieldRequest()) + ->setName($formattedName) + ->setTagTemplateField($tagTemplateField); + try { + $gapicClient->updateTagTemplateField($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $linkedResource = 'linkedResource1544625012'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $userSpecifiedType = 'userSpecifiedType-940364963'; + $userSpecifiedSystem = 'userSpecifiedSystem-1776119406'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setLinkedResource($linkedResource); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $expectedResponse->setUserSpecifiedType($userSpecifiedType); + $expectedResponse->setUserSpecifiedSystem($userSpecifiedSystem); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = 'entryId-2093663224'; + $entry = new Entry(); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + $response = $gapicClient->createEntryAsync($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.datacatalog.v1.DataCatalog/CreateEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntryId(); + $this->assertProtobufEquals($entryId, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerClientTest.php b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerClientTest.php new file mode 100644 index 000000000000..4f5a67a85321 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerClientTest.php @@ -0,0 +1,991 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return PolicyTagManagerClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PolicyTagManagerClient($options); + } + + /** @test */ + public function createPolicyTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parentPolicyTag = 'parentPolicyTag2071382466'; + $expectedResponse = new PolicyTag(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParentPolicyTag($parentPolicyTag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new CreatePolicyTagRequest()) + ->setParent($formattedParent); + $response = $gapicClient->createPolicyTag($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.datacatalog.v1.PolicyTagManager/CreatePolicyTag', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPolicyTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new CreatePolicyTagRequest()) + ->setParent($formattedParent); + try { + $gapicClient->createPolicyTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $policyTagCount = 1074340189; + $expectedResponse = new Taxonomy(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPolicyTagCount($policyTagCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new CreateTaxonomyRequest()) + ->setParent($formattedParent); + $response = $gapicClient->createTaxonomy($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.datacatalog.v1.PolicyTagManager/CreateTaxonomy', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTaxonomyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 CreateTaxonomyRequest()) + ->setParent($formattedParent); + try { + $gapicClient->createTaxonomy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePolicyTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->policyTagName('[PROJECT]', '[LOCATION]', '[TAXONOMY]', '[POLICY_TAG]'); + $request = (new DeletePolicyTagRequest()) + ->setName($formattedName); + $gapicClient->deletePolicyTag($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.PolicyTagManager/DeletePolicyTag', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePolicyTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->policyTagName('[PROJECT]', '[LOCATION]', '[TAXONOMY]', '[POLICY_TAG]'); + $request = (new DeletePolicyTagRequest()) + ->setName($formattedName); + try { + $gapicClient->deletePolicyTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new DeleteTaxonomyRequest()) + ->setName($formattedName); + $gapicClient->deleteTaxonomy($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.PolicyTagManager/DeleteTaxonomy', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTaxonomyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new DeleteTaxonomyRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTaxonomy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.cloud.datacatalog.v1.PolicyTagManager/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 getPolicyTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parentPolicyTag = 'parentPolicyTag2071382466'; + $expectedResponse = new PolicyTag(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParentPolicyTag($parentPolicyTag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->policyTagName('[PROJECT]', '[LOCATION]', '[TAXONOMY]', '[POLICY_TAG]'); + $request = (new GetPolicyTagRequest()) + ->setName($formattedName); + $response = $gapicClient->getPolicyTag($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.datacatalog.v1.PolicyTagManager/GetPolicyTag', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPolicyTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->policyTagName('[PROJECT]', '[LOCATION]', '[TAXONOMY]', '[POLICY_TAG]'); + $request = (new GetPolicyTagRequest()) + ->setName($formattedName); + try { + $gapicClient->getPolicyTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $policyTagCount = 1074340189; + $expectedResponse = new Taxonomy(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPolicyTagCount($policyTagCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new GetTaxonomyRequest()) + ->setName($formattedName); + $response = $gapicClient->getTaxonomy($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.datacatalog.v1.PolicyTagManager/GetTaxonomy', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTaxonomyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new GetTaxonomyRequest()) + ->setName($formattedName); + try { + $gapicClient->getTaxonomy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPolicyTagsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $policyTagsElement = new PolicyTag(); + $policyTags = [ + $policyTagsElement, + ]; + $expectedResponse = new ListPolicyTagsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPolicyTags($policyTags); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new ListPolicyTagsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPolicyTags($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPolicyTags()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.PolicyTagManager/ListPolicyTags', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPolicyTagsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new ListPolicyTagsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPolicyTags($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTaxonomiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $taxonomiesElement = new Taxonomy(); + $taxonomies = [ + $taxonomiesElement, + ]; + $expectedResponse = new ListTaxonomiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTaxonomies($taxonomies); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListTaxonomiesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTaxonomies($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTaxonomies()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.v1.PolicyTagManager/ListTaxonomies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTaxonomiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListTaxonomiesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTaxonomies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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.cloud.datacatalog.v1.PolicyTagManager/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.cloud.datacatalog.v1.PolicyTagManager/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 updatePolicyTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parentPolicyTag = 'parentPolicyTag2071382466'; + $expectedResponse = new PolicyTag(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParentPolicyTag($parentPolicyTag); + $transport->addResponse($expectedResponse); + $request = new UpdatePolicyTagRequest(); + $response = $gapicClient->updatePolicyTag($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.datacatalog.v1.PolicyTagManager/UpdatePolicyTag', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePolicyTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->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 UpdatePolicyTagRequest(); + try { + $gapicClient->updatePolicyTag($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $policyTagCount = 1074340189; + $expectedResponse = new Taxonomy(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPolicyTagCount($policyTagCount); + $transport->addResponse($expectedResponse); + $request = new UpdateTaxonomyRequest(); + $response = $gapicClient->updateTaxonomy($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.datacatalog.v1.PolicyTagManager/UpdateTaxonomy', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTaxonomyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->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 UpdateTaxonomyRequest(); + try { + $gapicClient->updateTaxonomy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPolicyTagAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parentPolicyTag = 'parentPolicyTag2071382466'; + $expectedResponse = new PolicyTag(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParentPolicyTag($parentPolicyTag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $request = (new CreatePolicyTagRequest()) + ->setParent($formattedParent); + $response = $gapicClient->createPolicyTagAsync($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.datacatalog.v1.PolicyTagManager/CreatePolicyTag', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerSerializationClientTest.php b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerSerializationClientTest.php new file mode 100644 index 000000000000..57d4bf4ec714 --- /dev/null +++ b/owl-bot-staging/DataCatalog/v1/tests/Unit/V1/Client/PolicyTagManagerSerializationClientTest.php @@ -0,0 +1,314 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return PolicyTagManagerSerializationClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PolicyTagManagerSerializationClient($options); + } + + /** @test */ + public function exportTaxonomiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExportTaxonomiesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedTaxonomies = [ + $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'), + ]; + $request = (new ExportTaxonomiesRequest()) + ->setParent($formattedParent) + ->setTaxonomies($formattedTaxonomies); + $response = $gapicClient->exportTaxonomies($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.datacatalog.v1.PolicyTagManagerSerialization/ExportTaxonomies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTaxonomies(); + $this->assertProtobufEquals($formattedTaxonomies, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportTaxonomiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $formattedTaxonomies = [ + $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'), + ]; + $request = (new ExportTaxonomiesRequest()) + ->setParent($formattedParent) + ->setTaxonomies($formattedTaxonomies); + try { + $gapicClient->exportTaxonomies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importTaxonomiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ImportTaxonomiesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ImportTaxonomiesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->importTaxonomies($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.datacatalog.v1.PolicyTagManagerSerialization/ImportTaxonomies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importTaxonomiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ImportTaxonomiesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->importTaxonomies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function replaceTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $policyTagCount = 1074340189; + $expectedResponse = new Taxonomy(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setPolicyTagCount($policyTagCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $serializedTaxonomy = new SerializedTaxonomy(); + $serializedTaxonomyDisplayName = 'serializedTaxonomyDisplayName1493662264'; + $serializedTaxonomy->setDisplayName($serializedTaxonomyDisplayName); + $request = (new ReplaceTaxonomyRequest()) + ->setName($formattedName) + ->setSerializedTaxonomy($serializedTaxonomy); + $response = $gapicClient->replaceTaxonomy($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.datacatalog.v1.PolicyTagManagerSerialization/ReplaceTaxonomy', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getSerializedTaxonomy(); + $this->assertProtobufEquals($serializedTaxonomy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function replaceTaxonomyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'); + $serializedTaxonomy = new SerializedTaxonomy(); + $serializedTaxonomyDisplayName = 'serializedTaxonomyDisplayName1493662264'; + $serializedTaxonomy->setDisplayName($serializedTaxonomyDisplayName); + $request = (new ReplaceTaxonomyRequest()) + ->setName($formattedName) + ->setSerializedTaxonomy($serializedTaxonomy); + try { + $gapicClient->replaceTaxonomy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportTaxonomiesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExportTaxonomiesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedTaxonomies = [ + $gapicClient->taxonomyName('[PROJECT]', '[LOCATION]', '[TAXONOMY]'), + ]; + $request = (new ExportTaxonomiesRequest()) + ->setParent($formattedParent) + ->setTaxonomies($formattedTaxonomies); + $response = $gapicClient->exportTaxonomiesAsync($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.datacatalog.v1.PolicyTagManagerSerialization/ExportTaxonomies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTaxonomies(); + $this->assertProtobufEquals($formattedTaxonomies, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/Lineage/V1/Lineage.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/GPBMetadata/Google/Cloud/Datacatalog/Lineage/V1/Lineage.php new file mode 100644 index 0000000000000000000000000000000000000000..de625304ae580c997c1d0b949878c3e90b12ecd8 GIT binary patch literal 11416 zcmcIqU2Gd!72dIvG`Vh?^lrONvn)HEE;J2Un|QmWO#gQLldRR&_Qr9SMV73IGf8IS zj9t&TB~%fx2;NpaEJDB=ydW(vyzsUH@c`29BS<{t2?>NmpAb(_UO4w}Jma6_Iti89 z+MavPJwM+$_nb5L*4^e-6J1u9Eyrq^p0%#7?W*3Er8Zj)uTg8%)wTA6tb7TW@S8>b7Hr+p#^{tlQrN&2Fn3X5F=bws-AD+o^eW!%+!A!KqnuS5?N7 ztbMK70889fg=j@$9575J=Xh4jG3%9#<UAHaA z8;)klw(9FCYs-9WH(JAyu2>vC(n8*EIGe4u*BL$ge12aMOEe|QqjK{qxd2^y>7eBy184Wk0Rocg3Ab*p4YP1+MeakMAhhA zEO{%=q&d*malT*N@X51|*V-jJD)=ol)@a$AwlgyVd&QDpl44n)B$UH!4o!7&#xWG# zwsx6f_zP(Cu~~0hGentK@+Gl>uu=RWd8$WlDEj&{!$cZ^jDQN$4^ZO9;dDs|)7=E( z_pO@eCZ6(7d*F3AOh}w3o{Eoq33y6uZLx*qv7nt zzwO^Z2!gfcRS8PC{bvPBker?$aX+Ssxg&THja$w-BN?R@J%mKTDKtus5^H7*)}Kkn z#TJK3T_RL;+Y|J%mP4bIF~Hx@)^t{c&}pBY=|^9KNi_<89VU`fC+0@#6n_q4x8&}m*vWFJGu>IWb& zH9&XUof)SADraiS4LEPJkPO3u_$-z@#K&P+oRT3?^pBKh#t#%!xpIL0Li(p7sL-vAmW1XdNKf6b?zemwozZ?;zEG~-ZBrDHI=JXym zaX(h0_-p8lf9zGg-6l)DXOcIiY}dV z=#du1*HEn1vLKHPk+PzpEGHEKQLQA>%6W7aGRbPTTF#e>*>r9x2Z@6wm|`}c$>o%^80?3igRtc$WLT?9*uaJ)@MFm%Y?wf?HsxI<6)ML{?@_Tt>S)r6K>SXc^?Kt; zb;ovH=#D5@#>r`?U0ZXY-vxS63j)+h^*ofp@dY&HSl{rffh}ouu5F@o8LMvfIQYo+ z>-7@ZXk7cLf~FbnA(IH3Uhl&E7b)gdd{|MWccM3zoRh*j>^d0dKLX(x&I7{nO&Gq1 z+~lONokf#??SN2_(gST5x7T60OKYMj0xaO;!}+MDmxOW+O?P(WD87zHS|9-ju(U-7 zgSU#N8F-Itph2Mht%5Ex(DG9-bOhe*LT`ei_bQgJNgtre(3!%M;Gz_wgCY%v_PgjM zKu~b42)^4PC~@J3ILSUx&+2uoS^hU3ZZcrRm0rcHnlDEV#rW_<;Xi-hKH-N0k=IE2j7pN5#kM~wu32p3_1@o z9LxCjWfj_yOhUMD!;(Vzhz%u<4>!8O3&Tupv>z+z)s*SgwmOFA#o5UeQ&>zXB2Wm? zJ}m;nj6i`!Ow(Op5l~NP-&2q}STv4}x6vdown!fX(~x0u2G^8^>aduXcbCwv->5cNTOuv`~p7=(Lkb${9yf((P|0jsrtC}@mLWg&IM z*vN$S{%ovpT`E2qhj@v;uA_}F=+K!&Yu{B63OsxnT__dGE9q>te{-BJmsSf8pgBH` z##6cFcgoq7_n_aNLa~goYE+lXrCcEoGd*}r#(jlSc4c}5kT`k2P`H;}sg_pDnOtFd zlq?_=#g#&OdMx?LE9ex!gS;@rKZ&4OZudT|HeQladoTlj3e7Gbn-2>O?fre@Mb`B% z1pE9C{`9wxB6;l&c>(&AJ-^))Gw%7oY=8LlQ5muh%JdtE}q&eUEP(+LdojLA?REvZY0=4iT9D#T~Z=nH{LNr2=SA-&g_m6RiQug{; z`%wAJ$fNW8jUC{Lz22ekm+_l2FYFg{x|`@DTF_8+~uzqI!m{p zT7KVvVv~$J7odfu?z*X6J3Je7yaiE1U&rWV?udU6;`;*!N%8&l!;Am!zA**c_Qe0) z0M+A{aB#B$1x`x&fGr+ggLDur*D*7_WXKDV@oy9~PC{`7rVv=J z02j-J#BxaMQ1MXDhC^K_aA2tSVh8^lVB=3bBw^#P7b+YQ=|BAcM*8*nqxtT?3c@Ua zdGSO?G5C%Y>Us%P5H|wb|%(k+@@`=-Q=0Jx%P47@-n?X8&8w#v+)evw@Q;c zSB=d$53BgY#m~g53cqDbui5f-75|n}U{_fKH($wBCA-$=)+=4fZl~^{J%s)T0B-_p literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesRequest.php new file mode 100644 index 000000000000..75a9ce2414ac --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesRequest.php @@ -0,0 +1,206 @@ +google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + */ +class BatchSearchLinkProcessesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project and location where you want to search. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. An array of links to check for their associated LineageProcesses. + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * Format: `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field repeated string links = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $links; + /** + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * 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 + * Required. The project and location where you want to search. + * @type array|\Google\Protobuf\Internal\RepeatedField $links + * Required. An array of links to check for their associated LineageProcesses. + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * Format: `projects/{project}/locations/{location}/links/{link}`. + * @type int $page_size + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * @type string $page_token + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project and location where you want to search. + * + * Generated 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 where you want to search. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 array of links to check for their associated LineageProcesses. + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * Format: `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field repeated string links = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinks() + { + return $this->links; + } + + /** + * Required. An array of links to check for their associated LineageProcesses. + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * Format: `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field repeated string links = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->links = $arr; + + return $this; + } + + /** + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * + * 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; + } + + /** + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesResponse.php new file mode 100644 index 000000000000..6dd4e7df55b5 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/BatchSearchLinkProcessesResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + */ +class BatchSearchLinkProcessesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * An array of processes associated with the specified links. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinks process_links = 1; + */ + private $process_links; + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages 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\DataCatalog\Lineage\V1\ProcessLinks>|\Google\Protobuf\Internal\RepeatedField $process_links + * An array of processes associated with the specified links. + * @type string $next_page_token + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages in the response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * An array of processes associated with the specified links. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinks process_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProcessLinks() + { + return $this->process_links; + } + + /** + * An array of processes associated with the specified links. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinks process_links = 1; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\ProcessLinks>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProcessLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\ProcessLinks::class); + $this->process_links = $arr; + + return $this; + } + + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages in the response. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateLineageEventRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateLineageEventRequest.php new file mode 100644 index 000000000000..dbe80ec46995 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateLineageEventRequest.php @@ -0,0 +1,170 @@ +google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + */ +class CreateLineageEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the run that should own the lineage event. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The lineage event to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lineage_event = null; + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the run that should own the lineage event. Please see + * {@see LineageClient::runName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent $lineageEvent Required. The lineage event to create. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\CreateLineageEventRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent $lineageEvent): self + { + return (new self()) + ->setParent($parent) + ->setLineageEvent($lineageEvent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the run that should own the lineage event. + * @type \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent $lineage_event + * Required. The lineage event to create. + * @type string $request_id + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the run that should own the lineage event. + * + * Generated 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 run that should own the lineage event. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 lineage event to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent|null + */ + public function getLineageEvent() + { + return $this->lineage_event; + } + + public function hasLineageEvent() + { + return isset($this->lineage_event); + } + + public function clearLineageEvent() + { + unset($this->lineage_event); + } + + /** + * Required. The lineage event to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent $var + * @return $this + */ + public function setLineageEvent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent::class); + $this->lineage_event = $var; + + return $this; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateProcessRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateProcessRequest.php new file mode 100644 index 000000000000..aa9d1ebaaee6 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateProcessRequest.php @@ -0,0 +1,175 @@ +google.cloud.datacatalog.lineage.v1.CreateProcessRequest + */ +class CreateProcessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project and its location that should own the + * process. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The process to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $process = null; + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the project and its location that should own the + * process. Please see + * {@see LineageClient::locationName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\Lineage\V1\Process $process Required. The process to create. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\CreateProcessRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\Lineage\V1\Process $process): self + { + return (new self()) + ->setParent($parent) + ->setProcess($process); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the project and its location that should own the + * process. + * @type \Google\Cloud\DataCatalog\Lineage\V1\Process $process + * Required. The process to create. + * @type string $request_id + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project and its location that should own the + * process. + * + * Generated 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 and its location that should own the + * process. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 process to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\Process|null + */ + public function getProcess() + { + return $this->process; + } + + public function hasProcess() + { + return isset($this->process); + } + + public function clearProcess() + { + unset($this->process); + } + + /** + * Required. The process to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\Process $var + * @return $this + */ + public function setProcess($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Process::class); + $this->process = $var; + + return $this; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateRunRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateRunRequest.php new file mode 100644 index 000000000000..67ac72ae8277 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/CreateRunRequest.php @@ -0,0 +1,170 @@ +google.cloud.datacatalog.lineage.v1.CreateRunRequest + */ +class CreateRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the process that should own the run. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The run to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $run = null; + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the process that should own the run. Please see + * {@see LineageClient::processName()} for help formatting this field. + * @param \Google\Cloud\DataCatalog\Lineage\V1\Run $run Required. The run to create. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\CreateRunRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataCatalog\Lineage\V1\Run $run): self + { + return (new self()) + ->setParent($parent) + ->setRun($run); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the process that should own the run. + * @type \Google\Cloud\DataCatalog\Lineage\V1\Run $run + * Required. The run to create. + * @type string $request_id + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the process that should own the run. + * + * Generated 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 process that should own the run. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 run to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\Run|null + */ + public function getRun() + { + return $this->run; + } + + public function hasRun() + { + return isset($this->run); + } + + public function clearRun() + { + unset($this->run); + } + + /** + * Required. The run to create. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\Run $var + * @return $this + */ + public function setRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Run::class); + $this->run = $var; + + return $this; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteLineageEventRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteLineageEventRequest.php new file mode 100644 index 000000000000..18b9d21a24a2 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteLineageEventRequest.php @@ -0,0 +1,120 @@ +google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + */ +class DeleteLineageEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the lineage event to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + + /** + * @param string $name Required. The name of the lineage event to delete. Please see + * {@see LineageClient::lineageEventName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\DeleteLineageEventRequest + * + * @experimental + */ + public static function 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 lineage event to delete. + * @type bool $allow_missing + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the lineage event 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 name of the lineage event 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; + } + + /** + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteProcessRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteProcessRequest.php new file mode 100644 index 000000000000..088e68cffa5b --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteProcessRequest.php @@ -0,0 +1,120 @@ +google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + */ +class DeleteProcessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the process to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + + /** + * @param string $name Required. The name of the process to delete. Please see + * {@see LineageClient::processName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\DeleteProcessRequest + * + * @experimental + */ + public static function 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 process to delete. + * @type bool $allow_missing + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the process 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 name of the process 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; + } + + /** + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteRunRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteRunRequest.php new file mode 100644 index 000000000000..bcc506513f22 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/DeleteRunRequest.php @@ -0,0 +1,120 @@ +google.cloud.datacatalog.lineage.v1.DeleteRunRequest + */ +class DeleteRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the run to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + + /** + * @param string $name Required. The name of the run to delete. Please see + * {@see LineageClient::runName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\DeleteRunRequest + * + * @experimental + */ + public static function 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 run to delete. + * @type bool $allow_missing + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the run 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 name of the run 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; + } + + /** + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EntityReference.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EntityReference.php new file mode 100644 index 000000000000..9925e0dce8a7 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EntityReference.php @@ -0,0 +1,75 @@ +google.cloud.datacatalog.lineage.v1.EntityReference + */ +class EntityReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. + * + * Generated from protobuf field string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fully_qualified_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $fully_qualified_name + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. + * + * Generated from protobuf field string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->fully_qualified_name; + } + + /** + * Required. [Fully Qualified Name + * (FQN)](https://cloud.google.com/data-catalog/docs/fully-qualified-names) + * of the entity. + * + * Generated from protobuf field string fully_qualified_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->fully_qualified_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EventLink.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EventLink.php new file mode 100644 index 000000000000..8d1247a25be5 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/EventLink.php @@ -0,0 +1,121 @@ +google.cloud.datacatalog.lineage.v1.EventLink + */ +class EventLink extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Reference to the source entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $source = null; + /** + * Required. Reference to the target entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $source + * Required. Reference to the source entity + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $target + * Required. Reference to the target entity + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. Reference to the source entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Required. Reference to the source entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->source = $var; + + return $this; + } + + /** + * Required. Reference to the target entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Required. Reference to the target entity + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetLineageEventRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetLineageEventRequest.php new file mode 100644 index 000000000000..bcfbb6140411 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetLineageEventRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + */ +class GetLineageEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the lineage event 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 name of the lineage event to get. Please see + * {@see LineageClient::lineageEventName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\GetLineageEventRequest + * + * @experimental + */ + public static function 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 lineage event to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the lineage event 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 name of the lineage event 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetProcessRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetProcessRequest.php new file mode 100644 index 000000000000..7f23ce58f182 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetProcessRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.lineage.v1.GetProcessRequest + */ +class GetProcessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the process 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 name of the process to get. Please see + * {@see LineageClient::processName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\GetProcessRequest + * + * @experimental + */ + public static function 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 process to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the process 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 name of the process 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetRunRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetRunRequest.php new file mode 100644 index 000000000000..b0f0b84a2848 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/GetRunRequest.php @@ -0,0 +1,82 @@ +google.cloud.datacatalog.lineage.v1.GetRunRequest + */ +class GetRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the run 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 name of the run to get. Please see + * {@see LineageClient::runName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\GetRunRequest + * + * @experimental + */ + public static function 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 run to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the run 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 name of the run 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/LineageEvent.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/LineageEvent.php new file mode 100644 index 000000000000..2f6da93d3340 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/LineageEvent.php @@ -0,0 +1,226 @@ +google.cloud.datacatalog.lineage.v1.LineageEvent + */ +class LineageEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the lineage event. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * Can be specified or auto-assigned. + * {lineage_event} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Optional. List of source-target pairs. Can't contain more than 100 tuples. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $links; + /** + * Required. The beginning of the transformation which resulted in this + * lineage event. For streaming scenarios, it should be the beginning of the + * period from which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_time = null; + /** + * Optional. The end of the transformation which resulted in this lineage + * event. For streaming scenarios, it should be the end of the period from + * which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the lineage event. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * Can be specified or auto-assigned. + * {lineage_event} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * @type array<\Google\Cloud\DataCatalog\Lineage\V1\EventLink>|\Google\Protobuf\Internal\RepeatedField $links + * Optional. List of source-target pairs. Can't contain more than 100 tuples. + * @type \Google\Protobuf\Timestamp $start_time + * Required. The beginning of the transformation which resulted in this + * lineage event. For streaming scenarios, it should be the beginning of the + * period from which the lineage is being reported. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The end of the transformation which resulted in this lineage + * event. For streaming scenarios, it should be the end of the period from + * which the lineage is being reported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the lineage event. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * Can be specified or auto-assigned. + * {lineage_event} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the lineage event. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * Can be specified or auto-assigned. + * {lineage_event} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * 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; + } + + /** + * Optional. List of source-target pairs. Can't contain more than 100 tuples. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinks() + { + return $this->links; + } + + /** + * Optional. List of source-target pairs. Can't contain more than 100 tuples. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\EventLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\EventLink::class); + $this->links = $arr; + + return $this; + } + + /** + * Required. The beginning of the transformation which resulted in this + * lineage event. For streaming scenarios, it should be the beginning of the + * period from which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The beginning of the transformation which resulted in this + * lineage event. For streaming scenarios, it should be the beginning of the + * period from which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. The end of the transformation which resulted in this lineage + * event. For streaming scenarios, it should be the end of the period from + * which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @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); + } + + /** + * Optional. The end of the transformation which resulted in this lineage + * event. For streaming scenarios, it should be the end of the period from + * which the lineage is being reported. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Link.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Link.php new file mode 100644 index 000000000000..bc87e154dbeb --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Link.php @@ -0,0 +1,250 @@ +google.cloud.datacatalog.lineage.v1.Link + */ +class Link extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Immutable. The name of the link. Format: + * `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The pointer to the entity that is the **source** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 2; + */ + protected $source = null; + /** + * The pointer to the entity that is the **target** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 3; + */ + protected $target = null; + /** + * The start of the first event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; + */ + protected $start_time = null; + /** + * The end of the last event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Immutable. The name of the link. Format: + * `projects/{project}/locations/{location}/links/{link}`. + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $source + * The pointer to the entity that is the **source** of this link. + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $target + * The pointer to the entity that is the **target** of this link. + * @type \Google\Protobuf\Timestamp $start_time + * The start of the first event establishing this link. + * @type \Google\Protobuf\Timestamp $end_time + * The end of the last event establishing this link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Immutable. The name of the link. Format: + * `projects/{project}/locations/{location}/links/{link}`. + * + * 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. The name of the link. Format: + * `projects/{project}/locations/{location}/links/{link}`. + * + * 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; + } + + /** + * The pointer to the entity that is the **source** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 2; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * The pointer to the entity that is the **source** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 2; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->source = $var; + + return $this; + } + + /** + * The pointer to the entity that is the **target** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 3; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * The pointer to the entity that is the **target** of this link. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 3; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->target = $var; + + return $this; + } + + /** + * The start of the first event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; + * @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 first event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; + * @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 last event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + * @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 last event establishing this link. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsRequest.php new file mode 100644 index 000000000000..02a1847041af --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsRequest.php @@ -0,0 +1,178 @@ +google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + */ +class ListLineageEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the run that owns the collection of lineage events to + * get. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of lineage events to return. + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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 run that owns the collection of lineage events to + * get. Please see {@see LineageClient::runName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\ListLineageEventsRequest + * + * @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 run that owns the collection of lineage events to + * get. + * @type int $page_size + * The maximum number of lineage events to return. + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * @type string $page_token + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the run that owns the collection of lineage events to + * get. + * + * Generated 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 run that owns the collection of lineage events to + * get. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 lineage events to return. + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of lineage events to return. + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * + * 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 `ListLineageEvents` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsResponse.php new file mode 100644 index 000000000000..1543999a54a6 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListLineageEventsResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + */ +class ListLineageEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lineage events from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_events = 1; + */ + private $lineage_events; + /** + * The token to specify as `page_token` in the next call to get 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\DataCatalog\Lineage\V1\LineageEvent>|\Google\Protobuf\Internal\RepeatedField $lineage_events + * Lineage events from the specified project and location. + * @type string $next_page_token + * The token to specify as `page_token` in the next call to get the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Lineage events from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_events = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLineageEvents() + { + return $this->lineage_events; + } + + /** + * Lineage events from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.LineageEvent lineage_events = 1; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\LineageEvent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLineageEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\LineageEvent::class); + $this->lineage_events = $arr; + + return $this; + } + + /** + * The token to specify as `page_token` in the next call to get 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; + } + + /** + * The token to specify as `page_token` in the next call to get 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesRequest.php new file mode 100644 index 000000000000..1b81bb00d128 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesRequest.php @@ -0,0 +1,179 @@ +google.cloud.datacatalog.lineage.v1.ListProcessesRequest + */ +class ListProcessesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project and its location that owns this + * collection of processes. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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 project and its location that owns this + * collection of processes. Please see + * {@see LineageClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\ListProcessesRequest + * + * @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 and its location that owns this + * collection of processes. + * @type int $page_size + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @type string $page_token + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project and its location that owns this + * collection of processes. + * + * Generated 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 and its location that owns this + * collection of processes. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * 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 `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesResponse.php new file mode 100644 index 000000000000..075a0e6e3dc4 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListProcessesResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.lineage.v1.ListProcessesResponse + */ +class ListProcessesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The processes from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Process processes = 1; + */ + private $processes; + /** + * The token to specify as `page_token` in the next call to get 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\DataCatalog\Lineage\V1\Process>|\Google\Protobuf\Internal\RepeatedField $processes + * The processes from the specified project and location. + * @type string $next_page_token + * The token to specify as `page_token` in the next call to get the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * The processes from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Process processes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProcesses() + { + return $this->processes; + } + + /** + * The processes from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Process processes = 1; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\Process>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProcesses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\Process::class); + $this->processes = $arr; + + return $this; + } + + /** + * The token to specify as `page_token` in the next call to get 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; + } + + /** + * The token to specify as `page_token` in the next call to get 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsRequest.php new file mode 100644 index 000000000000..6a762c1e9dcd --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsRequest.php @@ -0,0 +1,174 @@ +google.cloud.datacatalog.lineage.v1.ListRunsRequest + */ +class ListRunsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of process that owns this collection of runs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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 process that owns this collection of runs. Please see + * {@see LineageClient::processName()} for help formatting this field. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\ListRunsRequest + * + * @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 process that owns this collection of runs. + * @type int $page_size + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @type string $page_token + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of process that owns this collection of runs. + * + * Generated 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 process that owns this collection of runs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * + * 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 `ListRuns` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsResponse.php new file mode 100644 index 000000000000..ad73a867f0ca --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ListRunsResponse.php @@ -0,0 +1,106 @@ +google.cloud.datacatalog.lineage.v1.ListRunsResponse + */ +class ListRunsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The runs from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Run runs = 1; + */ + private $runs; + /** + * The token to specify as `page_token` in the next call to get 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\DataCatalog\Lineage\V1\Run>|\Google\Protobuf\Internal\RepeatedField $runs + * The runs from the specified project and location. + * @type string $next_page_token + * The token to specify as `page_token` in the next call to get the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * The runs from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Run runs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRuns() + { + return $this->runs; + } + + /** + * The runs from the specified project and location. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Run runs = 1; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\Run>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\Run::class); + $this->runs = $arr; + + return $this; + } + + /** + * The token to specify as `page_token` in the next call to get 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; + } + + /** + * The token to specify as `page_token` in the next call to get 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata.php new file mode 100644 index 000000000000..4043b7e1dd3c --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata.php @@ -0,0 +1,269 @@ +google.cloud.datacatalog.lineage.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The current operation state. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The type of the operation being performed. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.Type operation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $operation_type = 0; + /** + * Output only. The [relative name] + * (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + * of the resource being operated on. + * + * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource = ''; + /** + * Output only. The UUID of the resource being operated on. + * + * Generated from protobuf field string resource_uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_uuid = ''; + /** + * Output only. The timestamp of the operation submission to the server. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of the operation termination, regardless of its + * success. This field is unset if the operation is still ongoing. + * + * 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 int $state + * Output only. The current operation state. + * @type int $operation_type + * Output only. The type of the operation being performed. + * @type string $resource + * Output only. The [relative name] + * (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + * of the resource being operated on. + * @type string $resource_uuid + * Output only. The UUID of the resource being operated on. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of the operation submission to the server. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The timestamp of the operation termination, regardless of its + * success. This field is unset if the operation is still ongoing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The current operation state. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current operation state. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\Lineage\V1\OperationMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The type of the operation being performed. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.Type operation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getOperationType() + { + return $this->operation_type; + } + + /** + * Output only. The type of the operation being performed. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.OperationMetadata.Type operation_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setOperationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\Lineage\V1\OperationMetadata\Type::class); + $this->operation_type = $var; + + return $this; + } + + /** + * Output only. The [relative name] + * (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + * of the resource being operated on. + * + * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Output only. The [relative name] + * (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + * of the resource being operated on. + * + * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Output only. The UUID of the resource being operated on. + * + * Generated from protobuf field string resource_uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResourceUuid() + { + return $this->resource_uuid; + } + + /** + * Output only. The UUID of the resource being operated on. + * + * Generated from protobuf field string resource_uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResourceUuid($var) + { + GPBUtil::checkString($var, True); + $this->resource_uuid = $var; + + return $this; + } + + /** + * Output only. The timestamp of the operation submission to the server. + * + * 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 timestamp of the operation submission to the server. + * + * 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 timestamp of the operation termination, regardless of its + * success. This field is unset if the operation is still ongoing. + * + * 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. The timestamp of the operation termination, regardless of its + * success. This field is unset if the operation is still ongoing. + * + * 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/State.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/State.php new file mode 100644 index 000000000000..5dcdd98eed98 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/State.php @@ -0,0 +1,78 @@ +google.cloud.datacatalog.lineage.v1.OperationMetadata.State + */ +class State +{ + /** + * Unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The operation has been created but is not yet started. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The operation is underway. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The operation completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 3; + */ + const SUCCEEDED = 3; + /** + * The operation is no longer running and did not succeed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + 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(State::class, \Google\Cloud\DataCatalog\Lineage\V1\OperationMetadata_State::class); + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/Type.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/Type.php new file mode 100644 index 000000000000..2ea01f6e0b6e --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/OperationMetadata/Type.php @@ -0,0 +1,64 @@ +google.cloud.datacatalog.lineage.v1.OperationMetadata.Type + */ +class Type +{ + /** + * Unused. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * The resource deletion operation. + * + * Generated from protobuf enum DELETE = 1; + */ + const DELETE = 1; + /** + * The resource creation operation. + * + * Generated from protobuf enum CREATE = 2; + */ + const CREATE = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::DELETE => 'DELETE', + self::CREATE => 'CREATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataCatalog\Lineage\V1\OperationMetadata_Type::class); + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin.php new file mode 100644 index 000000000000..7ff80980f5ac --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin.php @@ -0,0 +1,141 @@ +google.cloud.datacatalog.lineage.v1.Origin + */ +class Origin extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the source. + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1; + */ + protected $source_type = 0; + /** + * If the source_type isn't CUSTOM, the value of this field should be a GCP + * resource name of the system, which reports lineage. The project and + * location parts of the resource name must match the project and location of + * the lineage resource being created. Examples: + * - `{source_type: COMPOSER, name: + * "projects/foo/locations/us/environments/bar"}` + * - `{source_type: BIGQUERY, name: "projects/foo/locations/eu"}` + * - `{source_type: CUSTOM, name: "myCustomIntegration"}` + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $source_type + * Type of the source. + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. + * @type string $name + * If the source_type isn't CUSTOM, the value of this field should be a GCP + * resource name of the system, which reports lineage. The project and + * location parts of the resource name must match the project and location of + * the lineage resource being created. Examples: + * - `{source_type: COMPOSER, name: + * "projects/foo/locations/us/environments/bar"}` + * - `{source_type: BIGQUERY, name: "projects/foo/locations/eu"}` + * - `{source_type: CUSTOM, name: "myCustomIntegration"}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Type of the source. + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * Type of the source. + * Use of a source_type other than `CUSTOM` for process creation + * or updating is highly discouraged, and may be restricted in the future + * without notice. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin.SourceType source_type = 1; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\Lineage\V1\Origin\SourceType::class); + $this->source_type = $var; + + return $this; + } + + /** + * If the source_type isn't CUSTOM, the value of this field should be a GCP + * resource name of the system, which reports lineage. The project and + * location parts of the resource name must match the project and location of + * the lineage resource being created. Examples: + * - `{source_type: COMPOSER, name: + * "projects/foo/locations/us/environments/bar"}` + * - `{source_type: BIGQUERY, name: "projects/foo/locations/eu"}` + * - `{source_type: CUSTOM, name: "myCustomIntegration"}` + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * If the source_type isn't CUSTOM, the value of this field should be a GCP + * resource name of the system, which reports lineage. The project and + * location parts of the resource name must match the project and location of + * the lineage resource being created. Examples: + * - `{source_type: COMPOSER, name: + * "projects/foo/locations/us/environments/bar"}` + * - `{source_type: BIGQUERY, name: "projects/foo/locations/eu"}` + * - `{source_type: CUSTOM, name: "myCustomIntegration"}` + * + * 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin/SourceType.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin/SourceType.php new file mode 100644 index 000000000000..c1dcb06d5789 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Origin/SourceType.php @@ -0,0 +1,92 @@ +google.cloud.datacatalog.lineage.v1.Origin.SourceType + */ +class SourceType +{ + /** + * Source is Unspecified + * + * Generated from protobuf enum SOURCE_TYPE_UNSPECIFIED = 0; + */ + const SOURCE_TYPE_UNSPECIFIED = 0; + /** + * A custom source + * + * Generated from protobuf enum CUSTOM = 1; + */ + const CUSTOM = 1; + /** + * BigQuery + * + * Generated from protobuf enum BIGQUERY = 2; + */ + const BIGQUERY = 2; + /** + * Data Fusion + * + * Generated from protobuf enum DATA_FUSION = 3; + */ + const DATA_FUSION = 3; + /** + * Composer + * + * Generated from protobuf enum COMPOSER = 4; + */ + const COMPOSER = 4; + /** + * Looker Studio + * + * Generated from protobuf enum LOOKER_STUDIO = 5; + */ + const LOOKER_STUDIO = 5; + /** + * Dataproc + * + * Generated from protobuf enum DATAPROC = 6; + */ + const DATAPROC = 6; + + private static $valueToName = [ + self::SOURCE_TYPE_UNSPECIFIED => 'SOURCE_TYPE_UNSPECIFIED', + self::CUSTOM => 'CUSTOM', + self::BIGQUERY => 'BIGQUERY', + self::DATA_FUSION => 'DATA_FUSION', + self::COMPOSER => 'COMPOSER', + self::LOOKER_STUDIO => 'LOOKER_STUDIO', + self::DATAPROC => 'DATAPROC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SourceType::class, \Google\Cloud\DataCatalog\Lineage\V1\Origin_SourceType::class); + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Process.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Process.php new file mode 100644 index 000000000000..7e3b5ce22728 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Process.php @@ -0,0 +1,215 @@ +google.cloud.datacatalog.lineage.v1.Process + */ +class Process extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the lineage process. Format: + * `projects/{project}/locations/{location}/processes/{process}`. + * Can be specified or auto-assigned. + * {process} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 200 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $attributes; + /** + * Optional. The origin of this process and its runs and lineage events. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin origin = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $origin = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the lineage process. Format: + * `projects/{project}/locations/{location}/processes/{process}`. + * Can be specified or auto-assigned. + * {process} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * @type string $display_name + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 200 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * @type array|\Google\Protobuf\Internal\MapField $attributes + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * Up to 100 attributes are allowed. + * @type \Google\Cloud\DataCatalog\Lineage\V1\Origin $origin + * Optional. The origin of this process and its runs and lineage events. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the lineage process. Format: + * `projects/{project}/locations/{location}/processes/{process}`. + * Can be specified or auto-assigned. + * {process} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the lineage process. Format: + * `projects/{project}/locations/{location}/processes/{process}`. + * Can be specified or auto-assigned. + * {process} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * 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; + } + + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 200 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 200 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * 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 attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. The attributes of the process. Should only be used for the + * purpose of non-semantic management (classifying, describing or labeling the + * process). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.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\Protobuf\Value::class); + $this->attributes = $arr; + + return $this; + } + + /** + * Optional. The origin of this process and its runs and lineage events. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin origin = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\Origin|null + */ + public function getOrigin() + { + return $this->origin; + } + + public function hasOrigin() + { + return isset($this->origin); + } + + public function clearOrigin() + { + unset($this->origin); + } + + /** + * Optional. The origin of this process and its runs and lineage events. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Origin origin = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\Origin $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Origin::class); + $this->origin = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinkInfo.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinkInfo.php new file mode 100644 index 000000000000..2b02891300f5 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinkInfo.php @@ -0,0 +1,159 @@ +google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + */ +class ProcessLinkInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the link in the format of + * `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field string link = 1; + */ + protected $link = ''; + /** + * The start of the first event establishing this link-process tuple. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The end of the last event establishing this link-process tuple. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $link + * The name of the link in the format of + * `projects/{project}/locations/{location}/links/{link}`. + * @type \Google\Protobuf\Timestamp $start_time + * The start of the first event establishing this link-process tuple. + * @type \Google\Protobuf\Timestamp $end_time + * The end of the last event establishing this link-process tuple. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * The name of the link in the format of + * `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field string link = 1; + * @return string + */ + public function getLink() + { + return $this->link; + } + + /** + * The name of the link in the format of + * `projects/{project}/locations/{location}/links/{link}`. + * + * Generated from protobuf field string link = 1; + * @param string $var + * @return $this + */ + public function setLink($var) + { + GPBUtil::checkString($var, True); + $this->link = $var; + + return $this; + } + + /** + * The start of the first event establishing this link-process tuple. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 first event establishing this link-process tuple. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 last event establishing this link-process tuple. + * + * 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); + } + + /** + * The end of the last event establishing this link-process tuple. + * + * 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; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinks.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinks.php new file mode 100644 index 000000000000..dc67efad53f0 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessLinks.php @@ -0,0 +1,121 @@ +google.cloud.datacatalog.lineage.v1.ProcessLinks + */ +class ProcessLinks extends \Google\Protobuf\Internal\Message +{ + /** + * The process name in the format of + * `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + */ + protected $process = ''; + /** + * An array containing link details objects of the links provided in + * the original request. + * A single process can result in creating multiple links. + * If any of the links you provide in the request are created by + * the same process, they all are included in this array. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2; + */ + private $links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $process + * The process name in the format of + * `projects/{project}/locations/{location}/processes/{process}`. + * @type array<\Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo>|\Google\Protobuf\Internal\RepeatedField $links + * An array containing link details objects of the links provided in + * the original request. + * A single process can result in creating multiple links. + * If any of the links you provide in the request are created by + * the same process, they all are included in this array. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * The process name in the format of + * `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getProcess() + { + return $this->process; + } + + /** + * The process name in the format of + * `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProcess($var) + { + GPBUtil::checkString($var, True); + $this->process = $var; + + return $this; + } + + /** + * An array containing link details objects of the links provided in + * the original request. + * A single process can result in creating multiple links. + * If any of the links you provide in the request are created by + * the same process, they all are included in this array. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinks() + { + return $this->links; + } + + /** + * An array containing link details objects of the links provided in + * the original request. + * A single process can result in creating multiple links. + * If any of the links you provide in the request are created by + * the same process, they all are included in this array. + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo::class); + $this->links = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventRequest.php new file mode 100644 index 000000000000..b079efe53f2e --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventRequest.php @@ -0,0 +1,179 @@ +google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest + */ +class ProcessOpenLineageRunEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project and its location that should own the + * process, run, and lineage event. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * + * Generated from protobuf field .google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $open_lineage = null; + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the project and its location that should own the + * process, run, and lineage event. + * @param \Google\Protobuf\Struct $openLineage Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\ProcessOpenLineageRunEventRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Protobuf\Struct $openLineage): self + { + return (new self()) + ->setParent($parent) + ->setOpenLineage($openLineage); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the project and its location that should own the + * process, run, and lineage event. + * @type \Google\Protobuf\Struct $open_lineage + * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * @type string $request_id + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project and its location that should own the + * process, run, and lineage event. + * + * 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 and its location that should own the + * process, run, and lineage event. + * + * 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. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * + * Generated from protobuf field .google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Struct|null + */ + public function getOpenLineage() + { + return $this->open_lineage; + } + + public function hasOpenLineage() + { + return isset($this->open_lineage); + } + + public function clearOpenLineage() + { + unset($this->open_lineage); + } + + /** + * Required. OpenLineage message following OpenLineage format: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json + * + * Generated from protobuf field .google.protobuf.Struct open_lineage = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setOpenLineage($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->open_lineage = $var; + + return $this; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * + * Generated from protobuf field string request_id = 3; + * @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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventResponse.php new file mode 100644 index 000000000000..37a196bfebfd --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/ProcessOpenLineageRunEventResponse.php @@ -0,0 +1,156 @@ +google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse + */ +class ProcessOpenLineageRunEventResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + */ + protected $process = ''; + /** + * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field string run = 2 [(.google.api.resource_reference) = { + */ + protected $run = ''; + /** + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * + * Generated from protobuf field repeated string lineage_events = 3 [(.google.api.resource_reference) = { + */ + private $lineage_events; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $process + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + * @type string $run + * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * @type array|\Google\Protobuf\Internal\RepeatedField $lineage_events + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getProcess() + { + return $this->process; + } + + /** + * Created process name. + * Format: `projects/{project}/locations/{location}/processes/{process}`. + * + * Generated from protobuf field string process = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProcess($var) + { + GPBUtil::checkString($var, True); + $this->process = $var; + + return $this; + } + + /** + * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field string run = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getRun() + { + return $this->run; + } + + /** + * Created run name. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field string run = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRun($var) + { + GPBUtil::checkString($var, True); + $this->run = $var; + + return $this; + } + + /** + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * + * Generated from protobuf field repeated string lineage_events = 3 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLineageEvents() + { + return $this->lineage_events; + } + + /** + * Created lineage event names. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + * + * Generated from protobuf field repeated string lineage_events = 3 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLineageEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->lineage_events = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run.php new file mode 100644 index 000000000000..b9f690869130 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run.php @@ -0,0 +1,290 @@ +google.cloud.datacatalog.lineage.v1.Run + */ +class Run extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the run. Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * Can be specified or auto-assigned. + * {run} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 1024 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $attributes; + /** + * Required. The timestamp of the start of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_time = null; + /** + * Optional. The timestamp of the end of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_time = null; + /** + * Required. The state of the run. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the run. Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * Can be specified or auto-assigned. + * {run} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * @type string $display_name + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 1024 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * @type array|\Google\Protobuf\Internal\MapField $attributes + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * Up to 100 attributes are allowed. + * @type \Google\Protobuf\Timestamp $start_time + * Required. The timestamp of the start of the run. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The timestamp of the end of the run. + * @type int $state + * Required. The state of the run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the run. Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * Can be specified or auto-assigned. + * {run} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the run. Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * Can be specified or auto-assigned. + * {run} must be not longer than 200 characters and only + * contain characters in a set: `a-zA-Z0-9_-:.` + * + * 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; + } + + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 1024 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. A human-readable name you can set to display in a user interface. + * Must be not longer than 1024 characters and only contain UTF-8 letters + * or numbers, spaces or characters like `_-:&.` + * + * 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 attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. The attributes of the run. Should only be used for the purpose of + * non-semantic management (classifying, describing or labeling the run). + * Up to 100 attributes are allowed. + * + * Generated from protobuf field map attributes = 3 [(.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\Protobuf\Value::class); + $this->attributes = $arr; + + return $this; + } + + /** + * Required. The timestamp of the start of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The timestamp of the start of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. The timestamp of the end of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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); + } + + /** + * Optional. The timestamp of the end of the run. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Required. The state of the run. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Required. The state of the run. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\Lineage\V1\Run\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run/State.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run/State.php new file mode 100644 index 000000000000..7fce45aebf28 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/Run/State.php @@ -0,0 +1,79 @@ +google.cloud.datacatalog.lineage.v1.Run.State + */ +class State +{ + /** + * The state is unknown. The true state may be any of the below or a + * different state that is not supported here explicitly. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * The run is still executing. + * + * Generated from protobuf enum STARTED = 1; + */ + const STARTED = 1; + /** + * The run completed. + * + * Generated from protobuf enum COMPLETED = 2; + */ + const COMPLETED = 2; + /** + * The run failed. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * The run aborted. + * + * Generated from protobuf enum ABORTED = 4; + */ + const ABORTED = 4; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::STARTED => 'STARTED', + self::COMPLETED => 'COMPLETED', + self::FAILED => 'FAILED', + self::ABORTED => 'ABORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataCatalog\Lineage\V1\Run_State::class); + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksRequest.php new file mode 100644 index 000000000000..61cfe999f15d --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksRequest.php @@ -0,0 +1,245 @@ +google.cloud.datacatalog.lineage.v1.SearchLinksRequest + */ +class SearchLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project and location you want search in. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * Maximum value is 100; values greater than 100 are reduced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + protected $criteria; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The project and location you want search in. + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $source + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * @type \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $target + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * @type int $page_size + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * Maximum value is 100; values greater than 100 are reduced to 100. + * @type string $page_token + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project and location you want search in. + * + * Generated 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 you want search in. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getSource() + { + return $this->readOneof(4); + } + + public function hasSource() + { + return $this->hasOneof(4); + } + + /** + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\EntityReference|null + */ + public function getTarget() + { + return $this->readOneof(5); + } + + public function hasTarget() + { + return $this->hasOneof(5); + } + + /** + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.EntityReference target = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\EntityReference $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\EntityReference::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * Maximum value is 100; values greater than 100 are reduced to 100. + * + * 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 links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * Maximum value is 100; values greater than 100 are reduced to 100. + * + * 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 page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * + * 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; + } + + /** + * @return string + */ + public function getCriteria() + { + return $this->whichOneof("criteria"); + } + +} + diff --git a/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksResponse.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksResponse.php new file mode 100644 index 000000000000..e54d2eb0e0fe --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/SearchLinksResponse.php @@ -0,0 +1,110 @@ +google.cloud.datacatalog.lineage.v1.SearchLinksResponse + */ +class SearchLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of links for a given asset. Can be empty if the asset has no + * relations of requested type (source or target). + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Link links = 1; + */ + private $links; + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages 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\DataCatalog\Lineage\V1\Link>|\Google\Protobuf\Internal\RepeatedField $links + * The list of links for a given asset. Can be empty if the asset has no + * relations of requested type (source or target). + * @type string $next_page_token + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages in the response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * The list of links for a given asset. Can be empty if the asset has no + * relations of requested type (source or target). + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Link links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinks() + { + return $this->links; + } + + /** + * The list of links for a given asset. Can be empty if the asset has no + * relations of requested type (source or target). + * + * Generated from protobuf field repeated .google.cloud.datacatalog.lineage.v1.Link links = 1; + * @param array<\Google\Cloud\DataCatalog\Lineage\V1\Link>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\Link::class); + $this->links = $arr; + + return $this; + } + + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages in the response. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The token to specify as `page_token` in the subsequent call to get the next + * page. Omitted if there are no more pages 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateProcessRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateProcessRequest.php new file mode 100644 index 000000000000..9b26ec7372de --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateProcessRequest.php @@ -0,0 +1,182 @@ +google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + */ +class UpdateProcessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The lineage process to update. + * The process's `name` field is used to identify the process to update. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $process = null; + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + /** + * If set to true and the process is not found, the request inserts it. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + + /** + * @param \Google\Cloud\DataCatalog\Lineage\V1\Process $process Required. The lineage process to update. + * + * The process's `name` field is used to identify the process to update. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. Currently not used. The whole message is + * updated. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\UpdateProcessRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\Lineage\V1\Process $process, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setProcess($process) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\Lineage\V1\Process $process + * Required. The lineage process to update. + * The process's `name` field is used to identify the process to update. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. Currently not used. The whole message is + * updated. + * @type bool $allow_missing + * If set to true and the process is not found, the request inserts it. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The lineage process to update. + * The process's `name` field is used to identify the process to update. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\Process|null + */ + public function getProcess() + { + return $this->process; + } + + public function hasProcess() + { + return isset($this->process); + } + + public function clearProcess() + { + unset($this->process); + } + + /** + * Required. The lineage process to update. + * The process's `name` field is used to identify the process to update. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Process process = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\Process $var + * @return $this + */ + public function setProcess($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Process::class); + $this->process = $var; + + return $this; + } + + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. Currently not used. The whole message is + * 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; + } + + /** + * If set to true and the process is not found, the request inserts it. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true and the process is not found, the request inserts it. + * + * 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/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateRunRequest.php b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateRunRequest.php new file mode 100644 index 000000000000..8122fdd17704 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/proto/src/Google/Cloud/DataCatalog/Lineage/V1/UpdateRunRequest.php @@ -0,0 +1,193 @@ +google.cloud.datacatalog.lineage.v1.UpdateRunRequest + */ +class UpdateRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The lineage run to update. + * The run's `name` field is used to identify the run to update. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $run = null; + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + /** + * If set to true and the run is not found, the request creates it. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + + /** + * @param \Google\Cloud\DataCatalog\Lineage\V1\Run $run Required. The lineage run to update. + * + * The run's `name` field is used to identify the run to update. + * + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. Currently not used. The whole message is + * updated. + * + * @return \Google\Cloud\DataCatalog\Lineage\V1\UpdateRunRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataCatalog\Lineage\V1\Run $run, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRun($run) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DataCatalog\Lineage\V1\Run $run + * Required. The lineage run to update. + * The run's `name` field is used to identify the run to update. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. Currently not used. The whole message is + * updated. + * @type bool $allow_missing + * If set to true and the run is not found, the request creates it. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce(); + parent::__construct($data); + } + + /** + * Required. The lineage run to update. + * The run's `name` field is used to identify the run to update. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataCatalog\Lineage\V1\Run|null + */ + public function getRun() + { + return $this->run; + } + + public function hasRun() + { + return isset($this->run); + } + + public function clearRun() + { + unset($this->run); + } + + /** + * Required. The lineage run to update. + * The run's `name` field is used to identify the run to update. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * + * Generated from protobuf field .google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataCatalog\Lineage\V1\Run $var + * @return $this + */ + public function setRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Run::class); + $this->run = $var; + + return $this; + } + + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. Currently not used. The whole message is + * 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; + } + + /** + * If set to true and the run is not found, the request creates it. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true and the run is not found, the request creates it. + * + * 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/DataCatalogLineage/v1/samples/V1/LineageClient/batch_search_link_processes.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/batch_search_link_processes.php new file mode 100644 index 000000000000..4553c096dc2e --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/batch_search_link_processes.php @@ -0,0 +1,99 @@ +setParent($formattedParent) + ->setLinks($links); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $lineageClient->batchSearchLinkProcesses($request); + + /** @var ProcessLinks $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 = LineageClient::locationName('[PROJECT]', '[LOCATION]'); + $linksElement = '[LINKS]'; + + batch_search_link_processes_sample($formattedParent, $linksElement); +} +// [END datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_lineage_event.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_lineage_event.php new file mode 100644 index 000000000000..7887b6f924e1 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_lineage_event.php @@ -0,0 +1,76 @@ +setStartTime($lineageEventStartTime); + $request = (new CreateLineageEventRequest()) + ->setParent($formattedParent) + ->setLineageEvent($lineageEvent); + + // Call the API and handle any network failures. + try { + /** @var LineageEvent $response */ + $response = $lineageClient->createLineageEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = LineageClient::runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + + create_lineage_event_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_CreateLineageEvent_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_process.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_process.php new file mode 100644 index 000000000000..ccf8de5dd65f --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_process.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setProcess($process); + + // Call the API and handle any network failures. + try { + /** @var Process $response */ + $response = $lineageClient->createProcess($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = LineageClient::locationName('[PROJECT]', '[LOCATION]'); + + create_process_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_CreateProcess_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_run.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_run.php new file mode 100644 index 000000000000..14f0bc5761e1 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/create_run.php @@ -0,0 +1,80 @@ +setStartTime($runStartTime) + ->setState($runState); + $request = (new CreateRunRequest()) + ->setParent($formattedParent) + ->setRun($run); + + // Call the API and handle any network failures. + try { + /** @var Run $response */ + $response = $lineageClient->createRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = LineageClient::processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $runState = State::UNKNOWN; + + create_run_sample($formattedParent, $runState); +} +// [END datalineage_v1_generated_Lineage_CreateRun_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_lineage_event.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_lineage_event.php new file mode 100644 index 000000000000..df5d86715c0a --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_lineage_event.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $lineageClient->deleteLineageEvent($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 = LineageClient::lineageEventName( + '[PROJECT]', + '[LOCATION]', + '[PROCESS]', + '[RUN]', + '[LINEAGE_EVENT]' + ); + + delete_lineage_event_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_DeleteLineageEvent_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_process.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_process.php new file mode 100644 index 000000000000..9e314117609f --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_process.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $lineageClient->deleteProcess($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 = LineageClient::processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + + delete_process_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_DeleteProcess_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_run.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_run.php new file mode 100644 index 000000000000..c04b3a1c5386 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/delete_run.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $lineageClient->deleteRun($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 = LineageClient::runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + + delete_run_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_DeleteRun_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_lineage_event.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_lineage_event.php new file mode 100644 index 000000000000..8f0399dd6ef9 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_lineage_event.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var LineageEvent $response */ + $response = $lineageClient->getLineageEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = LineageClient::lineageEventName( + '[PROJECT]', + '[LOCATION]', + '[PROCESS]', + '[RUN]', + '[LINEAGE_EVENT]' + ); + + get_lineage_event_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_GetLineageEvent_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_process.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_process.php new file mode 100644 index 000000000000..a3e6b50c90eb --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_process.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Process $response */ + $response = $lineageClient->getProcess($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = LineageClient::processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + + get_process_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_GetProcess_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_run.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_run.php new file mode 100644 index 000000000000..9470ec3200b9 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/get_run.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Run $response */ + $response = $lineageClient->getRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = LineageClient::runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + + get_run_sample($formattedName); +} +// [END datalineage_v1_generated_Lineage_GetRun_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_lineage_events.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_lineage_events.php new file mode 100644 index 000000000000..764f84fcf728 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_lineage_events.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $lineageClient->listLineageEvents($request); + + /** @var LineageEvent $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 = LineageClient::runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + + list_lineage_events_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_ListLineageEvents_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_processes.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_processes.php new file mode 100644 index 000000000000..4e16f17999d3 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_processes.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $lineageClient->listProcesses($request); + + /** @var Process $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 = LineageClient::locationName('[PROJECT]', '[LOCATION]'); + + list_processes_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_ListProcesses_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_runs.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_runs.php new file mode 100644 index 000000000000..7dc61c580ed2 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/list_runs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $lineageClient->listRuns($request); + + /** @var Run $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 = LineageClient::processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + + list_runs_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_ListRuns_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/process_open_lineage_run_event.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/process_open_lineage_run_event.php new file mode 100644 index 000000000000..877496d8faee --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/process_open_lineage_run_event.php @@ -0,0 +1,77 @@ +setParent($parent) + ->setOpenLineage($openLineage); + + // Call the API and handle any network failures. + try { + /** @var ProcessOpenLineageRunEventResponse $response */ + $response = $lineageClient->processOpenLineageRunEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - 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]'; + + process_open_lineage_run_event_sample($parent); +} +// [END datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/search_links.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/search_links.php new file mode 100644 index 000000000000..7d3333c9b3ec --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/search_links.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $lineageClient->searchLinks($request); + + /** @var Link $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 = LineageClient::locationName('[PROJECT]', '[LOCATION]'); + + search_links_sample($formattedParent); +} +// [END datalineage_v1_generated_Lineage_SearchLinks_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_process.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_process.php new file mode 100644 index 000000000000..85d4faf06e30 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_process.php @@ -0,0 +1,59 @@ +setProcess($process); + + // Call the API and handle any network failures. + try { + /** @var Process $response */ + $response = $lineageClient->updateProcess($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END datalineage_v1_generated_Lineage_UpdateProcess_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_run.php b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_run.php new file mode 100644 index 000000000000..4e239596bc62 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/samples/V1/LineageClient/update_run.php @@ -0,0 +1,76 @@ +setStartTime($runStartTime) + ->setState($runState); + $request = (new UpdateRunRequest()) + ->setRun($run); + + // Call the API and handle any network failures. + try { + /** @var Run $response */ + $response = $lineageClient->updateRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $runState = State::UNKNOWN; + + update_run_sample($runState); +} +// [END datalineage_v1_generated_Lineage_UpdateRun_sync] diff --git a/owl-bot-staging/DataCatalogLineage/v1/src/V1/Client/LineageClient.php b/owl-bot-staging/DataCatalogLineage/v1/src/V1/Client/LineageClient.php new file mode 100644 index 000000000000..ee4ddfea6b33 --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/src/V1/Client/LineageClient.php @@ -0,0 +1,837 @@ + batchSearchLinkProcessesAsync(BatchSearchLinkProcessesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createLineageEventAsync(CreateLineageEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface createProcessAsync(CreateProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRunAsync(CreateRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteLineageEventAsync(DeleteLineageEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteProcessAsync(DeleteProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRunAsync(DeleteRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLineageEventAsync(GetLineageEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProcessAsync(GetProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRunAsync(GetRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLineageEventsAsync(ListLineageEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProcessesAsync(ListProcessesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRunsAsync(ListRunsRequest $request, array $optionalArgs = []) + * @method PromiseInterface processOpenLineageRunEventAsync(ProcessOpenLineageRunEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchLinksAsync(SearchLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateProcessAsync(UpdateProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRunAsync(UpdateRunRequest $request, array $optionalArgs = []) + */ +final class LineageClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.datacatalog.lineage.v1.Lineage'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'datalineage.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'datalineage.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/lineage_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/lineage_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/lineage_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/lineage_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 + * lineage_event resource. + * + * @param string $project + * @param string $location + * @param string $process + * @param string $run + * @param string $lineageEvent + * + * @return string The formatted lineage_event resource. + */ + public static function lineageEventName(string $project, string $location, string $process, string $run, string $lineageEvent): string + { + return self::getPathTemplate('lineageEvent')->render([ + 'project' => $project, + 'location' => $location, + 'process' => $process, + 'run' => $run, + 'lineage_event' => $lineageEvent, + ]); + } + + /** + * 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 process + * resource. + * + * @param string $project + * @param string $location + * @param string $process + * + * @return string The formatted process resource. + */ + public static function processName(string $project, string $location, string $process): string + { + return self::getPathTemplate('process')->render([ + 'project' => $project, + 'location' => $location, + 'process' => $process, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a run + * resource. + * + * @param string $project + * @param string $location + * @param string $process + * @param string $run + * + * @return string The formatted run resource. + */ + public static function runName(string $project, string $location, string $process, string $run): string + { + return self::getPathTemplate('run')->render([ + 'project' => $project, + 'location' => $location, + 'process' => $process, + 'run' => $run, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - lineageEvent: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event} + * - location: projects/{project}/locations/{location} + * - process: projects/{project}/locations/{location}/processes/{process} + * - run: projects/{project}/locations/{location}/processes/{process}/runs/{run} + * + * 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 'datalineage.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); + } + + /** + * Retrieve information about LineageProcesses associated with specific + * links. LineageProcesses are transformation pipelines that result in data + * flowing from **source** to **target** assets. Links between assets + * represent this operation. + * + * If you have specific link names, you can use this method to + * verify which LineageProcesses contribute to creating those links. + * See the + * [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks] + * method for more information on how to retrieve link name. + * + * You can retrieve the LineageProcess information in every project where you + * have the `datalineage.events.get` permission. The project provided in the + * URL is used for Billing and Quota. + * + * The async variant is {@see LineageClient::batchSearchLinkProcessesAsync()} . + * + * @example samples/V1/LineageClient/batch_search_link_processes.php + * + * @param BatchSearchLinkProcessesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 batchSearchLinkProcesses(BatchSearchLinkProcessesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('BatchSearchLinkProcesses', $request, $callOptions); + } + + /** + * Creates a new lineage event. + * + * The async variant is {@see LineageClient::createLineageEventAsync()} . + * + * @example samples/V1/LineageClient/create_lineage_event.php + * + * @param CreateLineageEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return LineageEvent + * + * @throws ApiException Thrown if the API call fails. + */ + public function createLineageEvent(CreateLineageEventRequest $request, array $callOptions = []): LineageEvent + { + return $this->startApiCall('CreateLineageEvent', $request, $callOptions)->wait(); + } + + /** + * Creates a new process. + * + * The async variant is {@see LineageClient::createProcessAsync()} . + * + * @example samples/V1/LineageClient/create_process.php + * + * @param CreateProcessRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Process + * + * @throws ApiException Thrown if the API call fails. + */ + public function createProcess(CreateProcessRequest $request, array $callOptions = []): Process + { + return $this->startApiCall('CreateProcess', $request, $callOptions)->wait(); + } + + /** + * Creates a new run. + * + * The async variant is {@see LineageClient::createRunAsync()} . + * + * @example samples/V1/LineageClient/create_run.php + * + * @param CreateRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Run + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRun(CreateRunRequest $request, array $callOptions = []): Run + { + return $this->startApiCall('CreateRun', $request, $callOptions)->wait(); + } + + /** + * Deletes the lineage event with the specified name. + * + * The async variant is {@see LineageClient::deleteLineageEventAsync()} . + * + * @example samples/V1/LineageClient/delete_lineage_event.php + * + * @param DeleteLineageEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this 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 deleteLineageEvent(DeleteLineageEventRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteLineageEvent', $request, $callOptions)->wait(); + } + + /** + * Deletes the process with the specified name. + * + * The async variant is {@see LineageClient::deleteProcessAsync()} . + * + * @example samples/V1/LineageClient/delete_process.php + * + * @param DeleteProcessRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 deleteProcess(DeleteProcessRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteProcess', $request, $callOptions)->wait(); + } + + /** + * Deletes the run with the specified name. + * + * The async variant is {@see LineageClient::deleteRunAsync()} . + * + * @example samples/V1/LineageClient/delete_run.php + * + * @param DeleteRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 deleteRun(DeleteRunRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteRun', $request, $callOptions)->wait(); + } + + /** + * Gets details of a specified lineage event. + * + * The async variant is {@see LineageClient::getLineageEventAsync()} . + * + * @example samples/V1/LineageClient/get_lineage_event.php + * + * @param GetLineageEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return LineageEvent + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLineageEvent(GetLineageEventRequest $request, array $callOptions = []): LineageEvent + { + return $this->startApiCall('GetLineageEvent', $request, $callOptions)->wait(); + } + + /** + * Gets the details of the specified process. + * + * The async variant is {@see LineageClient::getProcessAsync()} . + * + * @example samples/V1/LineageClient/get_process.php + * + * @param GetProcessRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Process + * + * @throws ApiException Thrown if the API call fails. + */ + public function getProcess(GetProcessRequest $request, array $callOptions = []): Process + { + return $this->startApiCall('GetProcess', $request, $callOptions)->wait(); + } + + /** + * Gets the details of the specified run. + * + * The async variant is {@see LineageClient::getRunAsync()} . + * + * @example samples/V1/LineageClient/get_run.php + * + * @param GetRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Run + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRun(GetRunRequest $request, array $callOptions = []): Run + { + return $this->startApiCall('GetRun', $request, $callOptions)->wait(); + } + + /** + * Lists lineage events in the given project and location. The list order is + * not defined. + * + * The async variant is {@see LineageClient::listLineageEventsAsync()} . + * + * @example samples/V1/LineageClient/list_lineage_events.php + * + * @param ListLineageEventsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listLineageEvents(ListLineageEventsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLineageEvents', $request, $callOptions); + } + + /** + * List processes in the given project and location. List order is descending + * by insertion time. + * + * The async variant is {@see LineageClient::listProcessesAsync()} . + * + * @example samples/V1/LineageClient/list_processes.php + * + * @param ListProcessesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listProcesses(ListProcessesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListProcesses', $request, $callOptions); + } + + /** + * Lists runs in the given project and location. List order is descending by + * `start_time`. + * + * The async variant is {@see LineageClient::listRunsAsync()} . + * + * @example samples/V1/LineageClient/list_runs.php + * + * @param ListRunsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listRuns(ListRunsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRuns', $request, $callOptions); + } + + /** + * Creates new lineage events together with their parents: process and run. + * Updates the process and run if they already exist. + * Mapped from Open Lineage specification: + * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. + * + * The async variant is {@see LineageClient::processOpenLineageRunEventAsync()} . + * + * @example samples/V1/LineageClient/process_open_lineage_run_event.php + * + * @param ProcessOpenLineageRunEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ProcessOpenLineageRunEventResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function processOpenLineageRunEvent(ProcessOpenLineageRunEventRequest $request, array $callOptions = []): ProcessOpenLineageRunEventResponse + { + return $this->startApiCall('ProcessOpenLineageRunEvent', $request, $callOptions)->wait(); + } + + /** + * Retrieve a list of links connected to a specific asset. + * Links represent the data flow between **source** (upstream) + * and **target** (downstream) assets in transformation pipelines. + * Links are stored in the same project as the Lineage Events that create + * them. + * + * You can retrieve links in every project where you have the + * `datalineage.events.get` permission. The project provided in the URL + * is used for Billing and Quota. + * + * The async variant is {@see LineageClient::searchLinksAsync()} . + * + * @example samples/V1/LineageClient/search_links.php + * + * @param SearchLinksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 searchLinks(SearchLinksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchLinks', $request, $callOptions); + } + + /** + * Updates a process. + * + * The async variant is {@see LineageClient::updateProcessAsync()} . + * + * @example samples/V1/LineageClient/update_process.php + * + * @param UpdateProcessRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Process + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateProcess(UpdateProcessRequest $request, array $callOptions = []): Process + { + return $this->startApiCall('UpdateProcess', $request, $callOptions)->wait(); + } + + /** + * Updates a run. + * + * The async variant is {@see LineageClient::updateRunAsync()} . + * + * @example samples/V1/LineageClient/update_run.php + * + * @param UpdateRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Run + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRun(UpdateRunRequest $request, array $callOptions = []): Run + { + return $this->startApiCall('UpdateRun', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/DataCatalogLineage/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DataCatalogLineage/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..1668b663dd4a --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/src/V1/gapic_metadata.json @@ -0,0 +1,103 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.datacatalog.lineage.v1", + "libraryPackage": "Google\\Cloud\\DataCatalog\\Lineage\\V1", + "services": { + "Lineage": { + "clients": { + "grpc": { + "libraryClient": "LineageGapicClient", + "rpcs": { + "BatchSearchLinkProcesses": { + "methods": [ + "batchSearchLinkProcesses" + ] + }, + "CreateLineageEvent": { + "methods": [ + "createLineageEvent" + ] + }, + "CreateProcess": { + "methods": [ + "createProcess" + ] + }, + "CreateRun": { + "methods": [ + "createRun" + ] + }, + "DeleteLineageEvent": { + "methods": [ + "deleteLineageEvent" + ] + }, + "DeleteProcess": { + "methods": [ + "deleteProcess" + ] + }, + "DeleteRun": { + "methods": [ + "deleteRun" + ] + }, + "GetLineageEvent": { + "methods": [ + "getLineageEvent" + ] + }, + "GetProcess": { + "methods": [ + "getProcess" + ] + }, + "GetRun": { + "methods": [ + "getRun" + ] + }, + "ListLineageEvents": { + "methods": [ + "listLineageEvents" + ] + }, + "ListProcesses": { + "methods": [ + "listProcesses" + ] + }, + "ListRuns": { + "methods": [ + "listRuns" + ] + }, + "ProcessOpenLineageRunEvent": { + "methods": [ + "processOpenLineageRunEvent" + ] + }, + "SearchLinks": { + "methods": [ + "searchLinks" + ] + }, + "UpdateProcess": { + "methods": [ + "updateProcess" + ] + }, + "UpdateRun": { + "methods": [ + "updateRun" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_client_config.json b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_client_config.json new file mode 100644 index 000000000000..33da215543da --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_client_config.json @@ -0,0 +1,119 @@ +{ + "interfaces": { + "google.cloud.datacatalog.lineage.v1.Lineage": { + "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": 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": { + "BatchSearchLinkProcesses": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateProcess": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteProcess": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetProcess": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListLineageEvents": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListProcesses": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListRuns": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ProcessOpenLineageRunEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateProcess": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_descriptor_config.php b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_descriptor_config.php new file mode 100644 index 000000000000..49b653ccab4c --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_descriptor_config.php @@ -0,0 +1,294 @@ + [ + 'google.cloud.datacatalog.lineage.v1.Lineage' => [ + 'DeleteProcess' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\DataCatalog\Lineage\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRun' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\DataCatalog\Lineage\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'BatchSearchLinkProcesses' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProcessLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\BatchSearchLinkProcessesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateLineageEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\LineageEvent', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateProcess' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Process', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Run', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteLineageEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetLineageEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\LineageEvent', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetProcess' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Process', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Run', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListLineageEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLineageEvents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\ListLineageEventsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListProcesses' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProcesses', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\ListProcessesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuns' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRuns', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\ListRunsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ProcessOpenLineageRunEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\ProcessOpenLineageRunEventResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SearchLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\SearchLinksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateProcess' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Process', + 'headerParams' => [ + [ + 'keyName' => 'process.name', + 'fieldAccessors' => [ + 'getProcess', + 'getName', + ], + ], + ], + ], + 'UpdateRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataCatalog\Lineage\V1\Run', + 'headerParams' => [ + [ + 'keyName' => 'run.name', + 'fieldAccessors' => [ + 'getRun', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'lineageEvent' => 'projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}', + 'location' => 'projects/{project}/locations/{location}', + 'process' => 'projects/{project}/locations/{location}/processes/{process}', + 'run' => 'projects/{project}/locations/{location}/processes/{process}/runs/{run}', + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_rest_client_config.php b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_rest_client_config.php new file mode 100644 index 000000000000..4b008e74c5fa --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/src/V1/resources/lineage_rest_client_config.php @@ -0,0 +1,272 @@ + [ + 'google.cloud.datacatalog.lineage.v1.Lineage' => [ + 'BatchSearchLinkProcesses' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:batchSearchLinkProcesses', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateLineageEvent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents', + 'body' => 'lineage_event', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateProcess' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/processes', + 'body' => 'process', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRun' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processes/*}/runs', + 'body' => 'run', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteLineageEvent' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteProcess' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRun' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetLineageEvent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetProcess' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRun' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/processes/*/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLineageEvents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListProcesses' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/processes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuns' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processes/*}/runs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ProcessOpenLineageRunEvent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:processOpenLineageRunEvent', + 'body' => 'open_lineage', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SearchLinks' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:searchLinks', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateProcess' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{process.name=projects/*/locations/*/processes/*}', + 'body' => 'process', + 'placeholders' => [ + 'process.name' => [ + 'getters' => [ + 'getProcess', + 'getName', + ], + ], + ], + ], + 'UpdateRun' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{run.name=projects/*/locations/*/processes/*/runs/*}', + 'body' => 'run', + 'placeholders' => [ + 'run.name' => [ + 'getters' => [ + 'getRun', + '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', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/DataCatalogLineage/v1/tests/Unit/V1/Client/LineageClientTest.php b/owl-bot-staging/DataCatalogLineage/v1/tests/Unit/V1/Client/LineageClientTest.php new file mode 100644 index 000000000000..e0f93b5ee72d --- /dev/null +++ b/owl-bot-staging/DataCatalogLineage/v1/tests/Unit/V1/Client/LineageClientTest.php @@ -0,0 +1,1440 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return LineageClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new LineageClient($options); + } + + /** @test */ + public function batchSearchLinkProcessesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $processLinksElement = new ProcessLinks(); + $processLinks = [ + $processLinksElement, + ]; + $expectedResponse = new BatchSearchLinkProcessesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProcessLinks($processLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $links = []; + $request = (new BatchSearchLinkProcessesRequest()) + ->setParent($formattedParent) + ->setLinks($links); + $response = $gapicClient->batchSearchLinkProcesses($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProcessLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/BatchSearchLinkProcesses', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getLinks(); + $this->assertProtobufEquals($links, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchSearchLinkProcessesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $links = []; + $request = (new BatchSearchLinkProcessesRequest()) + ->setParent($formattedParent) + ->setLinks($links); + try { + $gapicClient->batchSearchLinkProcesses($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createLineageEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new LineageEvent(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $lineageEvent = new LineageEvent(); + $lineageEventStartTime = new Timestamp(); + $lineageEvent->setStartTime($lineageEventStartTime); + $request = (new CreateLineageEventRequest()) + ->setParent($formattedParent) + ->setLineageEvent($lineageEvent); + $response = $gapicClient->createLineageEvent($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.datacatalog.lineage.v1.Lineage/CreateLineageEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getLineageEvent(); + $this->assertProtobufEquals($lineageEvent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createLineageEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $lineageEvent = new LineageEvent(); + $lineageEventStartTime = new Timestamp(); + $lineageEvent->setStartTime($lineageEventStartTime); + $request = (new CreateLineageEventRequest()) + ->setParent($formattedParent) + ->setLineageEvent($lineageEvent); + try { + $gapicClient->createLineageEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createProcessTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Process(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $process = new Process(); + $request = (new CreateProcessRequest()) + ->setParent($formattedParent) + ->setProcess($process); + $response = $gapicClient->createProcess($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.datacatalog.lineage.v1.Lineage/CreateProcess', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getProcess(); + $this->assertProtobufEquals($process, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createProcessExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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]'); + $process = new Process(); + $request = (new CreateProcessRequest()) + ->setParent($formattedParent) + ->setProcess($process); + try { + $gapicClient->createProcess($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Run(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $run = new Run(); + $runStartTime = new Timestamp(); + $run->setStartTime($runStartTime); + $runState = State::UNKNOWN; + $run->setState($runState); + $request = (new CreateRunRequest()) + ->setParent($formattedParent) + ->setRun($run); + $response = $gapicClient->createRun($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.datacatalog.lineage.v1.Lineage/CreateRun', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRun(); + $this->assertProtobufEquals($run, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $run = new Run(); + $runStartTime = new Timestamp(); + $run->setStartTime($runStartTime); + $runState = State::UNKNOWN; + $run->setState($runState); + $request = (new CreateRunRequest()) + ->setParent($formattedParent) + ->setRun($run); + try { + $gapicClient->createRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteLineageEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->lineageEventName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]', '[LINEAGE_EVENT]'); + $request = (new DeleteLineageEventRequest()) + ->setName($formattedName); + $gapicClient->deleteLineageEvent($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/DeleteLineageEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteLineageEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->lineageEventName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]', '[LINEAGE_EVENT]'); + $request = (new DeleteLineageEventRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteLineageEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteProcessTest() + { + $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/deleteProcessTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteProcessTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new DeleteProcessRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteProcess($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.datacatalog.lineage.v1.Lineage/DeleteProcess', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteProcessTest'); + $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 deleteProcessExceptionTest() + { + $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/deleteProcessTest'); + $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->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new DeleteProcessRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteProcess($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteProcessTest'); + 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 deleteRunTest() + { + $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/deleteRunTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteRunTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new DeleteRunRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteRun($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.datacatalog.lineage.v1.Lineage/DeleteRun', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteRunTest'); + $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 deleteRunExceptionTest() + { + $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/deleteRunTest'); + $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->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new DeleteRunRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteRun($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteRunTest'); + 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 getLineageEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new LineageEvent(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->lineageEventName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]', '[LINEAGE_EVENT]'); + $request = (new GetLineageEventRequest()) + ->setName($formattedName); + $response = $gapicClient->getLineageEvent($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.datacatalog.lineage.v1.Lineage/GetLineageEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLineageEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->lineageEventName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]', '[LINEAGE_EVENT]'); + $request = (new GetLineageEventRequest()) + ->setName($formattedName); + try { + $gapicClient->getLineageEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProcessTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Process(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new GetProcessRequest()) + ->setName($formattedName); + $response = $gapicClient->getProcess($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.datacatalog.lineage.v1.Lineage/GetProcess', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProcessExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new GetProcessRequest()) + ->setName($formattedName); + try { + $gapicClient->getProcess($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Run(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new GetRunRequest()) + ->setName($formattedName); + $response = $gapicClient->getRun($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.datacatalog.lineage.v1.Lineage/GetRun', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new GetRunRequest()) + ->setName($formattedName); + try { + $gapicClient->getRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLineageEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $lineageEventsElement = new LineageEvent(); + $lineageEvents = [ + $lineageEventsElement, + ]; + $expectedResponse = new ListLineageEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLineageEvents($lineageEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new ListLineageEventsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listLineageEvents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLineageEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/ListLineageEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLineageEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->runName('[PROJECT]', '[LOCATION]', '[PROCESS]', '[RUN]'); + $request = (new ListLineageEventsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listLineageEvents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProcessesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $processesElement = new Process(); + $processes = [ + $processesElement, + ]; + $expectedResponse = new ListProcessesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProcesses($processes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListProcessesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listProcesses($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProcesses()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/ListProcesses', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProcessesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListProcessesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listProcesses($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRunsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $runsElement = new Run(); + $runs = [ + $runsElement, + ]; + $expectedResponse = new ListRunsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRuns($runs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new ListRunsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRuns($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRuns()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/ListRuns', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRunsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->processName('[PROJECT]', '[LOCATION]', '[PROCESS]'); + $request = (new ListRunsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRuns($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function processOpenLineageRunEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $process = 'process-309518737'; + $run = 'run113291'; + $expectedResponse = new ProcessOpenLineageRunEventResponse(); + $expectedResponse->setProcess($process); + $expectedResponse->setRun($run); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $openLineage = new Struct(); + $request = (new ProcessOpenLineageRunEventRequest()) + ->setParent($parent) + ->setOpenLineage($openLineage); + $response = $gapicClient->processOpenLineageRunEvent($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.datacatalog.lineage.v1.Lineage/ProcessOpenLineageRunEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getOpenLineage(); + $this->assertProtobufEquals($openLineage, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function processOpenLineageRunEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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'; + $openLineage = new Struct(); + $request = (new ProcessOpenLineageRunEventRequest()) + ->setParent($parent) + ->setOpenLineage($openLineage); + try { + $gapicClient->processOpenLineageRunEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $linksElement = new Link(); + $links = [ + $linksElement, + ]; + $expectedResponse = new SearchLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLinks($links); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchLinksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->searchLinks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/SearchLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 SearchLinksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->searchLinks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateProcessTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Process(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $process = new Process(); + $request = (new UpdateProcessRequest()) + ->setProcess($process); + $response = $gapicClient->updateProcess($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.datacatalog.lineage.v1.Lineage/UpdateProcess', $actualFuncCall); + $actualValue = $actualRequestObject->getProcess(); + $this->assertProtobufEquals($process, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateProcessExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $process = new Process(); + $request = (new UpdateProcessRequest()) + ->setProcess($process); + try { + $gapicClient->updateProcess($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Run(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $run = new Run(); + $runStartTime = new Timestamp(); + $run->setStartTime($runStartTime); + $runState = State::UNKNOWN; + $run->setState($runState); + $request = (new UpdateRunRequest()) + ->setRun($run); + $response = $gapicClient->updateRun($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.datacatalog.lineage.v1.Lineage/UpdateRun', $actualFuncCall); + $actualValue = $actualRequestObject->getRun(); + $this->assertProtobufEquals($run, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $run = new Run(); + $runStartTime = new Timestamp(); + $run->setStartTime($runStartTime); + $runState = State::UNKNOWN; + $run->setState($runState); + $request = (new UpdateRunRequest()) + ->setRun($run); + try { + $gapicClient->updateRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchSearchLinkProcessesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $processLinksElement = new ProcessLinks(); + $processLinks = [ + $processLinksElement, + ]; + $expectedResponse = new BatchSearchLinkProcessesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProcessLinks($processLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $links = []; + $request = (new BatchSearchLinkProcessesRequest()) + ->setParent($formattedParent) + ->setLinks($links); + $response = $gapicClient->batchSearchLinkProcessesAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProcessLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datacatalog.lineage.v1.Lineage/BatchSearchLinkProcesses', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getLinks(); + $this->assertProtobufEquals($links, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/DataFusion/v1/proto/src/GPBMetadata/Google/Cloud/Datafusion/V1/Datafusion.php b/owl-bot-staging/DataFusion/v1/proto/src/GPBMetadata/Google/Cloud/Datafusion/V1/Datafusion.php new file mode 100644 index 0000000000000000000000000000000000000000..0c7d2454fe42a3cbe0fd008736e6480f255928ac GIT binary patch literal 6980 zcmcgxOK%&=5e}&*ixNfkS~f*n-dWm-Wvxxd+=p%2@@7O*GGUpbNlFU`L?**wQ<`Wr zGnpC6%Uvi50^}FumRxg6t^x8762L(&n?ryF0&I|+_MXe0Qr+|5Lo`iqg6N`QcU5&& zbya=U-48!9k4(5G>`+7rgz{cp zC>BcfcaYUKI+j9n!l7XtYBZy0MyHi&$&TFa*s7stPVe;nN^`jYx_m-yQ&y<3Q`ve- z9hosScDRT}o{4A_0uhaaI}ZR9O}1^JHwvGDfPZGEsi}%!JFZ+s4n))eP zvnjM?&8EnHp0?f56$dpG7{i{f(Dj>wE0fV)Hx0CYQ}C6lFo&Qs8YSJKmM&|J0<{%O zH66pMAZadlNS(lqY-IhWw=5HQT!%!X5c55e34wOEZI7a?})eoA`hq)9E0^%5+#Xj|@R zj^xdA=6R9?BA?2tCO0)IwW*A`M(xCuFoo-V2-8m2q={)0C>C8AYYce?ak=+X;wmx+#jdR3#f&w`K=UWhMc_4yO?8Y^D=!M@D-`ktx z_QV&&<8N!~OEFARkfb_~YSd0SZdob@zN8t4hgdv$NY9gR!`cX%69Zw;uo&44Ew;CbUwKXxzXGDm3DJm&EX%lle9?gzbb}-Ao2eX)bRI?NFm~_$XcPFxQm$MXg z$Lf+Tm@`Zc1c?Y2ac3eCdoGVF<9&!K7G^({SXoK{w<77w@oQE(DE-XGQv|s>CT_3C z6`hRhk)Lb}NFU2?_^XVl=;>f%dHlPpCSegb0T)FWvgJdXSVTDycWw>hHnmPwg-TR! znFgXzBG#K;fay;SohFvp5G$~LF^uzptFYvAV}&s~$h^#%XA&W1?*&+BskW)fU5N)e z;arbkxmQAcfp77hxHir3e}M$sK$N;83xpW=A=uPGY4uv57pr8fYgj z^5q&g#;w;^qsZGp%=e{XV=wg+a?_IKhH9LLB~P=^DOnN5M0<*ZO4xnyGnoD!Je1ghgnlboOC>l zyNO7{kVp$V|*|w_T!HPpv1iPhq z!)hUNHM<;*BB`Ii%8+ihi6HASi4gkUAlLD`Q(U*>-ih6#xJLBc9J-)C0; z!r1N4`!hTiCybudGgv8LZ|=}xEx)TR6XX8{AF5(&8k*)vXuKqg=%fZpzzwjZbT7UoLns#2bp#LJbU>+MBw_9VIILeS7 zHC7e00`FzKDuaCxhJMqlF?gO4(H>%0IurhK24?1J< zI{UXMKmj|JZGIU?{){0uvQUtFm&3voe0%ZgUYdf{S|)f>j5^-$Uj058?3rytY-#keHGVyllpFr(m{-; z&R&XZeFx|B1>pqLA)4m&mirD_Wbnqdv+n%Ebmy%aE6<- zmHm+Ch)cRwmC*Me zxeoHLF!2)W(CB-P$>0hD?=xoeK~F`q`P*=Ehrh|B^XyF~-9wV}!JU`>WW#&0;ZHU$ z&@}MP=Bx0U%bd$`?p&_Np3C99_{ju!ZKM{!z-!Jlcy6uY?G+wr_|+bMo@Lxq_Y>O1 o(cTICtU1dw^Sv9vt^6(b38wGGhJm=MjCif#lgoogle.cloud.datafusion.v1.Accelerator + */ +class Accelerator extends \Google\Protobuf\Internal\Message +{ + /** + * The type of an accelator for a CDF instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.AcceleratorType accelerator_type = 1; + */ + protected $accelerator_type = 0; + /** + * The state of the accelerator + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.State state = 2; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $accelerator_type + * The type of an accelator for a CDF instance. + * @type int $state + * The state of the accelerator + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * The type of an accelator for a CDF instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.AcceleratorType accelerator_type = 1; + * @return int + */ + public function getAcceleratorType() + { + return $this->accelerator_type; + } + + /** + * The type of an accelator for a CDF instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.AcceleratorType accelerator_type = 1; + * @param int $var + * @return $this + */ + public function setAcceleratorType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataFusion\V1\Accelerator\AcceleratorType::class); + $this->accelerator_type = $var; + + return $this; + } + + /** + * The state of the accelerator + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.State state = 2; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of the accelerator + * + * Generated from protobuf field .google.cloud.datafusion.v1.Accelerator.State state = 2; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataFusion\V1\Accelerator\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/AcceleratorType.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/AcceleratorType.php new file mode 100644 index 000000000000..aa79f79a9375 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/AcceleratorType.php @@ -0,0 +1,75 @@ +google.cloud.datafusion.v1.Accelerator.AcceleratorType + */ +class AcceleratorType +{ + /** + * Default value, if unspecified. + * + * Generated from protobuf enum ACCELERATOR_TYPE_UNSPECIFIED = 0; + */ + const ACCELERATOR_TYPE_UNSPECIFIED = 0; + /** + * Change Data Capture accelerator for CDF. + * + * Generated from protobuf enum CDC = 1; + */ + const CDC = 1; + /** + * Cloud Healthcare accelerator for CDF. This accelerator is to enable Cloud + * Healthcare specific CDF plugins developed by Healthcare team. + * + * Generated from protobuf enum HEALTHCARE = 2; + */ + const HEALTHCARE = 2; + /** + * Contact Center AI Insights + * This accelerator is used to enable import and export pipelines + * custom built to streamline CCAI Insights processing. + * + * Generated from protobuf enum CCAI_INSIGHTS = 3; + */ + const CCAI_INSIGHTS = 3; + + private static $valueToName = [ + self::ACCELERATOR_TYPE_UNSPECIFIED => 'ACCELERATOR_TYPE_UNSPECIFIED', + self::CDC => 'CDC', + self::HEALTHCARE => 'HEALTHCARE', + self::CCAI_INSIGHTS => 'CCAI_INSIGHTS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AcceleratorType::class, \Google\Cloud\DataFusion\V1\Accelerator_AcceleratorType::class); + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/State.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/State.php new file mode 100644 index 000000000000..761acd3e719e --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Accelerator/State.php @@ -0,0 +1,72 @@ +google.cloud.datafusion.v1.Accelerator.State + */ +class State +{ + /** + * Default value, do not use + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the accelerator is enabled and available to use + * + * Generated from protobuf enum ENABLED = 1; + */ + const ENABLED = 1; + /** + * Indicates that the accelerator is disabled and not available to use + * + * Generated from protobuf enum DISABLED = 2; + */ + const DISABLED = 2; + /** + * Indicates that accelerator state is currently unknown. + * Requests for enable, disable could be retried while in this state + * + * Generated from protobuf enum UNKNOWN = 3; + */ + const UNKNOWN = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ENABLED => 'ENABLED', + self::DISABLED => 'DISABLED', + self::UNKNOWN => 'UNKNOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataFusion\V1\Accelerator_State::class); + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CreateInstanceRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CreateInstanceRequest.php new file mode 100644 index 000000000000..ba09ee2de958 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CreateInstanceRequest.php @@ -0,0 +1,168 @@ +google.cloud.datafusion.v1.CreateInstanceRequest + */ +class CreateInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The instance's project and location in the 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 name of the instance to create. + * + * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance_id = ''; + /** + * An instance resource. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 3; + */ + protected $instance = null; + + /** + * @param string $parent Required. The instance's project and location in the format + * projects/{project}/locations/{location}. Please see + * {@see DataFusionClient::locationName()} for help formatting this field. + * @param \Google\Cloud\DataFusion\V1\Instance $instance An instance resource. + * @param string $instanceId Required. The name of the instance to create. + * + * @return \Google\Cloud\DataFusion\V1\CreateInstanceRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\DataFusion\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 instance's project and location in the format + * projects/{project}/locations/{location}. + * @type string $instance_id + * Required. The name of the instance to create. + * @type \Google\Cloud\DataFusion\V1\Instance $instance + * An instance resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The instance's project and location in the 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 instance's project and location in the 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 name of the instance to create. + * + * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Required. The name of the instance to create. + * + * 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; + } + + /** + * An instance resource. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 3; + * @return \Google\Cloud\DataFusion\V1\Instance|null + */ + public function getInstance() + { + return $this->instance; + } + + public function hasInstance() + { + return isset($this->instance); + } + + public function clearInstance() + { + unset($this->instance); + } + + /** + * An instance resource. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 3; + * @param \Google\Cloud\DataFusion\V1\Instance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataFusion\V1\Instance::class); + $this->instance = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CryptoKeyConfig.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CryptoKeyConfig.php new file mode 100644 index 000000000000..8b36d565ce86 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/CryptoKeyConfig.php @@ -0,0 +1,76 @@ +google.cloud.datafusion.v1.CryptoKeyConfig + */ +class CryptoKeyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the key which is used to encrypt/decrypt customer data. For key + * in Cloud KMS, the key should be in the format of + * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + * + * Generated from protobuf field string key_reference = 1 [(.google.api.resource_reference) = { + */ + protected $key_reference = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_reference + * The name of the key which is used to encrypt/decrypt customer data. For key + * in Cloud KMS, the key should be in the format of + * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * The name of the key which is used to encrypt/decrypt customer data. For key + * in Cloud KMS, the key should be in the format of + * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + * + * Generated from protobuf field string key_reference = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getKeyReference() + { + return $this->key_reference; + } + + /** + * The name of the key which is used to encrypt/decrypt customer data. For key + * in Cloud KMS, the key should be in the format of + * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + * + * Generated from protobuf field string key_reference = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKeyReference($var) + { + GPBUtil::checkString($var, True); + $this->key_reference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/DeleteInstanceRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/DeleteInstanceRequest.php new file mode 100644 index 000000000000..323b13f57fd0 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/DeleteInstanceRequest.php @@ -0,0 +1,86 @@ +google.cloud.datafusion.v1.DeleteInstanceRequest + */ +class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DataFusionClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\DataFusion\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 instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/GetInstanceRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/GetInstanceRequest.php new file mode 100644 index 000000000000..834a6a4a0037 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/GetInstanceRequest.php @@ -0,0 +1,71 @@ +google.cloud.datafusion.v1.GetInstanceRequest + */ +class GetInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance}. + * + * 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 instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The instance resource name in the format + * projects/{project}/locations/{location}/instances/{instance}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance.php new file mode 100644 index 000000000000..9cf4529e3785 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance.php @@ -0,0 +1,1086 @@ +google.cloud.datafusion.v1.Instance + */ +class Instance extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of this instance is in the form of + * projects/{project}/locations/{location}/instances/{instance}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * A description of this instance. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Required. Instance type. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Option to enable Stackdriver Logging. + * + * Generated from protobuf field bool enable_stackdriver_logging = 4; + */ + protected $enable_stackdriver_logging = false; + /** + * Option to enable Stackdriver Monitoring. + * + * Generated from protobuf field bool enable_stackdriver_monitoring = 5; + */ + protected $enable_stackdriver_monitoring = false; + /** + * Specifies whether the Data Fusion instance should be private. If set to + * true, all Data Fusion nodes will have private IP addresses and will not be + * able to access the public internet. + * + * Generated from protobuf field bool private_instance = 6; + */ + protected $private_instance = false; + /** + * Network configuration options. These are required when a private Data + * Fusion instance is to be created. + * + * Generated from protobuf field .google.cloud.datafusion.v1.NetworkConfig network_config = 7; + */ + protected $network_config = null; + /** + * The resource labels for instance to use to annotate any related underlying + * resources such as Compute Engine VMs. The character '=' is not allowed to + * be used within the labels. + * + * Generated from protobuf field map labels = 8; + */ + private $labels; + /** + * Map of additional options used to configure the behavior of + * Data Fusion instance. + * + * Generated from protobuf field map options = 9; + */ + private $options; + /** + * Output only. The time the instance 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 the instance was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The current state of this Data Fusion instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information about the current state of this Data + * Fusion instance if available. + * + * Generated from protobuf field string state_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_message = ''; + /** + * Output only. Endpoint on which the Data Fusion UI is accessible. + * + * Generated from protobuf field string service_endpoint = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_endpoint = ''; + /** + * Name of the zone in which the Data Fusion instance will be created. Only + * DEVELOPER instances use this field. + * + * Generated from protobuf field string zone = 15; + */ + protected $zone = ''; + /** + * Current version of the Data Fusion. Only specifiable in Update. + * + * Generated from protobuf field string version = 16; + */ + protected $version = ''; + /** + * Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID. + * + * Generated from protobuf field string service_account = 17 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $service_account = ''; + /** + * Display name for an instance. + * + * Generated from protobuf field string display_name = 18; + */ + protected $display_name = ''; + /** + * Available versions that the instance can be upgraded to using + * UpdateInstanceRequest. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_version = 19; + */ + private $available_version; + /** + * Output only. Endpoint on which the REST APIs is accessible. + * + * Generated from protobuf field string api_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_endpoint = ''; + /** + * Output only. Cloud Storage bucket generated by Data Fusion in the customer project. + * + * Generated from protobuf field string gcs_bucket = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $gcs_bucket = ''; + /** + * List of accelerators enabled for this CDF instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Accelerator accelerators = 22; + */ + private $accelerators; + /** + * Output only. P4 service account for the customer project. + * + * Generated from protobuf field string p4_service_account = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $p4_service_account = ''; + /** + * Output only. The name of the tenant project. + * + * Generated from protobuf field string tenant_project_id = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tenant_project_id = ''; + /** + * User-managed service account to set on Dataproc when Cloud Data Fusion + * creates Dataproc to run data processing pipelines. + * This allows users to have fine-grained access control on Dataproc's + * accesses to cloud resources. + * + * Generated from protobuf field string dataproc_service_account = 25; + */ + protected $dataproc_service_account = ''; + /** + * Option to enable granular role-based access control. + * + * Generated from protobuf field bool enable_rbac = 27; + */ + protected $enable_rbac = false; + /** + * The crypto key configuration. This field is used by the Customer-Managed + * Encryption Keys (CMEK) feature. + * + * Generated from protobuf field .google.cloud.datafusion.v1.CryptoKeyConfig crypto_key_config = 28; + */ + protected $crypto_key_config = null; + /** + * Output only. If the instance state is DISABLED, the reason for disabling the instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance.DisabledReason disabled_reason = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $disabled_reason; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of this instance is in the form of + * projects/{project}/locations/{location}/instances/{instance}. + * @type string $description + * A description of this instance. + * @type int $type + * Required. Instance type. + * @type bool $enable_stackdriver_logging + * Option to enable Stackdriver Logging. + * @type bool $enable_stackdriver_monitoring + * Option to enable Stackdriver Monitoring. + * @type bool $private_instance + * Specifies whether the Data Fusion instance should be private. If set to + * true, all Data Fusion nodes will have private IP addresses and will not be + * able to access the public internet. + * @type \Google\Cloud\DataFusion\V1\NetworkConfig $network_config + * Network configuration options. These are required when a private Data + * Fusion instance is to be created. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The resource labels for instance to use to annotate any related underlying + * resources such as Compute Engine VMs. The character '=' is not allowed to + * be used within the labels. + * @type array|\Google\Protobuf\Internal\MapField $options + * Map of additional options used to configure the behavior of + * Data Fusion instance. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the instance was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the instance was last updated. + * @type int $state + * Output only. The current state of this Data Fusion instance. + * @type string $state_message + * Output only. Additional information about the current state of this Data + * Fusion instance if available. + * @type string $service_endpoint + * Output only. Endpoint on which the Data Fusion UI is accessible. + * @type string $zone + * Name of the zone in which the Data Fusion instance will be created. Only + * DEVELOPER instances use this field. + * @type string $version + * Current version of the Data Fusion. Only specifiable in Update. + * @type string $service_account + * Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID. + * @type string $display_name + * Display name for an instance. + * @type array<\Google\Cloud\DataFusion\V1\Version>|\Google\Protobuf\Internal\RepeatedField $available_version + * Available versions that the instance can be upgraded to using + * UpdateInstanceRequest. + * @type string $api_endpoint + * Output only. Endpoint on which the REST APIs is accessible. + * @type string $gcs_bucket + * Output only. Cloud Storage bucket generated by Data Fusion in the customer project. + * @type array<\Google\Cloud\DataFusion\V1\Accelerator>|\Google\Protobuf\Internal\RepeatedField $accelerators + * List of accelerators enabled for this CDF instance. + * @type string $p4_service_account + * Output only. P4 service account for the customer project. + * @type string $tenant_project_id + * Output only. The name of the tenant project. + * @type string $dataproc_service_account + * User-managed service account to set on Dataproc when Cloud Data Fusion + * creates Dataproc to run data processing pipelines. + * This allows users to have fine-grained access control on Dataproc's + * accesses to cloud resources. + * @type bool $enable_rbac + * Option to enable granular role-based access control. + * @type \Google\Cloud\DataFusion\V1\CryptoKeyConfig $crypto_key_config + * The crypto key configuration. This field is used by the Customer-Managed + * Encryption Keys (CMEK) feature. + * @type array|\Google\Protobuf\Internal\RepeatedField $disabled_reason + * Output only. If the instance state is DISABLED, the reason for disabling the instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of this instance is in the form of + * projects/{project}/locations/{location}/instances/{instance}. + * + * 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. The name of this instance is in the form of + * projects/{project}/locations/{location}/instances/{instance}. + * + * 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; + } + + /** + * A description of this instance. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of this 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; + } + + /** + * Required. Instance type. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Instance type. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataFusion\V1\Instance\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Option to enable Stackdriver Logging. + * + * Generated from protobuf field bool enable_stackdriver_logging = 4; + * @return bool + */ + public function getEnableStackdriverLogging() + { + return $this->enable_stackdriver_logging; + } + + /** + * Option to enable Stackdriver Logging. + * + * Generated from protobuf field bool enable_stackdriver_logging = 4; + * @param bool $var + * @return $this + */ + public function setEnableStackdriverLogging($var) + { + GPBUtil::checkBool($var); + $this->enable_stackdriver_logging = $var; + + return $this; + } + + /** + * Option to enable Stackdriver Monitoring. + * + * Generated from protobuf field bool enable_stackdriver_monitoring = 5; + * @return bool + */ + public function getEnableStackdriverMonitoring() + { + return $this->enable_stackdriver_monitoring; + } + + /** + * Option to enable Stackdriver Monitoring. + * + * Generated from protobuf field bool enable_stackdriver_monitoring = 5; + * @param bool $var + * @return $this + */ + public function setEnableStackdriverMonitoring($var) + { + GPBUtil::checkBool($var); + $this->enable_stackdriver_monitoring = $var; + + return $this; + } + + /** + * Specifies whether the Data Fusion instance should be private. If set to + * true, all Data Fusion nodes will have private IP addresses and will not be + * able to access the public internet. + * + * Generated from protobuf field bool private_instance = 6; + * @return bool + */ + public function getPrivateInstance() + { + return $this->private_instance; + } + + /** + * Specifies whether the Data Fusion instance should be private. If set to + * true, all Data Fusion nodes will have private IP addresses and will not be + * able to access the public internet. + * + * Generated from protobuf field bool private_instance = 6; + * @param bool $var + * @return $this + */ + public function setPrivateInstance($var) + { + GPBUtil::checkBool($var); + $this->private_instance = $var; + + return $this; + } + + /** + * Network configuration options. These are required when a private Data + * Fusion instance is to be created. + * + * Generated from protobuf field .google.cloud.datafusion.v1.NetworkConfig network_config = 7; + * @return \Google\Cloud\DataFusion\V1\NetworkConfig|null + */ + public function getNetworkConfig() + { + return $this->network_config; + } + + public function hasNetworkConfig() + { + return isset($this->network_config); + } + + public function clearNetworkConfig() + { + unset($this->network_config); + } + + /** + * Network configuration options. These are required when a private Data + * Fusion instance is to be created. + * + * Generated from protobuf field .google.cloud.datafusion.v1.NetworkConfig network_config = 7; + * @param \Google\Cloud\DataFusion\V1\NetworkConfig $var + * @return $this + */ + public function setNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataFusion\V1\NetworkConfig::class); + $this->network_config = $var; + + return $this; + } + + /** + * The resource labels for instance to use to annotate any related underlying + * resources such as Compute Engine VMs. The character '=' is not allowed to + * be used within the labels. + * + * Generated from protobuf field map labels = 8; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The resource labels for instance to use to annotate any related underlying + * resources such as Compute Engine VMs. The character '=' is not allowed to + * be used within the labels. + * + * Generated from protobuf field map labels = 8; + * @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; + } + + /** + * Map of additional options used to configure the behavior of + * Data Fusion instance. + * + * Generated from protobuf field map options = 9; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Map of additional options used to configure the behavior of + * Data Fusion instance. + * + * Generated from protobuf field map options = 9; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->options = $arr; + + return $this; + } + + /** + * Output only. The time the instance 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 the instance 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 the instance 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 the instance 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; + } + + /** + * Output only. The current state of this Data Fusion instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of this Data Fusion instance. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataFusion\V1\Instance\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information about the current state of this Data + * Fusion instance if available. + * + * Generated from protobuf field string state_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateMessage() + { + return $this->state_message; + } + + /** + * Output only. Additional information about the current state of this Data + * Fusion instance if available. + * + * Generated from protobuf field string state_message = 13 [(.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; + } + + /** + * Output only. Endpoint on which the Data Fusion UI is accessible. + * + * Generated from protobuf field string service_endpoint = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceEndpoint() + { + return $this->service_endpoint; + } + + /** + * Output only. Endpoint on which the Data Fusion UI is accessible. + * + * Generated from protobuf field string service_endpoint = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->service_endpoint = $var; + + return $this; + } + + /** + * Name of the zone in which the Data Fusion instance will be created. Only + * DEVELOPER instances use this field. + * + * Generated from protobuf field string zone = 15; + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Name of the zone in which the Data Fusion instance will be created. Only + * DEVELOPER instances use this field. + * + * Generated from protobuf field string zone = 15; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Current version of the Data Fusion. Only specifiable in Update. + * + * Generated from protobuf field string version = 16; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Current version of the Data Fusion. Only specifiable in Update. + * + * Generated from protobuf field string version = 16; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID. + * + * Generated from protobuf field string service_account = 17 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + * @deprecated + */ + public function getServiceAccount() + { + @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); + return $this->service_account; + } + + /** + * Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID. + * + * Generated from protobuf field string service_account = 17 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + * @deprecated + */ + public function setServiceAccount($var) + { + @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Display name for an instance. + * + * Generated from protobuf field string display_name = 18; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for an instance. + * + * Generated from protobuf field string display_name = 18; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Available versions that the instance can be upgraded to using + * UpdateInstanceRequest. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_version = 19; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAvailableVersion() + { + return $this->available_version; + } + + /** + * Available versions that the instance can be upgraded to using + * UpdateInstanceRequest. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_version = 19; + * @param array<\Google\Cloud\DataFusion\V1\Version>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAvailableVersion($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataFusion\V1\Version::class); + $this->available_version = $arr; + + return $this; + } + + /** + * Output only. Endpoint on which the REST APIs is accessible. + * + * Generated from protobuf field string api_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiEndpoint() + { + return $this->api_endpoint; + } + + /** + * Output only. Endpoint on which the REST APIs is accessible. + * + * Generated from protobuf field string api_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->api_endpoint = $var; + + return $this; + } + + /** + * Output only. Cloud Storage bucket generated by Data Fusion in the customer project. + * + * Generated from protobuf field string gcs_bucket = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGcsBucket() + { + return $this->gcs_bucket; + } + + /** + * Output only. Cloud Storage bucket generated by Data Fusion in the customer project. + * + * Generated from protobuf field string gcs_bucket = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGcsBucket($var) + { + GPBUtil::checkString($var, True); + $this->gcs_bucket = $var; + + return $this; + } + + /** + * List of accelerators enabled for this CDF instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Accelerator accelerators = 22; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccelerators() + { + return $this->accelerators; + } + + /** + * List of accelerators enabled for this CDF instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Accelerator accelerators = 22; + * @param array<\Google\Cloud\DataFusion\V1\Accelerator>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccelerators($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataFusion\V1\Accelerator::class); + $this->accelerators = $arr; + + return $this; + } + + /** + * Output only. P4 service account for the customer project. + * + * Generated from protobuf field string p4_service_account = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getP4ServiceAccount() + { + return $this->p4_service_account; + } + + /** + * Output only. P4 service account for the customer project. + * + * Generated from protobuf field string p4_service_account = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setP4ServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->p4_service_account = $var; + + return $this; + } + + /** + * Output only. The name of the tenant project. + * + * Generated from protobuf field string tenant_project_id = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTenantProjectId() + { + return $this->tenant_project_id; + } + + /** + * Output only. The name of the tenant project. + * + * Generated from protobuf field string tenant_project_id = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTenantProjectId($var) + { + GPBUtil::checkString($var, True); + $this->tenant_project_id = $var; + + return $this; + } + + /** + * User-managed service account to set on Dataproc when Cloud Data Fusion + * creates Dataproc to run data processing pipelines. + * This allows users to have fine-grained access control on Dataproc's + * accesses to cloud resources. + * + * Generated from protobuf field string dataproc_service_account = 25; + * @return string + */ + public function getDataprocServiceAccount() + { + return $this->dataproc_service_account; + } + + /** + * User-managed service account to set on Dataproc when Cloud Data Fusion + * creates Dataproc to run data processing pipelines. + * This allows users to have fine-grained access control on Dataproc's + * accesses to cloud resources. + * + * Generated from protobuf field string dataproc_service_account = 25; + * @param string $var + * @return $this + */ + public function setDataprocServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->dataproc_service_account = $var; + + return $this; + } + + /** + * Option to enable granular role-based access control. + * + * Generated from protobuf field bool enable_rbac = 27; + * @return bool + */ + public function getEnableRbac() + { + return $this->enable_rbac; + } + + /** + * Option to enable granular role-based access control. + * + * Generated from protobuf field bool enable_rbac = 27; + * @param bool $var + * @return $this + */ + public function setEnableRbac($var) + { + GPBUtil::checkBool($var); + $this->enable_rbac = $var; + + return $this; + } + + /** + * The crypto key configuration. This field is used by the Customer-Managed + * Encryption Keys (CMEK) feature. + * + * Generated from protobuf field .google.cloud.datafusion.v1.CryptoKeyConfig crypto_key_config = 28; + * @return \Google\Cloud\DataFusion\V1\CryptoKeyConfig|null + */ + public function getCryptoKeyConfig() + { + return $this->crypto_key_config; + } + + public function hasCryptoKeyConfig() + { + return isset($this->crypto_key_config); + } + + public function clearCryptoKeyConfig() + { + unset($this->crypto_key_config); + } + + /** + * The crypto key configuration. This field is used by the Customer-Managed + * Encryption Keys (CMEK) feature. + * + * Generated from protobuf field .google.cloud.datafusion.v1.CryptoKeyConfig crypto_key_config = 28; + * @param \Google\Cloud\DataFusion\V1\CryptoKeyConfig $var + * @return $this + */ + public function setCryptoKeyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataFusion\V1\CryptoKeyConfig::class); + $this->crypto_key_config = $var; + + return $this; + } + + /** + * Output only. If the instance state is DISABLED, the reason for disabling the instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance.DisabledReason disabled_reason = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDisabledReason() + { + return $this->disabled_reason; + } + + /** + * Output only. If the instance state is DISABLED, the reason for disabling the instance. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance.DisabledReason disabled_reason = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDisabledReason($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DataFusion\V1\Instance\DisabledReason::class); + $this->disabled_reason = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/DisabledReason.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/DisabledReason.php new file mode 100644 index 000000000000..7e63e2a3e63f --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/DisabledReason.php @@ -0,0 +1,57 @@ +google.cloud.datafusion.v1.Instance.DisabledReason + */ +class DisabledReason +{ + /** + * This is an unknown reason for disabling. + * + * Generated from protobuf enum DISABLED_REASON_UNSPECIFIED = 0; + */ + const DISABLED_REASON_UNSPECIFIED = 0; + /** + * The KMS key used by the instance is either revoked or denied access to + * + * Generated from protobuf enum KMS_KEY_ISSUE = 1; + */ + const KMS_KEY_ISSUE = 1; + + private static $valueToName = [ + self::DISABLED_REASON_UNSPECIFIED => 'DISABLED_REASON_UNSPECIFIED', + self::KMS_KEY_ISSUE => 'KMS_KEY_ISSUE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DisabledReason::class, \Google\Cloud\DataFusion\V1\Instance_DisabledReason::class); + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/State.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/State.php new file mode 100644 index 000000000000..1a9ad67c6822 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/State.php @@ -0,0 +1,121 @@ +google.cloud.datafusion.v1.Instance.State + */ +class State +{ + /** + * Instance does not have a state yet + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Instance is being created + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * Instance is active and ready for requests. This corresponds to 'RUNNING' + * in datafusion.v1beta1. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * Instance creation failed + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Instance is being deleted + * + * Generated from protobuf enum DELETING = 4; + */ + const DELETING = 4; + /** + * Instance is being upgraded + * + * Generated from protobuf enum UPGRADING = 5; + */ + const UPGRADING = 5; + /** + * Instance is being restarted + * + * Generated from protobuf enum RESTARTING = 6; + */ + const RESTARTING = 6; + /** + * Instance is being updated on customer request + * + * Generated from protobuf enum UPDATING = 7; + */ + const UPDATING = 7; + /** + * Instance is being auto-updated + * + * Generated from protobuf enum AUTO_UPDATING = 8; + */ + const AUTO_UPDATING = 8; + /** + * Instance is being auto-upgraded + * + * Generated from protobuf enum AUTO_UPGRADING = 9; + */ + const AUTO_UPGRADING = 9; + /** + * Instance is disabled + * + * Generated from protobuf enum DISABLED = 10; + */ + const DISABLED = 10; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::ACTIVE => 'ACTIVE', + self::FAILED => 'FAILED', + self::DELETING => 'DELETING', + self::UPGRADING => 'UPGRADING', + self::RESTARTING => 'RESTARTING', + self::UPDATING => 'UPDATING', + self::AUTO_UPDATING => 'AUTO_UPDATING', + self::AUTO_UPGRADING => 'AUTO_UPGRADING', + 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\DataFusion\V1\Instance_State::class); + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/Type.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/Type.php new file mode 100644 index 000000000000..8258f055691d --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Instance/Type.php @@ -0,0 +1,80 @@ +google.cloud.datafusion.v1.Instance.Type + */ +class Type +{ + /** + * No type specified. The instance creation will fail. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Basic Data Fusion instance. In Basic type, the user will be able to + * create data pipelines using point and click UI. However, there are + * certain limitations, such as fewer number of concurrent pipelines, no + * support for streaming pipelines, etc. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Enterprise Data Fusion instance. In Enterprise type, the user will have + * all features available, such as support for streaming pipelines, higher + * number of concurrent pipelines, etc. + * + * Generated from protobuf enum ENTERPRISE = 2; + */ + const ENTERPRISE = 2; + /** + * Developer Data Fusion instance. In Developer type, the user will have all + * features available but with restrictive capabilities. This is to help + * enterprises design and develop their data ingestion and integration + * pipelines at low cost. + * + * Generated from protobuf enum DEVELOPER = 3; + */ + const DEVELOPER = 3; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::BASIC => 'BASIC', + self::ENTERPRISE => 'ENTERPRISE', + self::DEVELOPER => 'DEVELOPER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataFusion\V1\Instance_Type::class); + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsRequest.php new file mode 100644 index 000000000000..8ae1ae0e0a4c --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsRequest.php @@ -0,0 +1,200 @@ +google.cloud.datafusion.v1.ListAvailableVersionsRequest + */ +class ListAvailableVersionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project and location for which to retrieve instance information + * in the format 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 items to return. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Whether or not to return the latest patch of every available minor version. + * If true, only the latest patch will be returned. Ex. if allowed versions is + * [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + * + * Generated from protobuf field bool latest_patch_only = 4; + */ + protected $latest_patch_only = false; + + /** + * @param string $parent Required. The project and location for which to retrieve instance information + * in the format projects/{project}/locations/{location}. Please see + * {@see DataFusionClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\DataFusion\V1\ListAvailableVersionsRequest + * + * @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 instance information + * in the format projects/{project}/locations/{location}. + * @type int $page_size + * The maximum number of items to return. + * @type string $page_token + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * @type bool $latest_patch_only + * Whether or not to return the latest patch of every available minor version. + * If true, only the latest patch will be returned. Ex. if allowed versions is + * [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project and location for which to retrieve instance information + * in the 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 project and location for which to retrieve instance information + * in the 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; + } + + /** + * The maximum number of items to return. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * + * 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 next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * 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 or not to return the latest patch of every available minor version. + * If true, only the latest patch will be returned. Ex. if allowed versions is + * [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + * + * Generated from protobuf field bool latest_patch_only = 4; + * @return bool + */ + public function getLatestPatchOnly() + { + return $this->latest_patch_only; + } + + /** + * Whether or not to return the latest patch of every available minor version. + * If true, only the latest patch will be returned. Ex. if allowed versions is + * [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + * + * Generated from protobuf field bool latest_patch_only = 4; + * @param bool $var + * @return $this + */ + public function setLatestPatchOnly($var) + { + GPBUtil::checkBool($var); + $this->latest_patch_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsResponse.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsResponse.php new file mode 100644 index 000000000000..84d6591cac2d --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListAvailableVersionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.datafusion.v1.ListAvailableVersionsResponse + */ +class ListAvailableVersionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Represents a list of versions that are supported. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_versions = 1; + */ + private $available_versions; + /** + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * + * 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\DataFusion\V1\Version>|\Google\Protobuf\Internal\RepeatedField $available_versions + * Represents a list of versions that are supported. + * @type string $next_page_token + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Represents a list of versions that are supported. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_versions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAvailableVersions() + { + return $this->available_versions; + } + + /** + * Represents a list of versions that are supported. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Version available_versions = 1; + * @param array<\Google\Cloud\DataFusion\V1\Version>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAvailableVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataFusion\V1\Version::class); + $this->available_versions = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * + * 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 + * results in the list. + * + * 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/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesRequest.php new file mode 100644 index 000000000000..ba894d09f34a --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesRequest.php @@ -0,0 +1,219 @@ +google.cloud.datafusion.v1.ListInstancesRequest + */ +class ListInstancesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project and location for which to retrieve instance information + * in the format projects/{project}/locations/{location}. If the location is + * specified as '-' (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * List filter. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Sort results. Supported values are "name", "name desc", or "" (unsorted). + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The project and location for which to retrieve instance information + * in the format projects/{project}/locations/{location}. If the location is + * specified as '-' (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * @type int $page_size + * The maximum number of items to return. + * @type string $page_token + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * @type string $filter + * List filter. + * @type string $order_by + * Sort results. Supported values are "name", "name desc", or "" (unsorted). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project and location for which to retrieve instance information + * in the format projects/{project}/locations/{location}. If the location is + * specified as '-' (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + * Generated 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 instance information + * in the format projects/{project}/locations/{location}. If the location is + * specified as '-' (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_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 items to return. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * + * 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 next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The next_page_token value to use if there are additional + * results to retrieve for this list request. + * + * 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; + } + + /** + * List filter. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * List 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; + } + + /** + * Sort results. Supported values are "name", "name desc", or "" (unsorted). + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Sort results. Supported values are "name", "name desc", or "" (unsorted). + * + * 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/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesResponse.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesResponse.php new file mode 100644 index 000000000000..95f50a1e2b08 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/ListInstancesResponse.php @@ -0,0 +1,139 @@ +google.cloud.datafusion.v1.ListInstancesResponse + */ +class ListInstancesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Represents a list of Data Fusion instances. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance instances = 1; + */ + private $instances; + /** + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * + * 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\DataFusion\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances + * Represents a list of Data Fusion instances. + * @type string $next_page_token + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Represents a list of Data Fusion instances. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance instances = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstances() + { + return $this->instances; + } + + /** + * Represents a list of Data Fusion instances. + * + * Generated from protobuf field repeated .google.cloud.datafusion.v1.Instance instances = 1; + * @param array<\Google\Cloud\DataFusion\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataFusion\V1\Instance::class); + $this->instances = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results or empty if there are no more + * results in the list. + * + * 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 + * results in the list. + * + * 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/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/NetworkConfig.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/NetworkConfig.php new file mode 100644 index 000000000000..6a65391a768e --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/NetworkConfig.php @@ -0,0 +1,126 @@ +google.cloud.datafusion.v1.NetworkConfig + */ +class NetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the network in the customer project with which the Tenant Project + * will be peered for executing pipelines. In case of shared VPC where the + * network resides in another host project the network should specified in + * the form of projects/{host-project-id}/global/networks/{network} + * + * Generated from protobuf field string network = 1; + */ + protected $network = ''; + /** + * The IP range in CIDR notation to use for the managed Data Fusion instance + * nodes. This range must not overlap with any other ranges used in the + * customer network. + * + * Generated from protobuf field string ip_allocation = 2; + */ + protected $ip_allocation = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network + * Name of the network in the customer project with which the Tenant Project + * will be peered for executing pipelines. In case of shared VPC where the + * network resides in another host project the network should specified in + * the form of projects/{host-project-id}/global/networks/{network} + * @type string $ip_allocation + * The IP range in CIDR notation to use for the managed Data Fusion instance + * nodes. This range must not overlap with any other ranges used in the + * customer network. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Name of the network in the customer project with which the Tenant Project + * will be peered for executing pipelines. In case of shared VPC where the + * network resides in another host project the network should specified in + * the form of projects/{host-project-id}/global/networks/{network} + * + * Generated from protobuf field string network = 1; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Name of the network in the customer project with which the Tenant Project + * will be peered for executing pipelines. In case of shared VPC where the + * network resides in another host project the network should specified in + * the form of projects/{host-project-id}/global/networks/{network} + * + * Generated from protobuf field string network = 1; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * The IP range in CIDR notation to use for the managed Data Fusion instance + * nodes. This range must not overlap with any other ranges used in the + * customer network. + * + * Generated from protobuf field string ip_allocation = 2; + * @return string + */ + public function getIpAllocation() + { + return $this->ip_allocation; + } + + /** + * The IP range in CIDR notation to use for the managed Data Fusion instance + * nodes. This range must not overlap with any other ranges used in the + * customer network. + * + * Generated from protobuf field string ip_allocation = 2; + * @param string $var + * @return $this + */ + public function setIpAllocation($var) + { + GPBUtil::checkString($var, True); + $this->ip_allocation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/OperationMetadata.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/OperationMetadata.php new file mode 100644 index 000000000000..6e092c20d7a7 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/OperationMetadata.php @@ -0,0 +1,349 @@ +google.cloud.datafusion.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_detail = 5; + */ + protected $status_detail = ''; + /** + * 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; + */ + protected $requested_cancellation = false; + /** + * API version used to start the operation. + * + * Generated from protobuf field string api_version = 7; + */ + protected $api_version = ''; + /** + * Map to hold any additional status info for the operation + * If there is an accelerator being enabled/disabled/deleted, this will be + * populated with accelerator name as key and status as + * ENABLING, DISABLING or DELETING + * + * Generated from protobuf field map additional_status = 8; + */ + private $additional_status; + + /** + * 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_detail + * Human-readable status of the operation if any. + * @type bool $requested_cancellation + * 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. + * @type array|\Google\Protobuf\Internal\MapField $additional_status + * Map to hold any additional status info for the operation + * If there is an accelerator being enabled/disabled/deleted, this will be + * populated with accelerator name as key and status as + * ENABLING, DISABLING or DELETING + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::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_detail = 5; + * @return string + */ + public function getStatusDetail() + { + return $this->status_detail; + } + + /** + * Human-readable status of the operation if any. + * + * Generated from protobuf field string status_detail = 5; + * @param string $var + * @return $this + */ + public function setStatusDetail($var) + { + GPBUtil::checkString($var, True); + $this->status_detail = $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 requested_cancellation = 6; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * 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; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $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; + } + + /** + * Map to hold any additional status info for the operation + * If there is an accelerator being enabled/disabled/deleted, this will be + * populated with accelerator name as key and status as + * ENABLING, DISABLING or DELETING + * + * Generated from protobuf field map additional_status = 8; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAdditionalStatus() + { + return $this->additional_status; + } + + /** + * Map to hold any additional status info for the operation + * If there is an accelerator being enabled/disabled/deleted, this will be + * populated with accelerator name as key and status as + * ENABLING, DISABLING or DELETING + * + * Generated from protobuf field map additional_status = 8; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAdditionalStatus($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->additional_status = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/RestartInstanceRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/RestartInstanceRequest.php new file mode 100644 index 000000000000..907af0135078 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/RestartInstanceRequest.php @@ -0,0 +1,71 @@ +google.cloud.datafusion.v1.RestartInstanceRequest + */ +class RestartInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Data Fusion instance which need to be restarted in the form of + * projects/{project}/locations/{location}/instances/{instance} + * + * 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. Name of the Data Fusion instance which need to be restarted in the form of + * projects/{project}/locations/{location}/instances/{instance} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Data Fusion instance which need to be restarted in the form of + * projects/{project}/locations/{location}/instances/{instance} + * + * Generated 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 Fusion instance which need to be restarted in the form of + * projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/UpdateInstanceRequest.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/UpdateInstanceRequest.php new file mode 100644 index 000000000000..bfa27509b610 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/UpdateInstanceRequest.php @@ -0,0 +1,173 @@ +google.cloud.datafusion.v1.UpdateInstanceRequest + */ +class UpdateInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The instance resource that replaces the resource on the server. Currently, + * Data Fusion only allows replacing labels, options, and stack driver + * settings. All other fields will be ignored. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = null; + /** + * Field mask is used to specify the fields that the update will overwrite + * in an instance resource. 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, all the supported fields (labels, + * options, and version currently) will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\DataFusion\V1\Instance $instance Required. The instance resource that replaces the resource on the server. Currently, + * Data Fusion only allows replacing labels, options, and stack driver + * settings. All other fields will be ignored. + * @param \Google\Protobuf\FieldMask $updateMask Field mask is used to specify the fields that the update will overwrite + * in an instance resource. 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, all the supported fields (labels, + * options, and version currently) will be overwritten. + * + * @return \Google\Cloud\DataFusion\V1\UpdateInstanceRequest + * + * @experimental + */ + public static function build(\Google\Cloud\DataFusion\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\Cloud\DataFusion\V1\Instance $instance + * Required. The instance resource that replaces the resource on the server. Currently, + * Data Fusion only allows replacing labels, options, and stack driver + * settings. All other fields will be ignored. + * @type \Google\Protobuf\FieldMask $update_mask + * Field mask is used to specify the fields that the update will overwrite + * in an instance resource. 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, all the supported fields (labels, + * options, and version currently) will be overwritten. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * Required. The instance resource that replaces the resource on the server. Currently, + * Data Fusion only allows replacing labels, options, and stack driver + * settings. All other fields will be ignored. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\DataFusion\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 resource that replaces the resource on the server. Currently, + * Data Fusion only allows replacing labels, options, and stack driver + * settings. All other fields will be ignored. + * + * Generated from protobuf field .google.cloud.datafusion.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\DataFusion\V1\Instance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataFusion\V1\Instance::class); + $this->instance = $var; + + return $this; + } + + /** + * Field mask is used to specify the fields that the update will overwrite + * in an instance resource. 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, all the supported fields (labels, + * options, and version currently) will be overwritten. + * + * 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); + } + + /** + * Field mask is used to specify the fields that the update will overwrite + * in an instance resource. 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, all the supported fields (labels, + * options, and version currently) will be overwritten. + * + * 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/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version.php new file mode 100644 index 000000000000..96841661c8c1 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version.php @@ -0,0 +1,170 @@ +google.cloud.datafusion.v1.Version + */ +class Version extends \Google\Protobuf\Internal\Message +{ + /** + * The version number of the Data Fusion instance, such as '6.0.1.0'. + * + * Generated from protobuf field string version_number = 1; + */ + protected $version_number = ''; + /** + * Whether this is currently the default version for Cloud Data Fusion + * + * Generated from protobuf field bool default_version = 2; + */ + protected $default_version = false; + /** + * Represents a list of available feature names for a given version. + * + * Generated from protobuf field repeated string available_features = 3; + */ + private $available_features; + /** + * Type represents the release availability of the version + * + * Generated from protobuf field .google.cloud.datafusion.v1.Version.Type type = 4; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version_number + * The version number of the Data Fusion instance, such as '6.0.1.0'. + * @type bool $default_version + * Whether this is currently the default version for Cloud Data Fusion + * @type array|\Google\Protobuf\Internal\RepeatedField $available_features + * Represents a list of available feature names for a given version. + * @type int $type + * Type represents the release availability of the version + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datafusion\V1\Datafusion::initOnce(); + parent::__construct($data); + } + + /** + * The version number of the Data Fusion instance, such as '6.0.1.0'. + * + * Generated from protobuf field string version_number = 1; + * @return string + */ + public function getVersionNumber() + { + return $this->version_number; + } + + /** + * The version number of the Data Fusion instance, such as '6.0.1.0'. + * + * Generated from protobuf field string version_number = 1; + * @param string $var + * @return $this + */ + public function setVersionNumber($var) + { + GPBUtil::checkString($var, True); + $this->version_number = $var; + + return $this; + } + + /** + * Whether this is currently the default version for Cloud Data Fusion + * + * Generated from protobuf field bool default_version = 2; + * @return bool + */ + public function getDefaultVersion() + { + return $this->default_version; + } + + /** + * Whether this is currently the default version for Cloud Data Fusion + * + * Generated from protobuf field bool default_version = 2; + * @param bool $var + * @return $this + */ + public function setDefaultVersion($var) + { + GPBUtil::checkBool($var); + $this->default_version = $var; + + return $this; + } + + /** + * Represents a list of available feature names for a given version. + * + * Generated from protobuf field repeated string available_features = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAvailableFeatures() + { + return $this->available_features; + } + + /** + * Represents a list of available feature names for a given version. + * + * Generated from protobuf field repeated string available_features = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAvailableFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->available_features = $arr; + + return $this; + } + + /** + * Type represents the release availability of the version + * + * Generated from protobuf field .google.cloud.datafusion.v1.Version.Type type = 4; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type represents the release availability of the version + * + * Generated from protobuf field .google.cloud.datafusion.v1.Version.Type type = 4; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DataFusion\V1\Version\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version/Type.php b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version/Type.php new file mode 100644 index 000000000000..947abd9a8fad --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/proto/src/Google/Cloud/DataFusion/V1/Version/Type.php @@ -0,0 +1,64 @@ +google.cloud.datafusion.v1.Version.Type + */ +class Type +{ + /** + * Version does not have availability yet + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Version is under development and not considered stable + * + * Generated from protobuf enum TYPE_PREVIEW = 1; + */ + const TYPE_PREVIEW = 1; + /** + * Version is available for public use + * + * Generated from protobuf enum TYPE_GENERAL_AVAILABILITY = 2; + */ + const TYPE_GENERAL_AVAILABILITY = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::TYPE_PREVIEW => 'TYPE_PREVIEW', + self::TYPE_GENERAL_AVAILABILITY => 'TYPE_GENERAL_AVAILABILITY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no 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\DataFusion\V1\Version_Type::class); + diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/create_instance.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/create_instance.php new file mode 100644 index 000000000000..79d4efea1cc9 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/create_instance.php @@ -0,0 +1,87 @@ +setParent($formattedParent) + ->setInstanceId($instanceId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataFusionClient->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 = DataFusionClient::locationName('[PROJECT]', '[LOCATION]'); + $instanceId = '[INSTANCE_ID]'; + + create_instance_sample($formattedParent, $instanceId); +} +// [END datafusion_v1_generated_DataFusion_CreateInstance_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/delete_instance.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/delete_instance.php new file mode 100644 index 000000000000..2a8a346c4213 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/delete_instance.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataFusionClient->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 = DataFusionClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + delete_instance_sample($formattedName); +} +// [END datafusion_v1_generated_DataFusion_DeleteInstance_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/get_instance.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/get_instance.php new file mode 100644 index 000000000000..3fe07a9b4738 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/get_instance.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Instance $response */ + $response = $dataFusionClient->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 = DataFusionClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + get_instance_sample($formattedName); +} +// [END datafusion_v1_generated_DataFusion_GetInstance_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_available_versions.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_available_versions.php new file mode 100644 index 000000000000..cd4f1d16e5de --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_available_versions.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataFusionClient->listAvailableVersions($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()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataFusionClient::locationName('[PROJECT]', '[LOCATION]'); + + list_available_versions_sample($formattedParent); +} +// [END datafusion_v1_generated_DataFusion_ListAvailableVersions_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_instances.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_instances.php new file mode 100644 index 000000000000..a314641a9fce --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/list_instances.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataFusionClient->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 = DataFusionClient::locationName('[PROJECT]', '[LOCATION]'); + + list_instances_sample($formattedParent); +} +// [END datafusion_v1_generated_DataFusion_ListInstances_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/restart_instance.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/restart_instance.php new file mode 100644 index 000000000000..cd19202741c7 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/restart_instance.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataFusionClient->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 = DataFusionClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + restart_instance_sample($formattedName); +} +// [END datafusion_v1_generated_DataFusion_RestartInstance_sync] diff --git a/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/update_instance.php b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/update_instance.php new file mode 100644 index 000000000000..07726bcd2aa6 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/samples/V1/DataFusionClient/update_instance.php @@ -0,0 +1,85 @@ +setType($instanceType); + $request = (new UpdateInstanceRequest()) + ->setInstance($instance); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataFusionClient->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 +{ + $instanceType = Type::TYPE_UNSPECIFIED; + + update_instance_sample($instanceType); +} +// [END datafusion_v1_generated_DataFusion_UpdateInstance_sync] diff --git a/owl-bot-staging/DataFusion/v1/src/V1/Client/DataFusionClient.php b/owl-bot-staging/DataFusion/v1/src/V1/Client/DataFusionClient.php new file mode 100644 index 000000000000..3df80f0a56c1 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/src/V1/Client/DataFusionClient.php @@ -0,0 +1,506 @@ + createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAvailableVersionsAsync(ListAvailableVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) + * @method PromiseInterface restartInstanceAsync(RestartInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = []) + */ +final class DataFusionClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.datafusion.v1.DataFusion'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'datafusion.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'datafusion.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/data_fusion_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_fusion_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_fusion_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_fusion_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 crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * 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 + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - 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 'datafusion.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 Data Fusion instance in the specified project and location. + * + * The async variant is {@see DataFusionClient::createInstanceAsync()} . + * + * @example samples/V1/DataFusionClient/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 a single Date Fusion instance. + * + * The async variant is {@see DataFusionClient::deleteInstanceAsync()} . + * + * @example samples/V1/DataFusionClient/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 Data Fusion instance. + * + * The async variant is {@see DataFusionClient::getInstanceAsync()} . + * + * @example samples/V1/DataFusionClient/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 possible versions for Data Fusion instances in the specified project + * and location. + * + * The async variant is {@see DataFusionClient::listAvailableVersionsAsync()} . + * + * @example samples/V1/DataFusionClient/list_available_versions.php + * + * @param ListAvailableVersionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. 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 listAvailableVersions(ListAvailableVersionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAvailableVersions', $request, $callOptions); + } + + /** + * Lists Data Fusion instances in the specified project and location. + * + * The async variant is {@see DataFusionClient::listInstancesAsync()} . + * + * @example samples/V1/DataFusionClient/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); + } + + /** + * Restart a single Data Fusion instance. + * At the end of an operation instance is fully restarted. + * + * The async variant is {@see DataFusionClient::restartInstanceAsync()} . + * + * @example samples/V1/DataFusionClient/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(); + } + + /** + * Updates a single Data Fusion instance. + * + * The async variant is {@see DataFusionClient::updateInstanceAsync()} . + * + * @example samples/V1/DataFusionClient/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(); + } +} diff --git a/owl-bot-staging/DataFusion/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DataFusion/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..93ed216798d6 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/src/V1/gapic_metadata.json @@ -0,0 +1,53 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.datafusion.v1", + "libraryPackage": "Google\\Cloud\\DataFusion\\V1", + "services": { + "DataFusion": { + "clients": { + "grpc": { + "libraryClient": "DataFusionGapicClient", + "rpcs": { + "CreateInstance": { + "methods": [ + "createInstance" + ] + }, + "DeleteInstance": { + "methods": [ + "deleteInstance" + ] + }, + "GetInstance": { + "methods": [ + "getInstance" + ] + }, + "ListAvailableVersions": { + "methods": [ + "listAvailableVersions" + ] + }, + "ListInstances": { + "methods": [ + "listInstances" + ] + }, + "RestartInstance": { + "methods": [ + "restartInstance" + ] + }, + "UpdateInstance": { + "methods": [ + "updateInstance" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_client_config.json b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_client_config.json new file mode 100644 index 000000000000..98b1fc8756b6 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_client_config.json @@ -0,0 +1,67 @@ +{ + "interfaces": { + "google.cloud.datafusion.v1.DataFusion": { + "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": { + "CreateInstance": { + "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" + }, + "ListAvailableVersions": { + "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" + }, + "RestartInstance": { + "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" + } + } + } + } +} diff --git a/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_descriptor_config.php b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_descriptor_config.php new file mode 100644 index 000000000000..ce4552a4a4f4 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_descriptor_config.php @@ -0,0 +1,162 @@ + [ + 'google.cloud.datafusion.v1.DataFusion' => [ + 'CreateInstance' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\DataFusion\V1\Instance', + 'metadataReturnType' => '\Google\Cloud\DataFusion\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\DataFusion\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\DataFusion\V1\Instance', + 'metadataReturnType' => '\Google\Cloud\DataFusion\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateInstance' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\DataFusion\V1\Instance', + 'metadataReturnType' => '\Google\Cloud\DataFusion\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'instance.name', + 'fieldAccessors' => [ + 'getInstance', + 'getName', + ], + ], + ], + ], + 'GetInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DataFusion\V1\Instance', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAvailableVersions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAvailableVersions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DataFusion\V1\ListAvailableVersionsResponse', + '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\DataFusion\V1\ListInstancesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_rest_client_config.php b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_rest_client_config.php new file mode 100644 index 000000000000..94d67062be95 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/src/V1/resources/data_fusion_rest_client_config.php @@ -0,0 +1,221 @@ + [ + 'google.cloud.datafusion.v1.DataFusion' => [ + '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', + ], + ], + ], + ], + 'ListAvailableVersions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/versions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListInstances' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/instances', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RestartInstance' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}:restart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateInstance' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{instance.name=projects/*/locations/*/instances/*}', + 'body' => 'instance', + 'placeholders' => [ + 'instance.name' => [ + 'getters' => [ + 'getInstance', + '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/*/instances/*}:getIamPolicy', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}: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/DataFusion/v1/tests/Unit/V1/Client/DataFusionClientTest.php b/owl-bot-staging/DataFusion/v1/tests/Unit/V1/Client/DataFusionClientTest.php new file mode 100644 index 000000000000..4dad5d4ecf70 --- /dev/null +++ b/owl-bot-staging/DataFusion/v1/tests/Unit/V1/Client/DataFusionClientTest.php @@ -0,0 +1,1015 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataFusionClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataFusionClient($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'; + $description = 'description-1724546052'; + $enableStackdriverLogging = true; + $enableStackdriverMonitoring = false; + $privateInstance = false; + $stateMessage = 'stateMessage29641305'; + $serviceEndpoint = 'serviceEndpoint-676052001'; + $zone = 'zone3744684'; + $version = 'version351608024'; + $serviceAccount = 'serviceAccount-1948028253'; + $displayName = 'displayName1615086568'; + $apiEndpoint = 'apiEndpoint-1381395942'; + $gcsBucket = 'gcsBucket-1720393710'; + $p4ServiceAccount = 'p4ServiceAccount-1554461144'; + $tenantProjectId = 'tenantProjectId-2129337674'; + $dataprocServiceAccount = 'dataprocServiceAccount-493324700'; + $enableRbac = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setEnableStackdriverLogging($enableStackdriverLogging); + $expectedResponse->setEnableStackdriverMonitoring($enableStackdriverMonitoring); + $expectedResponse->setPrivateInstance($privateInstance); + $expectedResponse->setStateMessage($stateMessage); + $expectedResponse->setServiceEndpoint($serviceEndpoint); + $expectedResponse->setZone($zone); + $expectedResponse->setVersion($version); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setApiEndpoint($apiEndpoint); + $expectedResponse->setGcsBucket($gcsBucket); + $expectedResponse->setP4ServiceAccount($p4ServiceAccount); + $expectedResponse->setTenantProjectId($tenantProjectId); + $expectedResponse->setDataprocServiceAccount($dataprocServiceAccount); + $expectedResponse->setEnableRbac($enableRbac); + $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'; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId); + $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.datafusion.v1.DataFusion/CreateInstance', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getInstanceId(); + $this->assertProtobufEquals($instanceId, $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'; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId); + $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.datafusion.v1.DataFusion/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'; + $description = 'description-1724546052'; + $enableStackdriverLogging = true; + $enableStackdriverMonitoring = false; + $privateInstance = false; + $stateMessage = 'stateMessage29641305'; + $serviceEndpoint = 'serviceEndpoint-676052001'; + $zone = 'zone3744684'; + $version = 'version351608024'; + $serviceAccount = 'serviceAccount-1948028253'; + $displayName = 'displayName1615086568'; + $apiEndpoint = 'apiEndpoint-1381395942'; + $gcsBucket = 'gcsBucket-1720393710'; + $p4ServiceAccount = 'p4ServiceAccount-1554461144'; + $tenantProjectId = 'tenantProjectId-2129337674'; + $dataprocServiceAccount = 'dataprocServiceAccount-493324700'; + $enableRbac = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setEnableStackdriverLogging($enableStackdriverLogging); + $expectedResponse->setEnableStackdriverMonitoring($enableStackdriverMonitoring); + $expectedResponse->setPrivateInstance($privateInstance); + $expectedResponse->setStateMessage($stateMessage); + $expectedResponse->setServiceEndpoint($serviceEndpoint); + $expectedResponse->setZone($zone); + $expectedResponse->setVersion($version); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setApiEndpoint($apiEndpoint); + $expectedResponse->setGcsBucket($gcsBucket); + $expectedResponse->setP4ServiceAccount($p4ServiceAccount); + $expectedResponse->setTenantProjectId($tenantProjectId); + $expectedResponse->setDataprocServiceAccount($dataprocServiceAccount); + $expectedResponse->setEnableRbac($enableRbac); + $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.datafusion.v1.DataFusion/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 listAvailableVersionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $availableVersionsElement = new Version(); + $availableVersions = [ + $availableVersionsElement, + ]; + $expectedResponse = new ListAvailableVersionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAvailableVersions($availableVersions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAvailableVersionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAvailableVersions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAvailableVersions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.datafusion.v1.DataFusion/ListAvailableVersions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAvailableVersionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = 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 ListAvailableVersionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAvailableVersions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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->locationName('[PROJECT]', '[LOCATION]'); + $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.datafusion.v1.DataFusion/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->locationName('[PROJECT]', '[LOCATION]'); + $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 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'; + $description = 'description-1724546052'; + $enableStackdriverLogging = true; + $enableStackdriverMonitoring = false; + $privateInstance = false; + $stateMessage = 'stateMessage29641305'; + $serviceEndpoint = 'serviceEndpoint-676052001'; + $zone = 'zone3744684'; + $version = 'version351608024'; + $serviceAccount = 'serviceAccount-1948028253'; + $displayName = 'displayName1615086568'; + $apiEndpoint = 'apiEndpoint-1381395942'; + $gcsBucket = 'gcsBucket-1720393710'; + $p4ServiceAccount = 'p4ServiceAccount-1554461144'; + $tenantProjectId = 'tenantProjectId-2129337674'; + $dataprocServiceAccount = 'dataprocServiceAccount-493324700'; + $enableRbac = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setEnableStackdriverLogging($enableStackdriverLogging); + $expectedResponse->setEnableStackdriverMonitoring($enableStackdriverMonitoring); + $expectedResponse->setPrivateInstance($privateInstance); + $expectedResponse->setStateMessage($stateMessage); + $expectedResponse->setServiceEndpoint($serviceEndpoint); + $expectedResponse->setZone($zone); + $expectedResponse->setVersion($version); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setApiEndpoint($apiEndpoint); + $expectedResponse->setGcsBucket($gcsBucket); + $expectedResponse->setP4ServiceAccount($p4ServiceAccount); + $expectedResponse->setTenantProjectId($tenantProjectId); + $expectedResponse->setDataprocServiceAccount($dataprocServiceAccount); + $expectedResponse->setEnableRbac($enableRbac); + $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]', '[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.datafusion.v1.DataFusion/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]', '[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 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'; + $description = 'description-1724546052'; + $enableStackdriverLogging = true; + $enableStackdriverMonitoring = false; + $privateInstance = false; + $stateMessage = 'stateMessage29641305'; + $serviceEndpoint = 'serviceEndpoint-676052001'; + $zone = 'zone3744684'; + $version = 'version351608024'; + $serviceAccount = 'serviceAccount-1948028253'; + $displayName = 'displayName1615086568'; + $apiEndpoint = 'apiEndpoint-1381395942'; + $gcsBucket = 'gcsBucket-1720393710'; + $p4ServiceAccount = 'p4ServiceAccount-1554461144'; + $tenantProjectId = 'tenantProjectId-2129337674'; + $dataprocServiceAccount = 'dataprocServiceAccount-493324700'; + $enableRbac = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setEnableStackdriverLogging($enableStackdriverLogging); + $expectedResponse->setEnableStackdriverMonitoring($enableStackdriverMonitoring); + $expectedResponse->setPrivateInstance($privateInstance); + $expectedResponse->setStateMessage($stateMessage); + $expectedResponse->setServiceEndpoint($serviceEndpoint); + $expectedResponse->setZone($zone); + $expectedResponse->setVersion($version); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setApiEndpoint($apiEndpoint); + $expectedResponse->setGcsBucket($gcsBucket); + $expectedResponse->setP4ServiceAccount($p4ServiceAccount); + $expectedResponse->setTenantProjectId($tenantProjectId); + $expectedResponse->setDataprocServiceAccount($dataprocServiceAccount); + $expectedResponse->setEnableRbac($enableRbac); + $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(); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $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.datafusion.v1.DataFusion/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(); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $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 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'; + $description = 'description-1724546052'; + $enableStackdriverLogging = true; + $enableStackdriverMonitoring = false; + $privateInstance = false; + $stateMessage = 'stateMessage29641305'; + $serviceEndpoint = 'serviceEndpoint-676052001'; + $zone = 'zone3744684'; + $version = 'version351608024'; + $serviceAccount = 'serviceAccount-1948028253'; + $displayName = 'displayName1615086568'; + $apiEndpoint = 'apiEndpoint-1381395942'; + $gcsBucket = 'gcsBucket-1720393710'; + $p4ServiceAccount = 'p4ServiceAccount-1554461144'; + $tenantProjectId = 'tenantProjectId-2129337674'; + $dataprocServiceAccount = 'dataprocServiceAccount-493324700'; + $enableRbac = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setEnableStackdriverLogging($enableStackdriverLogging); + $expectedResponse->setEnableStackdriverMonitoring($enableStackdriverMonitoring); + $expectedResponse->setPrivateInstance($privateInstance); + $expectedResponse->setStateMessage($stateMessage); + $expectedResponse->setServiceEndpoint($serviceEndpoint); + $expectedResponse->setZone($zone); + $expectedResponse->setVersion($version); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setApiEndpoint($apiEndpoint); + $expectedResponse->setGcsBucket($gcsBucket); + $expectedResponse->setP4ServiceAccount($p4ServiceAccount); + $expectedResponse->setTenantProjectId($tenantProjectId); + $expectedResponse->setDataprocServiceAccount($dataprocServiceAccount); + $expectedResponse->setEnableRbac($enableRbac); + $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'; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId); + $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.datafusion.v1.DataFusion/CreateInstance', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getInstanceId(); + $this->assertProtobufEquals($instanceId, $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/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Annotation.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Annotation.php new file mode 100644 index 0000000000000000000000000000000000000000..8bb8e686441dcc85445203caa734012b4f8e5f95 GIT binary patch literal 6038 zcmd5=OH9<0#NaYiHC*F?cct}N5g zPIldN*}u?Lr@Q`v{($WI7usEaM5p(m$F&WPXjqg51NJ%JcV73Ld(W45JI_0CO)Mf4 z*}8+8V*N;To+GhiTaMMR+G4%eY9U)}SO*=WjqIc-78J3psG?jbsmoZkYxV2~%7}ZG zwbw?eM%(H&Q%&8`+jwkj|ks`h<`f0dfRA-T|(0kSB$P^n1*BMZR0!a z+ikI>x4Q_d56iZCW`md}5(UL>&m&U0!lwX|3U0rJAnYtoo!sqX0oTgee#&<+uT)VVnYf zaw$2)K#2nMr$AFdh)`X18gAvRh@gO-yP z(9Ss$7&z(TqLWB^qsI=ITxpbVfvUf zxWt$U0d9PVCz+%qnXn`ToIvyu?7<=<=%PK6nxUx0Pv=RMgXtqOV97x*oe}wArF%Do zJ1PbmkscG4DHSOg=SaiCwodynA3UIbWka&b6iW7y`dq`ccW5+`HNrP`io(?14nZ2> zTpL72X4PMyhNBVR_DKoq{@hxKQQtzdDHKU{f%;tAg?Yw?4skSj4swJO>CZyMk9s5% zeI7bD1wdPt<{Wj9v=56TPo3}(E(9KGT|8*q1HBQ#gn*b#C}{~Mc94y0M2JJ=CB=!6 zKaXfPj!CO9Q?~2_HsJ>)qk&{pdIVGa*%dZn@(?2%4b;W3V>m)UFdPY@>I0i3V%&5cGTkxqs1hDXHB@);~}w)cawBmYGR z(7=HK_%p1F+%!y4`%qKUZKO*@nDmbIMP=G0Fg%=m{I7y_Fo*5^#pBjnsn)x2wXhw%J}~afz$*cNRj{O#m{`J zLpEQQt@+Pr7UM8iHO1BS@T6xjGx!;8Jq^odn}sMDCJtVMwY5Ww3=={YBOlUrnfoCr z%9t<%lX&e$UV2^pv>#iIujgSVaKhazEW={9j2CiQwWO4_s`6wzFKbWA)ry=i-7m?7 znR9rxF{xDK?X0S7&y1~q1#=t-X}p9&SOJm8k;`i7G5$3SRhEmGYe$}m5a5bZEz$p? z>pzXdbbzelr-E=5u5h60Ze`H4YjCynI9rsp{8qMF#Rlh@AAuI8!7ehPobsexD3yy^ zPI;InbFNa&fUl6xrURZZQ_<{uF^ITy!;>#*D>RghIIOp?xt z#e~Z+&&1>%l0NRc3F5gbKUGHm9>eCi5%5PJOfg-(RE4MY=>z(j{_|ERna|b#&5Q zBER-zYVM|)u9`im8s0V2t@Yp06$X{bP^?Ub2g_t!vHAqP65PDuuQxwpYg}&Yd*a5I MO0wnaD|iL)FO}WR8vpinternalAddGeneratedFile( + ' +´ +;google/cloud/datalabeling/v1beta1/annotation_spec_set.proto!google.cloud.datalabeling.v1beta1"¦ +AnnotationSpecSet +name (  + display_name (  + description ( K +annotation_specs ( 21.google.cloud.datalabeling.v1beta1.AnnotationSpec +blocking_resources ( :oêAl +-datalabeling.googleapis.com/AnnotationSpecSet;projects/{project}/annotationSpecSets/{annotation_spec_set}"; +AnnotationSpec + display_name (  + description ( Bã +%com.google.cloud.datalabeling.v1beta1PZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpbª!Google.Cloud.DataLabeling.V1Beta1Ê!Google\\Cloud\\DataLabeling\\V1beta1ê$Google::Cloud::DataLabeling::V1beta1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataLabelingService.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataLabelingService.php new file mode 100644 index 0000000000000000000000000000000000000000..cfc7a1b8a05468960c85c2c5b5e266b72c4b6a74 GIT binary patch literal 17166 zcmds9TW=f36%OTFJn}^zE4D1x3A1rxTb9XKwiAc4?C@rpi7YA>?Zhbyc1f<}O-L@o zT{?CG14Yq?Bxqk+pgKJ@Yf+{;4)w1A2h1$uc%QJ`-H`qVSGomp~8 z4J8IJ>KEJGIcLu0J7>T&s24u2?a;6G9EMZn;gfVnyedQdeO;VNsl?Op9s4w3tzt7H^zR z5vH>URcfZ|M#;kkzT+}ujowC4_|t5cYj!2-dZq_|9ktz(-LO5|tl4jYzH`wPv*udB zr+e*6yHW9Mrx7It`9{S$ej>_vlC?*h4%lZdDui4jCIfR7a}CdGHOyKuW4V=<-SnK+ z5-d$5RxQsrH2LKC3BE01XRkz$GZ_ZR!?%GxZTovU|ZP4~65EcHL}9@T8r_ioH4%&bfvQz@|Z_ z&u_tLthU;X2IQ7vzDe@dV2Jhu6~ZK2Z+dt2xAsXXy04n<>*2ICH=Md?^GuMeR{g-g z3~BVZAF3p9kD;Huh2}PuKk?&?JXRr@GDdQzNVGAYekTv|9n7W;S(*ei%e|A2DGydi z)RxLTZ25vi%7PY;P5x+>Kcf4Fr+w4UIwcn(5E8%GIKDnH(L@r=tWRM1!NeteW)Pav zYfhQdU0R>+7Kw|JqF;qZ24`?)eFnCKKPP&E6V)Wfxn-~Euqcc-{Wgl$DxFD%5u%oev_RU*f zhiuQGt)xWYlAWZIJ&B$mTlq-ukce|Iz8*pQ7i?E>bcd?$ezbkXuEBv%wcSZHh~NWg zXA^8xa-qbS*aBAA#y&rY5dGY9Ubh+(Td9!=fl)`}K?&U^9MTrPfF33qLIk*=`If<~ zi4UT^4eO3qQuZV+*=f9l#xqvU>H@$fjQryW+Lx<0ofb8-F!9D2;vCv#H=1p)#Da>0 zDW(CY93f+e6a^HXM7Ry*X346XcCBPqs{mz}`emo_{s`Kay)#6)^JpK>2v)VkoyW0p zmZCO>ru(6mpR-n#!xu}05hQVhy@+-@ZBH=|0n_MAT*EwhO1Hj!wo#}oAR~~p`-ouBI*zp#@8VI2(Xh6{CJ%0NI!!Fxnd;>@eRh|8|aY^(Rd(ULWn3= zvWdVv6i;dxTWH-o7C(z7!N8qf7luv+480)$8Q+MYPZ6y;_jr&D|84{w=^-QcKpx?) zxDuW?qv458?R$Hqf{w84*hw->r+i^M+DGrJxjLK_f^!8Ow#olX^ipfD*cDpbiX6y- z{DOwIlxv#YjD037;;%e}ucPs@({5Cuel9hg+Fik&1pMgCISuY9PQC=xKHCMfmvDnC zKZs8Yp^5F3<7o|!gcG6kxfRfU*IKPZF%q!A4s98i6>6XBrc%r@+Eq4PyCSq><;{5w z?Lse5>}|iHd(lSEnB+2xV)52 z=Pu{6nX!j3Mtjl=$>nAEe>z#nmR;kKNezY4^R|F+Z^+S6jSCbyyS=WRR; zZrD}JQNrLh`TwTFfO72-2A@U;oiZs|OI4_Z=p9semPLY&XY-UpMlkS!b`u@o%)ORb zd7Xq>ASRyGKn>$v;PgK0%V?K%8{$GRWFetb7-b2W&*%Rs7F6^EW1+UeP#8yJ`P2*9 zbfJ{V7T_-uAR|y^?B$;pt|ikiLYx5VccN|C8-Vh$tswya-c~e5!?ggFxWKoGCOuM^ z_sjCL8VDggd!Ty-9idx*$8GO!2^Ip5NTWo+hGBe8bC)b-ll8egz$ki2W>j+i?3vNA zWT%UQAbME?M386;*;fjsuB1AN4$udHkX+$r3Dy8~7@k7#QlXdM>>ab-todcZ2Ch+@ zLug%0DnfcA=8OD7Fw;?iZ>Zi3-EzZMVkx4$5?jnVqWaTmFbH$>yb}K+f*xf}5nlB{ zsPKldh}xmFM{c0~yo@EWC>mn?c6(MM8oR_}XMPzSme+_d+12*RIeKA>qf`AZY+V}} z9|ntbxr+~=p_oWscsFyE`w}=*xlsg!01uem+_nZ46`@TBY@cuIp+em-Z(|;2~<4R53ULu<0hJ5 zwpKnAHrOohZ$;2Sf-8mfg9!h-Xrfz6j{6L0t@*wXc-N^Q6{UM4y@1BSt#S+{EPo;3 z)fn~aar9I_r%EQIi#xGwnXSq#`Jr$4iya5ofXs(+KNZN58a4Pcu$J@`PqEExnZGSJ3!si*!6nFst-#K`l*J&{2fmc!TrA zFQ5Z;r)t$o6*_*Y3RW&;QQhV~=Vg35f+ks_mjHo*ukiLzPT~~W0s}Fg;-A)VMnDvn ziatC+R06{Ra_r zh#XS^?taD^3WkSMO@0ng9408wVmY)oh+>i82ZnLa@fcP_CBtP!P+v}v8UHeZ zb`j@uL0$ZeNGQEuw}`0(LRKBe1nC&QjJdVsZfk|Ry6geaE_`PMlD-i3rX zg~qxJbAWR4v!hIahxvJ{j(n&2sFtdH-Z&$n+22)krk|*h*V9SP16(qF>DWqNUvPHJW{ufjS>!C$TE-FJrW-Diy%UGI`Pn^g8bD{94+U#Fmf49b@a zb#)4H(Fk~TEjdaLYo#*0j5AXD-jzwbD~H6V;ufE-kPP}KUitF9^ebOMAQaLmH_0g{ z>3Etf7DMx7K*4^&7pCGpUq}2;=;pGk5YG&g`dR|md`qNm^s1vf%416X> z?vnT)aNZHnbXm~VI`6_sg-SZ!@5O;*cRm!l0Y$Z3hkpbp4V=!3>vZJoK`T`4b+iZl zGc~Y({toR_79i@}KxZ7^MI}UC=hXA=Cy%31b+y*qU(6J zo0bO)^piqb907$wf<@H{e-rS=psuKdb)@Q|5-RlyjiA-12C(|i;OYpTmmN>7t7Cvd z2shaD$VjP3Ifs?%wG$~-)<}dT8<%ZOnsWaDChnSXX_>f-N@$_;!ea>WrgE&JRl=o1 zMf}c)KVR&e0J%7&5fxmGL>@K@9?82faH|R<#r(V zlV3qMfTc}|QW#}moo+w~oiM<_y>KJFmV__NkZ&YS!(@nR{IqehkH%2h`NJfTm}cky zfHolmC@pP5=r*p617)2QkIcHJm01oKa;CTv*pNZlXnphD7M^fY9vx%c`-XC3FbgdO`;gF*Oh(eh-Ks z1w=qlR|^r{WI|A#tQJPiGco`tq;3g7J)~|4f@m^-KY5rOy0k?Evps%Ph%Z1xOb~=VSbIkun^)&mb1m%|%dj6^cUCDm^;2ye% G(EkA2QA>9K literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataPayloads.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataPayloads.php new file mode 100644 index 000000000000..00b6b534256e --- /dev/null +++ b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/DataPayloads.php @@ -0,0 +1,47 @@ +internalAddGeneratedFile( + ' +Ñ +5google/cloud/datalabeling/v1beta1/data_payloads.proto!google.cloud.datalabeling.v1beta1"a + ImagePayload + mime_type (  +image_thumbnail (  + image_uri (  + +signed_uri ( "# + TextPayload + text_content ( "S +VideoThumbnail + thumbnail ( . + time_offset ( 2.google.protobuf.Duration"© + VideoPayload + mime_type (  + video_uri ( K +video_thumbnails ( 21.google.cloud.datalabeling.v1beta1.VideoThumbnail + +frame_rate ( + +signed_uri ( Bã +%com.google.cloud.datalabeling.v1beta1PZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpbª!Google.Cloud.DataLabeling.V1Beta1Ê!Google\\Cloud\\DataLabeling\\V1beta1ê$Google::Cloud::DataLabeling::V1beta1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Dataset.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Dataset.php new file mode 100644 index 0000000000000000000000000000000000000000..f43e84d696bcd79cb33c601aab7243403ed640fc GIT binary patch literal 5687 zcmcIo&2ke*5RNPZR?9YK`7@?cEW#8f0Vy^`LDu|~WDBDNu!98&M3t@8Y9uzSb~n2t z3WaiRIph&?%`s2GDTf^L5;>&Gw>&}8Ju|zKjSLGRT&!BAzv=n9`|F;$b~AVqz!`mw zc`URzYw69t&Yv(n2z~C`zNa;+wF9j{Y*w%BCcS`;56#)|?Qz_Yq63M`xHYa5ljxPputYXYXR zLNJZhA(+O)#R|bJ1K6$=MLPW_!odsB@n6tux{j?!+~W9W-ib`dbGT!<&i8n#>w4RA zBZjuGu5I@`n>)Uzlfk-YvxW1z#H6+JfsZU)*JH;vh!`ZLQS&$pJH%Nrbh#rN7y zCp~hKBXtK;oLk*sw5`aki#HsVN##~6Nt|0)Yzs-KDe&juUHPj|DQD z6(38Gw?l?nY7+eHIDX78%@yU|awFWkn52eQg(=4idR#dh&F<5)Xi|(#_6}XKMs_kg zwK>q5u5Uj@#Wh1E0nzM!#L8*M;h^gKR$0R74u>)Yi!aArqZNJp)}iHa!t zrI?Si$lABe=27W|`n44cI({Mq4DeRr?=0kpy}AukoIU4eSLr)CM0}J|9IlRbaa*|k zfmQ+N*pVrT2x!SU6WGcG?3b}9oQ28ZSZPOL%C)>s&+0Htww9`)!Y6QS^ak27n8tqH z?YZ1Bg*=I>n&GBCN`#S0bQ9AiWBcu zxB}BVch@ukU!2T*ElrDXWYiAY2{@$8mG=os;jb~6pwz9QhGw6OehT(Iv)mpN`jR!qu4W3qOu+2!(Ru?Z0xUYV&H=*FRj$28*rA(3T* zR)@n8>vWkXZ*MW89CyTX3o#A9LUZ@v_iH%rH)+MWF?qq7f zN)yVFxADqJIH8n_@*`w8)kiV)g+H=zKuOF0IIGBXPjgWtk_HpTE3=AB>;F2dP+J^O z65k`!v_++-^vd&7X1n}j=Jj{NnAvaMW6vou*&eVVsb9l0(MMm(;ZxjoPQcOCa=mQU zA8l042lqBNsw=fywd(532U-sH)$W$psxuk-`LMQHU7s1#CSbf?{i;4QuFb&YTJ>J_ ze)*0`5HtHLe`eq;4jXSy^o`8pn!Jjut32I~JH8m_#4tinop@~?e(j9E2hHW-W*#(u z9Xq`y9y*KS?X5^to@kW_QdAF}zsGAD>NQk6hsLWK_#P^rRkz3HC6r+ZEW;QEGYqw? gxgUeY{Y&SPN2Lq$wQ=Zia?giJu~NPvZowA7zok`g5&!@I literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Evaluation.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/Evaluation.php new file mode 100644 index 0000000000000000000000000000000000000000..900dc2ef5fa5ef3474b2c5edb9aa03b754218b19 GIT binary patch literal 3375 zcmb_f-EJF26t358eoji0ENNI-6`hzsQv_?-B?vZ6t2ha1P)n>fs!(OLTCc~>hV{;B zcQ#F^{17|?ckm{>0T)~$aZ!m|uDIaL>~B(sxU{*+dNkiRXTI}0cklZLK72rSs7C{f z(=O?p5Pm?3A27~r=8{g->(PMNY~VXC4Rk`b_Q*GT`(%4-cYg_?A&UZ=8l=xy-=#I% zWl^`*wYcS49qKw>zjjpbP;S+0^vH4}i#yEIB|U&=4QS|FHYGc)<|EuBaP1w*)ZP?K z?X3b+`)R!?nAQMn*9t?joiV}-Ao%A;9oMl*$nhAPEIXm;cn)_g*ZBeOwoZDM8&ZV7 zy0;g3wlIwdz@BH*mD?od6nmF_hFYwX)V7w82c>E6dYlHH<+itIXa|nZSq*d8#-Oz_b>qCKtX*tMjxj^j&JaFt#yCQL)r3anwp@R8X zfdp3l8fFXn@)MtG6G(ThQ6GaY&y{@ysyAREv5t04htq*+v&iGxBoda5?_X{lz(=P7 zC)V5YolwW3Tg$~&@1a_U)aGIBMe;S2g%*8}OM(QyhJ`YVtGP16>W?Lu%jptd9m35H z8q~!?ZFbnPnFCDbi;NFtWXv?~k8$^A!qjBP`9XUz&4WwLd6+$-0aj+qO~|XOaO1x~ z>UDU>VUfuX0vaALw=0cNs=t+BK0hJ#+cQ{{eZlGB5yEyejRq0iGmS6CxWcArEEz$< z{NR%M9cZj0)Hl17@&nV3f}=QH zXBr=mab_#n6bSVp%!$;FLTS2%p?;hsd1DL~5iSz?NFu9GVR7_j-ptDCpJkX#Ek2!x zqRu6;_<{ei|_*^-v%hV!#|rXBG)pYToy%7Q5WE93YM#)aw(?> zR<$X)c7|Y8n;t>1s)1Oo{-eOGxNjk-u=|t)_8groH2-`I&Cd|%kJ0X!9roM$u>tXUv(39!@*K|)ic>>5cK)S1q xj{y0cc&RMMRE8nB45LV97|FKIgq$(%+{z}tPvZHyFpi%)ip!nx)I5YCz`vEjY3%?2 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/EvaluationJob.php b/owl-bot-staging/DataLabeling/v1beta1/proto/src/GPBMetadata/Google/Cloud/Datalabeling/V1Beta1/EvaluationJob.php new file mode 100644 index 0000000000000000000000000000000000000000..b463eb4bb7b7d05278ce9a038bd0102eef4ab704 GIT binary patch literal 3264 zcmb_e+iu%N5RH8I&@ODchE@3?Yc)aaBB5#p4N}@}pj&LEsVrD>(G~(&idxB=QY1?* zjktk7p+C}3>1Q-=`HIdiNnKzoR*UFK)Yk|ppOV^XlT^yp<_?+$Zs=Q7Cq38g*)(U_ZrI6nOm5m{ zo7&9jv;{p9Y?3QF2@_{(u*SZR=Q~wMqi5RUScW z{kUHgXa@k6Z3Y3U3{YRWZFmO+e_q(OnMDGQ-YoKf1qO2%XQs{mz)w6PUDFOIBHX;& z4IN8FNQA+uW6|9`5@CwF4?GuBazv8w>LN>+p;p!5)OSp~Ri=UEGmpD|9k1$okMcoo z#hcx|*sXwLU9ua+sOvX^JR;l=>8N)?e9A-LIgoJ+fa}4()-A~^c&v3sV}A7E2Mz6S zvznZ8$wNT7{wc7Aw0#n|ldx|(1;=p(<*rk5oi6K5k31l<$*>x^+4rWmJ@c$q1Kozf z?KZM#o_xpR5-D^#gNk^GEwww~P%!!k-mk;6|JO_EPGqOa9@IvAP>Xvole-&Q*dfbN ze`fM`8w~q8ws~>4&4u90Fb9MgmSijjxE}*ZiNOBK@r0K6!d862_pF@gpfHFIvj5D% z>aes>5!4l!6B3h7k<{+8x&cZjZc!|g^o)F2fq4N!)3f;aS^k+8p?@Tg+L#Yb&`;Gh zSPHBQ+6ir%o|C|vu-bP!)HW`u9|(W*^7T1v4s#~7F#h`V0v;>>-G5Z=>NaeQBsB1- zWgw5~Md>pO87as{p9KM`veEP1(CHW`GW;UFgm;$ILs&97r+tqH>18sDp?oz(DhiQ_ znghl1DJH@YY^6bdOC|wGsMH1>mTka%l((c28Y}V@+L9?Xh^M)R~@$A>w+{h?sM-dOENY?>YmG#q2O zG3wMj2KI(pJjlI^|6Pv^Dl8y87$@sG`{yETjG@E?Sg_6dW{(B&m#^!aj9>AKA;q)z^ z5W1)jC4VplcoRV;L|%p!=6E6cki9NDQpsymfL4WB6slT-^$|W|DAC7C{^=A@L*8P% zpJ8i)7)d!$^3SJ0y>s;t;aFm61@o3te}(OllnOmEan&2} zv^q8UW8oGAMig`ATiBWuwgR)5lvtiuVP33rG!kZg=6R~P1NU$6<5Ns(kOY|h3DT21 zqlnDYzRB#^!4r7cXE=B)i+bE_W3KvC3?dY0(YT&ZEhd#(R8%UrklC^tO3%&Ni_~TzQJI8X>)=Fa4*2*~iU&o8P7O&cWCwE%$J}wu*te za=G7sn0XLE>AJ+y^-(ZgkFT{CJXr@j&go_#`X#tspm!gn%?ASGCh;3peLqVW9OK0UkmV{19 zF`e*7c;t;2egS`gXMO-Pyzwj8J4v=f9q>%alcU@FcK6$F_x8g_(OHD<;wBAfOcLti z{s<>$6i0EGgih$=emWS?7(3xGVm^&^jO!iT?wGhyZ<(8Lm4|8UPy>5m==rqb_+jc+ zT#^u<^r_DRuX4WIrwQ4uoTWn&*dz$Tgd{8sY$pr`%+sYWgaR_8JR%Oo&2H@oZU_*o zDPgTc0c+K#V6D^Lnt0oM&m7E!V+U_BZnJ1Ez{l*Xl8<*EvON2$>yDFs4D#6-hbMyFMn5g1 zM=z)wbu$CdrSSA=;pw^X);Dq=QfN?}ikl~qNl*K|gjQ#&M=hg87I5HQYM`uOW#>k1 z;g4!beH(4$N~W$YymFe@F5{6;Mz)Z0xim4pkKUMJoGSy!EH4zcif}1A$M)hdjmj@i zPS(*)p9Ee?JPNJj((<)SXEBXH;{=YL2`jtodB3{U*c<@A+-ivx^UhN{n6ZULuON=v0